From b5d93399d52ab76c85acf8ce373e561ded81e688 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 8 Apr 2025 14:36:51 -0400 Subject: [PATCH] Converted the buttons to reflect the actions you can take. --- combat_ui.cpp | 13 ++++++------- combat_ui.hpp | 3 ++- events.hpp | 4 +++- gui_fsm.cpp | 5 +++++ 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/combat_ui.cpp b/combat_ui.cpp index 79660be..aa5b455 100644 --- a/combat_ui.cpp +++ b/combat_ui.cpp @@ -1,7 +1,6 @@ #include "combat_ui.hpp" #include "constants.hpp" #include "color.hpp" -#include "events.hpp" namespace gui { using namespace guecs; @@ -14,21 +13,21 @@ namespace gui { "[*%(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) { + void CombatUI::make_button(std::string name, std::wstring label, Events::GUI event) { auto button = $gui.entity(name); // $gui.set(button, {"leather_pouch-128"}); $gui.set(button, {}); $gui.set