Can now do UI rendering based on the name and also have gaps in the grid reliably.
This commit is contained in:
parent
79c84ce885
commit
3ec2bf4784
4 changed files with 39 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue