Add input action name to window title in input map editor
This commit is contained in:
@ -168,7 +168,7 @@ void ActionMapEditor::_tree_button_pressed(Object *p_item, int p_column, int p_i
|
||||
current_action_name = item->get_meta("__name");
|
||||
current_action_event_index = -1;
|
||||
|
||||
event_config_dialog->popup_and_configure();
|
||||
event_config_dialog->popup_and_configure(Ref<InputEvent>(), current_action_name);
|
||||
} break;
|
||||
case ActionMapEditor::BUTTON_EDIT_EVENT: {
|
||||
// Action and Action name is located on the parent of the event.
|
||||
@ -179,7 +179,7 @@ void ActionMapEditor::_tree_button_pressed(Object *p_item, int p_column, int p_i
|
||||
|
||||
Ref<InputEvent> ie = item->get_meta("__event");
|
||||
if (ie.is_valid()) {
|
||||
event_config_dialog->popup_and_configure(ie);
|
||||
event_config_dialog->popup_and_configure(ie, current_action_name);
|
||||
}
|
||||
} break;
|
||||
case ActionMapEditor::BUTTON_REMOVE_ACTION: {
|
||||
|
||||
Reference in New Issue
Block a user