I think this is the best I can do for a hover vs. click shader effect. Just do it in a shader based on a uniform setting.

This commit is contained in:
Zed A. Shaw 2025-04-15 01:01:44 -04:00
parent 84a5f06dac
commit 7186c2ecb0
16 changed files with 54 additions and 38 deletions

View file

@ -17,7 +17,7 @@ namespace gui {
void render(sf::RenderWindow& window);
void update_level(GameLevel &level);
void set_damage(float percent);
bool mouse(float x, float y);
bool mouse(float x, float y, bool hover);
void make_button(std::string name, std::wstring label, Events::GUI event);
};
}