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:
parent
86ddfc460f
commit
d93bc1615c
14 changed files with 51 additions and 59 deletions
|
@ -14,14 +14,14 @@ namespace arena {
|
|||
$status.position(0, 0, BOSS_VIEW_X, SCREEN_HEIGHT);
|
||||
$status.layout(
|
||||
"[main_status]"
|
||||
"[(150)status_3|(150)status_4]"
|
||||
"[(150)status_5|(150)status_6]"
|
||||
"[(150)status_7|(150)status_8]");
|
||||
"[=status_3|=status_4]"
|
||||
"[=status_5|=status_6]"
|
||||
"[=status_7|=status_8]");
|
||||
|
||||
$overlay.position(BOSS_VIEW_X, BOSS_VIEW_Y,
|
||||
BOSS_VIEW_WIDTH, BOSS_VIEW_HEIGHT);
|
||||
|
||||
$overlay.layout("[_|=(256,256)enemy|_]");
|
||||
$overlay.layout("[_|(256,256)enemy|_]");
|
||||
|
||||
$sounds = $world->get<components::Sound>($entity_id);
|
||||
$combat = $world->get<components::Combat>($entity_id);
|
||||
|
@ -74,9 +74,9 @@ namespace arena {
|
|||
}
|
||||
});
|
||||
if(name == "main_status") {
|
||||
$status.set<Textual>(button, {fmt::format(L"HP: {}", $combat.hp)});
|
||||
$status.set<Text>(button, {fmt::format(L"HP: {}", $combat.hp)});
|
||||
} else {
|
||||
$status.set<Label>(button, {L"Attack"});
|
||||
$status.set<Text>(button, {L"Attack"});
|
||||
}
|
||||
}
|
||||
$status.init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue