Have a basic little click sound going, but hover events will need some work. I'm doing those on every mouse move.

This commit is contained in:
Zed A. Shaw 2025-04-15 11:38:38 -04:00
parent 7186c2ecb0
commit 2ecef8d9f9
6 changed files with 36 additions and 11 deletions

View file

@ -97,6 +97,13 @@ namespace guecs {
shared_ptr<sf::Shader> checkout_ptr();
};
struct Sound {
std::string on_click{""};
std::string on_hover{""};
void play(bool hover);
};
struct Background {
float x = 0.0f;
float y = 0.0f;