Disable add button when action name is invalid

This commit is contained in:
Aaron Record
2022-05-03 17:47:29 -06:00
parent 1b2992799b
commit 6b878e9aea
2 changed files with 28 additions and 8 deletions

View File

@ -171,10 +171,13 @@ private:
HBoxContainer *add_hbox = nullptr;
LineEdit *add_edit = nullptr;
Button *add_button = nullptr;
void _event_config_confirmed();
void _add_action_pressed();
void _add_edit_text_changed(const String &p_name);
String _check_new_action_name(const String &p_name);
bool _has_action(const String &p_name) const;
void _add_action(const String &p_name);
void _action_edited();