From f17167f8c9010877ede773fc692da919b406274b Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 28 Jun 2025 02:46:54 +0300 Subject: [PATCH] add 'onselect' callback & remove 'default' tag --- src/graphics/ui/elements/SelectBox.cpp | 7 ++++- src/graphics/ui/elements/SelectBox.hpp | 3 ++ src/graphics/ui/elements/UINode.hpp | 20 ++++++++---- src/graphics/ui/gui_xml.cpp | 32 ++++++++++++-------- src/logic/scripting/scripting_functional.cpp | 11 +++++++ src/logic/scripting/scripting_functional.hpp | 6 ++++ 6 files changed, 60 insertions(+), 19 deletions(-) diff --git a/src/graphics/ui/elements/SelectBox.cpp b/src/graphics/ui/elements/SelectBox.cpp index d50fc845..98dfc826 100644 --- a/src/graphics/ui/elements/SelectBox.cpp +++ b/src/graphics/ui/elements/SelectBox.cpp @@ -26,8 +26,9 @@ SelectBox::SelectBox( auto button = std::make_shared