summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-31 00:35:53 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-31 00:35:53 +0300
commit32ddb3eb7bf5d25f3787258cb8b3ce0f0e3463c1 (patch)
treeb2dd6dcec673ad4f0fd68c4a1aa4729a864187e3 /src/keyboardconfig.cpp
parentd318a622d1f5458c9875605f7cc91302b0385e77 (diff)
downloadplus-32ddb3eb7bf5d25f3787258cb8b3ce0f0e3463c1.tar.gz
plus-32ddb3eb7bf5d25f3787258cb8b3ce0f0e3463c1.tar.bz2
plus-32ddb3eb7bf5d25f3787258cb8b3ce0f0e3463c1.tar.xz
plus-32ddb3eb7bf5d25f3787258cb8b3ce0f0e3463c1.zip
Extent max emotes count from 44 to 48 emotes.
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 49dd56b91..ea04a0e89 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -267,6 +267,14 @@ static KeyData const keyData[KeyboardConfig::KEY_TOTAL] = {
KeyboardConfig::GRP_EMOTION},
{"keyEmoteShortcut44", SDLK_b, strprintf(N_("Emote Shortcut %d"), 44),
KeyboardConfig::GRP_EMOTION},
+ {"keyEmoteShortcut45", SDLK_n, strprintf(N_("Emote Shortcut %d"), 45),
+ KeyboardConfig::GRP_EMOTION},
+ {"keyEmoteShortcut46", SDLK_m, strprintf(N_("Emote Shortcut %d"), 46),
+ KeyboardConfig::GRP_EMOTION},
+ {"keyEmoteShortcut47", SDLK_COMMA, strprintf(N_("Emote Shortcut %d"), 47),
+ KeyboardConfig::GRP_EMOTION},
+ {"keyEmoteShortcut48", SDLK_PERIOD, strprintf(N_("Emote Shortcut %d"), 48),
+ KeyboardConfig::GRP_EMOTION},
{"", 0, N_("Outfits Keys"), 0},
{"keyWearOutfit", SDLK_RCTRL, N_("Wear Outfit"),
KeyboardConfig::GRP_DEFAULT},
@@ -360,7 +368,7 @@ void KeyboardConfig::init()
mKey[i].value = KEY_NO_VALUE;
mKey[i].grp = keyData[i].grp;
}
- for (int i = KEY_EMOTE_1; i <= KEY_EMOTE_44; i ++)
+ for (int i = KEY_EMOTE_1; i <= KEY_EMOTE_48; i ++)
{
mKey[i].caption = strprintf(
_("Emote Shortcut %d"), i - KEY_EMOTE_1 + 1);
@@ -460,7 +468,7 @@ int KeyboardConfig::getKeyIndex(int keyValue, int grp) const
int KeyboardConfig::getKeyEmoteOffset(int keyValue) const
{
- for (int i = KEY_EMOTE_1; i <= KEY_EMOTE_44; i++)
+ for (int i = KEY_EMOTE_1; i <= KEY_EMOTE_48; i++)
{
if (keyValue == mKey[i].value)
return 1 + i - KEY_EMOTE_1;