Can now do UI rendering based on the name and also have gaps in the grid reliably.

This commit is contained in:
Zed A. Shaw 2025-02-16 12:34:48 -05:00
parent 79c84ce885
commit 3ec2bf4784
4 changed files with 39 additions and 26 deletions

View file

@ -11,8 +11,8 @@ namespace gui {
class CombatUI {
public:
std::string $grid =
"[hp | ap ]"
"[attack1 | attack2 | attack3 | heal]";
"[*%(100,150)button_attack1 | *%(100,150)button_attack2 | *%(100,150)button_attack3 | *%(100,150)button_heal]"
"[*%.(200,50)bar_hp | _ | %.(100,50)bar_ap ]";
lel::Parser $layout;
GameLevel $level;
sf::Font $font;