import{ElementBuilder}from"../../base/builder.mjs";import{isEmpty}from"../../base/helpers.mjs";import{MenuController}from"../menu.mjs";import{ControlsView}from"../../view/controls.mjs";const E=new ElementBuilder;class ControlsController extends MenuController{static menuName="Controls";static menuIcon="fa-solid fa-gamepad";static controlsWindowWidth=500;static controlsWindowHeight=800;static menuShortcut="a";async onClick(){isEmpty(this.controlsWindow)?(this.controlsWindow=await this.spawnWindow("Controls",await new ControlsView(this.config).getNode(),this.constructor.controlsWindowWidth,this.constructor.controlsWindowHeight),this.controlsWindow.onClose((()=>{this.controlsWindow=null}))):this.controlsWindow.focus()}}export{ControlsController as MenuController};
