From 57e042e786f640ee46d462cc00eb804cc68085b2 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 15 Apr 2025 12:02:24 -0400 Subject: [PATCH] Now have a do_if on GUECS for many of the 'if this exists do this' patterns. --- combat_ui.cpp | 2 +- guecs.cpp | 18 ++++++------------ guecs.hpp | 8 +++++++- ritual_ui.cpp | 2 ++ status_ui.cpp | 1 + 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/combat_ui.cpp b/combat_ui.cpp index 0e2fee0..9f03455 100644 --- a/combat_ui.cpp +++ b/combat_ui.cpp @@ -17,7 +17,7 @@ namespace gui { auto button = $gui.entity(name); $gui.set(button, {"leather_pouch-128"}); // $gui.set(button, {}); - $gui.set(button, {"ui_click", "ui_hover"}); + $gui.set(button, {"ui_click"}); $gui.set