浏览代码

Merge pull request #18425 from RandomShaper/fix-theme-editor-samples

Fix theme editor sample widgets
Hein-Pieter van Braam 7 年之前
父节点
当前提交
91dfccd1ee
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      editor/plugins/theme_editor_plugin.cpp

+ 3 - 3
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);