diff options
| author | Pawel Kowal | 2016-09-19 23:41:48 +0200 |
|---|---|---|
| committer | Pawel Kowal | 2016-09-19 23:41:48 +0200 |
| commit | 623c483ebaffa8de8f9e53b3910d6cfdf8207e59 (patch) | |
| tree | 693611c397de60160b5653061fcad3ba891b5ed3 /tools/editor/property_editor.cpp | |
| parent | c05ff0577fd9cc39a6968e65743f7d7da711bfe2 (diff) | |
| download | godot-623c483ebaffa8de8f9e53b3910d6cfdf8207e59.tar.gz godot-623c483ebaffa8de8f9e53b3910d6cfdf8207e59.tar.zst godot-623c483ebaffa8de8f9e53b3910d6cfdf8207e59.zip | |
Show True/False tooltip in property editor for bool values
Diffstat (limited to 'tools/editor/property_editor.cpp')
| -rw-r--r-- | tools/editor/property_editor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 1a8d373f7..26ddff938 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -3182,6 +3182,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") ); @@ -3828,6 +3829,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: { |
