From 1ab5fa42919698562522196cdecaedd40a6c5a03 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 25 Apr 2025 23:17:45 -0400 Subject: [PATCH] Fix from ORBLISH suggestion to stop any component that's not hover/clicked on in the mouse handler. --- guecs.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guecs.hpp b/guecs.hpp index 689a19f..68e3581 100644 --- a/guecs.hpp +++ b/guecs.hpp @@ -93,6 +93,7 @@ namespace guecs { void init(lel::Cell &cell); void run(); + void stop(); void step(); shared_ptr 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 {