mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Merge pull request #6554 from pkowal1982/propertyeditortooltips
Show True/False tooltip in property editor for bool values
This commit is contained in:
commit
44b741dd3c
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user