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:
parent
7186c2ecb0
commit
2ecef8d9f9
6 changed files with 36 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue