浏览代码

Use new inspector button style in InputEvent editor

FireForge 3 年之前
父节点
当前提交
f72c1ac2a3
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      editor/plugins/input_event_editor_plugin.cpp

+ 1 - 2
editor/plugins/input_event_editor_plugin.cpp

@@ -84,8 +84,7 @@ InputEventConfigContainer::InputEventConfigContainer() {
 	input_event_text->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
 	add_child(input_event_text);
 
-	open_config_button = memnew(Button);
-	open_config_button->set_text(TTR("Configure"));
+	open_config_button = EditorInspector::create_inspector_action_button(TTR("Configure"));
 	open_config_button->connect("pressed", callable_mp(this, &InputEventConfigContainer::_configure_pressed));
 	add_child(open_config_button);