Fix from ORBLISH suggestion to stop any component that's not hover/clicked on in the mouse handler.
This commit is contained in:
parent
4c03fe1ed3
commit
1ab5fa4291
1 changed files with 2 additions and 0 deletions
|
@ -93,6 +93,7 @@ namespace guecs {
|
|||
|
||||
void init(lel::Cell &cell);
|
||||
void run();
|
||||
void stop();
|
||||
void step();
|
||||
shared_ptr<sf::Shader> checkout_ptr();
|
||||
};
|
||||
|
@ -100,6 +101,7 @@ namespace guecs {
|
|||
struct Sound {
|
||||
std::string on_click{"ui_click"};
|
||||
void play(bool hover);
|
||||
void stop(bool hover);
|
||||
};
|
||||
|
||||
struct Background {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue