aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/classes
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/openvic-extension/classes')
-rw-r--r--extension/src/openvic-extension/classes/GUILabel.cpp6
-rw-r--r--extension/src/openvic-extension/classes/GUILabel.hpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/classes/GUILabel.cpp b/extension/src/openvic-extension/classes/GUILabel.cpp
index 732dec2..4b6b1c1 100644
--- a/extension/src/openvic-extension/classes/GUILabel.cpp
+++ b/extension/src/openvic-extension/classes/GUILabel.cpp
@@ -31,12 +31,18 @@ String const& GUILabel::get_substitution_marker() {
return SUBSTITUTION_MARKER;
}
+String const& GUILabel::get_flag_marker() {
+ static const String FLAG_MARKER = String::chr(0x40); // @
+ return FLAG_MARKER;
+}
+
void GUILabel::_bind_methods() {
GUI_TOOLTIP_BIND_METHODS(GUILabel)
OV_BIND_SMETHOD(get_colour_marker);
OV_BIND_SMETHOD(get_currency_marker);
OV_BIND_SMETHOD(get_substitution_marker);
+ OV_BIND_SMETHOD(get_flag_marker);
OV_BIND_METHOD(GUILabel::clear);
OV_BIND_METHOD(GUILabel::get_gui_text_name);
diff --git a/extension/src/openvic-extension/classes/GUILabel.hpp b/extension/src/openvic-extension/classes/GUILabel.hpp
index 102ad94..67981d7 100644
--- a/extension/src/openvic-extension/classes/GUILabel.hpp
+++ b/extension/src/openvic-extension/classes/GUILabel.hpp
@@ -61,6 +61,7 @@ namespace OpenVic {
static godot::String const& get_colour_marker();
static godot::String const& get_currency_marker();
static godot::String const& get_substitution_marker();
+ static godot::String const& get_flag_marker();
GUILabel();