mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
- Add minimal menus in puzzle mode for back, next navigation - Add lower menu for changing zone dimenensions
24 lines
757 B
JavaScript
24 lines
757 B
JavaScript
import { BaseHUDPart } from "../base_hud_part";
|
|
import { makeDiv } from "../../../core/utils";
|
|
import { T } from "../../../translations";
|
|
|
|
export class HUDModeMenuNext extends BaseHUDPart {
|
|
createElements(parent) {
|
|
const key = this.root.gameMode.getId();
|
|
|
|
this.element = makeDiv(parent, "ingame_HUD_ModeMenuNext");
|
|
this.button = document.createElement("button");
|
|
this.button.classList.add("button");
|
|
this.button.textContent = T.ingame.modeMenu[key].next.title + " ➡ ";
|
|
this.element.appendChild(this.button);
|
|
|
|
this.content = makeDiv(this.element, null, ["content"], T.ingame.modeMenu[key].next.desc);
|
|
|
|
this.trackClicks(this.button, this.next);
|
|
}
|
|
|
|
initialize() {}
|
|
|
|
next() {}
|
|
}
|