aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Kowal2016-09-19 23:41:48 +0200
committerRémi Verschelde2016-10-09 17:18:43 +0200
commitc8299249e4c275539c588daba086cf1066526775 (patch)
treeb15a589a669ae9054a97c0b9ccca483491dd64e1
parent1d175be921a2a05fbcb923f8bd6b9809ebad4bf5 (diff)
downloadgodot-c8299249e4c275539c588daba086cf1066526775.tar.gz
godot-c8299249e4c275539c588daba086cf1066526775.tar.zst
godot-c8299249e4c275539c588daba086cf1066526775.zip
Show True/False tooltip in property editor for bool values
(cherry picked from commit 623c483ebaffa8de8f9e53b3910d6cfdf8207e59)
-rw-r--r--tools/editor/property_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp
index 1ffcc4d37..670b03c1d 100644
--- a/tools/editor/property_editor.cpp
+++ b/tools/editor/property_editor.cpp
@@ -2918,6 +2918,7 @@ void PropertyEditor::update_tree() {
item->set_cell_mode( 1, TreeItem::CELL_MODE_CHECK );
item->set_text(1,TTR("On"));
+ item->set_tooltip(1, obj->get(p.name) ? "True" : "False");
item->set_checked( 1, obj->get( p.name ) );
if (show_type_icons)
item->set_icon( 0, get_icon("Bool","EditorIcons") );
@@ -3546,6 +3547,7 @@ void PropertyEditor::_item_edited() {
case Variant::BOOL: {
_edit_set(name,item->is_checked(1));
+ item->set_tooltip(1, item->is_checked(1) ? "True" : "False");
} break;
case Variant::INT:
case Variant::REAL: {