diff --git a/assets/config.json b/assets/config.json index 7ca0378..e2977e3 100644 --- a/assets/config.json +++ b/assets/config.json @@ -19,7 +19,10 @@ "pickup": "assets/sounds/pickup.ogg", "ambient_1": "assets/sounds/ambient_1.ogg", "ui_click": "assets/sounds/ui_click.ogg", - "ui_hover": "assets/sounds/ui_hover.ogg" + "ui_hover": "assets/sounds/ui_hover.ogg", + "punch_cartoony": "assets/sounds/punch_cartoony.ogg", + "electric_shock_01": "assets/sounds/electric_shock_01.ogg", + "fireball_01": "assets/sounds/fireball_01.ogg" }, "sprites": { "gold_savior": diff --git a/assets/sounds/electric_shock_01.ogg b/assets/sounds/electric_shock_01.ogg new file mode 100644 index 0000000..d9d3b0b Binary files /dev/null and b/assets/sounds/electric_shock_01.ogg differ diff --git a/assets/sounds/fireball_01.ogg b/assets/sounds/fireball_01.ogg new file mode 100644 index 0000000..5346559 Binary files /dev/null and b/assets/sounds/fireball_01.ogg differ diff --git a/assets/sounds/punch_cartoony.ogg b/assets/sounds/punch_cartoony.ogg new file mode 100644 index 0000000..1a812cc Binary files /dev/null and b/assets/sounds/punch_cartoony.ogg differ diff --git a/combat_ui.cpp b/combat_ui.cpp index bea25a8..37def37 100644 --- a/combat_ui.cpp +++ b/combat_ui.cpp @@ -15,31 +15,20 @@ namespace gui { "[*%(100,150)button_0 | *%(100,150)button_1 | *%(100,150)button_2 | *%(100,150)button_3]"); } - void CombatUI::make_button(std::string name, std::wstring label, Events::GUI event, int action, const std::string &icon_name) { + 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(button, {"ui_click"}); // $gui.set