diff options
| author | Rémi Verschelde | 2016-05-04 08:36:14 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-05-04 08:36:14 +0200 |
| commit | a79e3906135c2258b5bf9814e4971c4fc2f231e6 (patch) | |
| tree | 58c6097448dd5aabfaa72fe5a943c51ae051f413 /tools/editor/property_editor.cpp | |
| parent | db0fde9d39687937567c208e989cf25b15e09af4 (diff) | |
| parent | 723c0d730c0bb3df888934dd94ed1e45f24b7acd (diff) | |
| download | godot-a79e3906135c2258b5bf9814e4971c4fc2f231e6.tar.gz godot-a79e3906135c2258b5bf9814e4971c4fc2f231e6.tar.zst godot-a79e3906135c2258b5bf9814e4971c4fc2f231e6.zip | |
Merge pull request #4543 from djrm/better_hint_all
Changed barely visible PROPERTY_HINT_ALL_FLAGS buttons for checkboxes
Diffstat (limited to 'tools/editor/property_editor.cpp')
| -rw-r--r-- | tools/editor/property_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 7c8887090..2247c7a5b 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -321,7 +321,7 @@ bool CustomPropertyEditor::edit(Object* p_owner,const String& p_name,Variant::Ty ofs.y+=22*i; for(int j=0;j<10;j++) { - Button *c=checks20[i*10+j]; + CheckBox *c=checks20[i*10+j]; Point2 o=ofs; o.x+=j*22; if (j>=5) @@ -1721,7 +1721,7 @@ CustomPropertyEditor::CustomPropertyEditor() { } for(int i=0;i<20;i++) { - checks20[i]=memnew( Button ); + checks20[i]=memnew( CheckBox ); checks20[i]->set_toggle_mode(true); checks20[i]->set_focus_mode(FOCUS_NONE); add_child(checks20[i]); |
