aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/theme_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-03-22 14:55:36 -0300
committerJuan Linietsky2015-03-22 14:55:36 -0300
commit6d813c81b814da2a0cfaf6a6f879020e66e90bb9 (patch)
treea65634fa6b0ba219654532c76c890d35755bb49e /tools/editor/plugins/theme_editor_plugin.cpp
parenta8f55d11d33c6cd17d798d511767a4f1b26f30f3 (diff)
parent0bc7eb1d91212e5fcc799d1b790430a4c2468751 (diff)
downloadgodot-6d813c81b814da2a0cfaf6a6f879020e66e90bb9.tar.gz
godot-6d813c81b814da2a0cfaf6a6f879020e66e90bb9.tar.zst
godot-6d813c81b814da2a0cfaf6a6f879020e66e90bb9.zip
Merge pull request #1460 from MarianoGnu/master
Create Checkbox class with support for Radio Buttons
Diffstat (limited to 'tools/editor/plugins/theme_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/theme_editor_plugin.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/editor/plugins/theme_editor_plugin.cpp b/tools/editor/plugins/theme_editor_plugin.cpp
index ccbd92311..bd6fb37b2 100644
--- a/tools/editor/plugins/theme_editor_plugin.cpp
+++ b/tools/editor/plugins/theme_editor_plugin.cpp
@@ -568,6 +568,26 @@ ThemeEditor::ThemeEditor() {
CheckButton *cb = memnew( CheckButton );
cb->set_text("CheckButton");
first_vb->add_child(cb );
+ CheckBox *cbx = memnew( CheckBox );
+ cbx->set_text("CheckBox");
+ first_vb->add_child(cbx );
+
+ /* TODO: This is not working properly, controls are overlapping*/
+ /*
+ ButtonGroup *bg = memnew( ButtonGroup );
+ bg->set_v_size_flags(SIZE_EXPAND_FILL);
+ VBoxContainer *gbvb = memnew( VBoxContainer );
+ gbvb->set_v_size_flags(SIZE_EXPAND_FILL);
+ CheckBox *rbx1 = memnew( CheckBox );
+ rbx1->set_text("CheckBox Radio1");
+ rbx1->set_pressed(true);
+ gbvb->add_child(rbx1);
+ CheckBox *rbx2 = memnew( CheckBox );
+ rbx2->set_text("CheckBox Radio2");
+ gbvb->add_child(rbx2);
+ bg->add_child(gbvb);
+ first_vb->add_child(bg);
+ */
MenuButton* test_menu_button = memnew( MenuButton );
test_menu_button->set_text("MenuButton");