mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 21:33:18 +08:00
Use new inspector button style in InputEvent editor
This commit is contained in:
parent
ccd9378aac
commit
f72c1ac2a3
@ -84,8 +84,7 @@ InputEventConfigContainer::InputEventConfigContainer() {
|
|||||||
input_event_text->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
input_event_text->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
|
||||||
add_child(input_event_text);
|
add_child(input_event_text);
|
||||||
|
|
||||||
open_config_button = memnew(Button);
|
open_config_button = EditorInspector::create_inspector_action_button(TTR("Configure"));
|
||||||
open_config_button->set_text(TTR("Configure"));
|
|
||||||
open_config_button->connect("pressed", callable_mp(this, &InputEventConfigContainer::_configure_pressed));
|
open_config_button->connect("pressed", callable_mp(this, &InputEventConfigContainer::_configure_pressed));
|
||||||
add_child(open_config_button);
|
add_child(open_config_button);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user