Big changes to use the new lel-guecs setup but now almost everything works. Only thing missing is Issue #16 in quecs.

This commit is contained in:
Zed A. Shaw 2025-07-23 14:03:41 -04:00
parent 86ddfc460f
commit d93bc1615c
14 changed files with 51 additions and 59 deletions

View file

@ -10,9 +10,9 @@ namespace gui {
OverlayUI::OverlayUI() {
$gui.position(RAY_VIEW_X, RAY_VIEW_Y, RAY_VIEW_WIDTH, RAY_VIEW_HEIGHT);
$gui.layout(
"[*%(100,300)left|top|>(170,170)top_right]"
"[_|middle|middle_right]"
"[_|bottom|bottom_right]"
"[*%(100,300)left|=top|>(170,170)top_right]"
"[_|=middle|=middle_right]"
"[_|=bottom|=bottom_right]"
);
$gui.init();
}
@ -52,15 +52,7 @@ namespace gui {
}
void OverlayUI::close_text(string region) {
$gui.close<Textual>(region);
}
void OverlayUI::show_label(string region, wstring content) {
$gui.show_label(region, content);
}
void OverlayUI::close_label(string region) {
$gui.close<Label>(region);
$gui.close<Text>(region);
}
void OverlayUI::update_level(GameLevel level) {