#include "combat_ui.hpp" #include "constants.hpp" #include "color.hpp" #include "rituals.hpp" #include namespace gui { using namespace guecs; CombatUI::CombatUI(GameLevel level) : $level(level) { $gui.position(COMBAT_UI_X, COMBAT_UI_Y, COMBAT_UI_WIDTH, COMBAT_UI_HEIGHT); $gui.layout( "[*%(100,150)button_0 | *%(100,150)button_1 | *%(100,150)button_2 | *%(100,150)button_3]"); } DinkyECS::Entity CombatUI::make_button(std::string name, std::wstring label, Events::GUI event, int action, const std::string &icon_name, const std::string &sound, const std::string &effect_name) { (void)label; auto button = $gui.entity(name); $gui.set(button, {icon_name}); // $gui.set(button, {}); // $gui.set