aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/theme_editor_plugin.cpp
diff options
context:
space:
mode:
authorPedro J. Estébanez2018-04-25 20:12:46 +0200
committerHein-Pieter van Braam2018-04-28 22:19:54 +0200
commit3bda257163f1c8b452ad6d9b157a075fadbe336c (patch)
treea613a8835a016d16a8897fe351b9b05e6ffb0cca /editor/plugins/theme_editor_plugin.cpp
parent02f767fe0d8716a6745c13fd557a2564cbfd046f (diff)
downloadgodot-3bda257163f1c8b452ad6d9b157a075fadbe336c.tar.gz
godot-3bda257163f1c8b452ad6d9b157a075fadbe336c.tar.zst
godot-3bda257163f1c8b452ad6d9b157a075fadbe336c.zip
Fix theme editor sample widgets
(cherry picked from commit a0626d7d9c005905b836552d597c173c701e248b)
Diffstat (limited to '')
-rw-r--r--editor/plugins/theme_editor_plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp
index 550dfb3ae..754564426 100644
--- a/editor/plugins/theme_editor_plugin.cpp
+++ b/editor/plugins/theme_editor_plugin.cpp
@@ -691,11 +691,11 @@ ThemeEditor::ThemeEditor() {
test_menu_button->get_popup()->add_separator();
test_menu_button->get_popup()->add_check_item(TTR("Check Item"));
test_menu_button->get_popup()->add_check_item(TTR("Checked Item"));
- test_menu_button->get_popup()->set_item_checked(2, true);
+ test_menu_button->get_popup()->set_item_checked(3, true);
test_menu_button->get_popup()->add_separator();
- test_menu_button->get_popup()->add_check_item(TTR("Radio Item"));
+ test_menu_button->get_popup()->add_radio_check_item(TTR("Radio Item"));
test_menu_button->get_popup()->add_radio_check_item(TTR("Checked Radio Item"));
- test_menu_button->get_popup()->set_item_checked(5, true);
+ test_menu_button->get_popup()->set_item_checked(6, true);
first_vb->add_child(test_menu_button);
OptionButton *test_option_button = memnew(OptionButton);