diff --git a/combat_ui.cpp b/combat_ui.cpp index ca47b1e..79660be 100644 --- a/combat_ui.cpp +++ b/combat_ui.cpp @@ -11,23 +11,24 @@ namespace gui { { $gui.position(COMBAT_UI_X, COMBAT_UI_Y, COMBAT_UI_WIDTH, COMBAT_UI_HEIGHT); $gui.layout( - "[*%(100,150)button_attack1 | *%(100,150)button_attack2 | *%(100,150)button_attack3 | *%(100,150)button_heal]"); + "[*%(100,150)button_attack | *%(100,150)button_block | *%(100,150)button_evade | *%(100,150)button_heal]"); + } + + void CombatUI::make_button(std::string name, std::wstring label) { + auto button = $gui.entity(name); + // $gui.set(button, {"leather_pouch-128"}); + $gui.set(button, {}); + $gui.set