Now have sounds and shaders working on the button for each of the different elements.

This commit is contained in:
Zed A. Shaw 2025-04-25 11:54:30 -04:00
parent eb350698aa
commit 2fb1687997
7 changed files with 32 additions and 22 deletions

View file

@ -17,6 +17,8 @@ namespace gui {
void render(sf::RenderWindow& window);
void update_level(GameLevel &level);
bool mouse(float x, float y, bool hover);
void make_button(std::string name, std::wstring label, Events::GUI event, int action, const std::string &icon_name);
DinkyECS::Entity 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);
};
}