diff options
Diffstat (limited to 'ui.cpp')
-rw-r--r-- | ui.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1267,6 +1267,13 @@ void UI::Label::set_float(float v) { set_text(buf); } +void UI::Label::set_bool(bool v) { + if (v) + set_text("true"); + else + set_text("false"); +} + static int title_handler(UI::Modal* modal, const UI::Message& msg) { switch (msg.type) { case UI::Message::Type::activate: { |