ProjectSettings: enhance add action error, fix confirm dialog
- Disable add action button if name is invalid - Fix dialog being ConfirmationDialog instead of AcceptDialog
This commit is contained in:
@ -66,7 +66,7 @@ class ProjectSettingsEditor : public AcceptDialog {
|
||||
ToolButton *clear_button;
|
||||
|
||||
HBoxContainer *add_prop_bar;
|
||||
ConfirmationDialog *message;
|
||||
AcceptDialog *message;
|
||||
LineEdit *category;
|
||||
LineEdit *property;
|
||||
OptionButton *type;
|
||||
@ -80,6 +80,7 @@ class ProjectSettingsEditor : public AcceptDialog {
|
||||
MenuButton *popup_copy_to_feature;
|
||||
|
||||
LineEdit *action_name;
|
||||
Button *action_add;
|
||||
Tree *input_editor;
|
||||
bool setting;
|
||||
bool updating_translations;
|
||||
@ -108,6 +109,7 @@ class ProjectSettingsEditor : public AcceptDialog {
|
||||
void _add_item(int p_item, Ref<InputEvent> p_exiting_event = NULL);
|
||||
void _edit_item(Ref<InputEvent> p_exiting_event);
|
||||
|
||||
void _action_check(String p_action);
|
||||
void _action_adds(String);
|
||||
void _action_add();
|
||||
void _device_input_add();
|
||||
|
||||
Reference in New Issue
Block a user