Now have sounds and shaders working on the button for each of the different elements.
This commit is contained in:
parent
eb350698aa
commit
2fb1687997
7 changed files with 32 additions and 22 deletions
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue