I think this is the best I can do for a hover vs. click shader effect. Just do it in a shader based on a uniform setting.

This commit is contained in:
Zed A. Shaw 2025-04-15 01:01:44 -04:00
parent 84a5f06dac
commit 7186c2ecb0
16 changed files with 54 additions and 38 deletions

View file

@ -124,13 +124,13 @@ namespace gui {
dirty();
}
void MainUI::mouse(int x, int y) {
void MainUI::mouse(int x, int y, bool hover) {
if($show_level) {
$show_level = false;
$level.world->send<Events::GUI>(Events::GUI::STAIRS_DOWN, $level.player, {});
$overlay_ui.close_label("middle");
} else {
$overlay_ui.$gui.mouse(x, y);
$overlay_ui.$gui.mouse(x, y, hover);
}
}
}