aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/theme_editor_plugin.cpp
diff options
context:
space:
mode:
authorMariano Javier Suligoy2015-03-01 21:07:50 -0300
committerMariano Javier Suligoy2015-03-02 22:12:51 -0300
commit63006f6f6f55573d55c14fcb9f7b6eeb6444aeb6 (patch)
treefad664863790f2a1c3dbfe9266cf68799a0a17ad /tools/editor/plugins/theme_editor_plugin.cpp
parent205ed6c9f5d6680608765dde17cbcabedfbbffa9 (diff)
downloadgodot-63006f6f6f55573d55c14fcb9f7b6eeb6444aeb6.tar.gz
godot-63006f6f6f55573d55c14fcb9f7b6eeb6444aeb6.tar.zst
godot-63006f6f6f55573d55c14fcb9f7b6eeb6444aeb6.zip
Register CheckBox class to create it using editor.
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");