mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
-customizable shortcuts in editor
-editor settings now save to .tres instead of .xml -buttons can now hold a shortcut
This commit is contained in:
parent
279b7921e8
commit
007efb6a20
20 changed files with 801 additions and 75 deletions
|
|
@ -50,6 +50,13 @@ class EditorSettingsDialog : public AcceptDialog {
|
|||
|
||||
Timer *timer;
|
||||
|
||||
Tree *shortcuts;
|
||||
|
||||
ConfirmationDialog *press_a_key;
|
||||
Label *press_a_key_label;
|
||||
InputEvent last_wait_for_key;
|
||||
String shortcut_configured;
|
||||
|
||||
virtual void cancel_pressed();
|
||||
virtual void ok_pressed();
|
||||
|
||||
|
|
@ -59,8 +66,14 @@ class EditorSettingsDialog : public AcceptDialog {
|
|||
void _notification(int p_what);
|
||||
|
||||
|
||||
void _press_a_key_confirm();
|
||||
void _wait_for_key(const InputEvent& p_event);
|
||||
|
||||
void _clear_search_box();
|
||||
|
||||
void _update_shortcuts();
|
||||
void _shortcut_button_pressed(Object* p_item,int p_column,int p_idx);
|
||||
|
||||
protected:
|
||||
|
||||
static void _bind_methods();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue