Fix from ORBLISH suggestion to stop any component that's not hover/clicked on in the mouse handler.

master
Zed A. Shaw 1 day ago
parent 4c03fe1ed3
commit 1ab5fa4291
  1. 2
      guecs.hpp

@ -93,6 +93,7 @@ namespace guecs {
void init(lel::Cell &cell); void init(lel::Cell &cell);
void run(); void run();
void stop();
void step(); void step();
shared_ptr<sf::Shader> checkout_ptr(); shared_ptr<sf::Shader> checkout_ptr();
}; };
@ -100,6 +101,7 @@ namespace guecs {
struct Sound { struct Sound {
std::string on_click{"ui_click"}; std::string on_click{"ui_click"};
void play(bool hover); void play(bool hover);
void stop(bool hover);
}; };
struct Background { struct Background {

Loading…
Cancel
Save