import { EViewType } from "./index.js";
export class ViewMenu {
    _div;
    _buttonLevels = null;
    _viewManager;
    constructor(div, viewManager) {
        this._div = div;
        this._viewManager = viewManager;
        this.buttonLevelsClicked = this.buttonLevelsClicked.bind(this);
    }
    get div() {
        return this._div;
    }
    activate() {
        this._buttonLevels = document.getElementById("btn-levels");
        if (!!this._buttonLevels) {
            this._buttonLevels.addEventListener("click", this.buttonLevelsClicked);
        }
    }
    deactivate() {
        this._buttonLevels?.removeEventListener("click", this.buttonLevelsClicked);
    }
    buttonLevelsClicked() {
        this._viewManager.showView(EViewType.Levels);
    }
}
//# sourceMappingURL=ViewMenu.js.map