diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-15 20:37:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-15 20:38:27 +0300 |
commit | 0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899 (patch) | |
tree | 4493d88da75cd7481192432925d6730117077818 /src/gui | |
parent | b2d5269eca7be4c76379ac2cbeef7a40ad0695bb (diff) | |
download | plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.gz plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.bz2 plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.tar.xz plus-0ae57c3a2e3b8b8ae6bc3745f6e2fca2483e6899.zip |
Add move to point configurable shortcuts.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_input.cpp | 2 | ||||
-rw-r--r-- | src/gui/setupactiondata.h | 306 |
2 files changed, 282 insertions, 26 deletions
diff --git a/src/gui/setup_input.cpp b/src/gui/setup_input.cpp index e88098ff3..0e120488b 100644 --- a/src/gui/setup_input.cpp +++ b/src/gui/setup_input.cpp @@ -102,7 +102,7 @@ Setup_Input::Setup_Input(): selectedData = 0; mActionDataSize = new int [7]; - for (int f = 0; f < 7; f ++) + for (int f = 0; f < 8; f ++) { int cnt = 0; while (!setupActionData[f][cnt].name.empty()) diff --git a/src/gui/setupactiondata.h b/src/gui/setupactiondata.h index c30ffd395..c1cdbf379 100644 --- a/src/gui/setupactiondata.h +++ b/src/gui/setupactiondata.h @@ -40,31 +40,6 @@ struct SetupActionData static SetupActionData setupActionData0[] = { { - N_("Move Keys"), - Input::KEY_NO_VALUE, - "", - }, - { - N_("Move Up"), - Input::KEY_MOVE_UP, - "", - }, - { - N_("Move Down"), - Input::KEY_MOVE_DOWN, - "", - }, - { - N_("Move Left"), - Input::KEY_MOVE_LEFT, - "", - }, - { - N_("Move Right"), - Input::KEY_MOVE_RIGHT, - "", - }, - { N_("Target and attack keys"), Input::KEY_NO_VALUE, "", @@ -1175,9 +1150,289 @@ static SetupActionData setupActionData6[] = } }; +static SetupActionData setupActionData7[] = +{ + { + N_("Move Keys"), + Input::KEY_NO_VALUE, + "", + }, + { + N_("Move Up"), + Input::KEY_MOVE_UP, + "", + }, + { + N_("Move Down"), + Input::KEY_MOVE_DOWN, + "", + }, + { + N_("Move Left"), + Input::KEY_MOVE_LEFT, + "", + }, + { + N_("Move Right"), + Input::KEY_MOVE_RIGHT, + "", + }, + { + N_("Move to navigation point shortcuts"), + Input::KEY_NO_VALUE, + "" + }, + { + strprintf(N_("Move to point Shortcut %d"), 1), + Input::KEY_MOVE_TO_POINT_1, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 2), + Input::KEY_MOVE_TO_POINT_2, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 3), + Input::KEY_MOVE_TO_POINT_3, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 4), + Input::KEY_MOVE_TO_POINT_4, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 5), + Input::KEY_MOVE_TO_POINT_5, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 6), + Input::KEY_MOVE_TO_POINT_6, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 7), + Input::KEY_MOVE_TO_POINT_7, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 8), + Input::KEY_MOVE_TO_POINT_8, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 9), + Input::KEY_MOVE_TO_POINT_9, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 10), + Input::KEY_MOVE_TO_POINT_10, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 11), + Input::KEY_MOVE_TO_POINT_11, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 12), + Input::KEY_MOVE_TO_POINT_12, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 13), + Input::KEY_MOVE_TO_POINT_13, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 14), + Input::KEY_MOVE_TO_POINT_14, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 15), + Input::KEY_MOVE_TO_POINT_15, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 16), + Input::KEY_MOVE_TO_POINT_16, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 17), + Input::KEY_MOVE_TO_POINT_17, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 18), + Input::KEY_MOVE_TO_POINT_18, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 19), + Input::KEY_MOVE_TO_POINT_19, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 20), + Input::KEY_MOVE_TO_POINT_20, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 21), + Input::KEY_MOVE_TO_POINT_21, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 22), + Input::KEY_MOVE_TO_POINT_22, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 23), + Input::KEY_MOVE_TO_POINT_23, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 24), + Input::KEY_MOVE_TO_POINT_24, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 25), + Input::KEY_MOVE_TO_POINT_25, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 26), + Input::KEY_MOVE_TO_POINT_26, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 27), + Input::KEY_MOVE_TO_POINT_27, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 28), + Input::KEY_MOVE_TO_POINT_28, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 29), + Input::KEY_MOVE_TO_POINT_29, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 30), + Input::KEY_MOVE_TO_POINT_30, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 31), + Input::KEY_MOVE_TO_POINT_31, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 32), + Input::KEY_MOVE_TO_POINT_32, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 33), + Input::KEY_MOVE_TO_POINT_33, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 34), + Input::KEY_MOVE_TO_POINT_34, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 35), + Input::KEY_MOVE_TO_POINT_35, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 36), + Input::KEY_MOVE_TO_POINT_36, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 37), + Input::KEY_MOVE_TO_POINT_37, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 38), + Input::KEY_MOVE_TO_POINT_38, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 39), + Input::KEY_MOVE_TO_POINT_39, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 40), + Input::KEY_MOVE_TO_POINT_40, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 41), + Input::KEY_MOVE_TO_POINT_41, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 42), + Input::KEY_MOVE_TO_POINT_42, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 43), + Input::KEY_MOVE_TO_POINT_43, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 44), + Input::KEY_MOVE_TO_POINT_44, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 45), + Input::KEY_MOVE_TO_POINT_45, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 46), + Input::KEY_MOVE_TO_POINT_46, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 47), + Input::KEY_MOVE_TO_POINT_47, + "", + }, + { + strprintf(N_("Move to point Shortcut %d"), 48), + Input::KEY_MOVE_TO_POINT_48, + "", + }, + { + "", + Input::KEY_NO_VALUE, + "" + } +}; + static SetupActionData *setupActionData[] = { setupActionData0, + setupActionData7, setupActionData1, setupActionData2, setupActionData3, @@ -1189,6 +1444,7 @@ static SetupActionData *setupActionData[] = static const char *pages[] = { N_("Basic"), + N_("Move"), N_("Shortcuts"), N_("Windows"), N_("Emotes"), |