summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 15:41:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 15:41:52 +0300
commitffe1b11e981112a662669358863805fabe14e94c (patch)
tree8f63c2127f123676cdd28491f33060f7eca84e0d /src/input
parentb44ae759ff5a848b7c6d15dc80bba4e7a6948575 (diff)
downloadplus-ffe1b11e981112a662669358863805fabe14e94c.tar.gz
plus-ffe1b11e981112a662669358863805fabe14e94c.tar.bz2
plus-ffe1b11e981112a662669358863805fabe14e94c.tar.xz
plus-ffe1b11e981112a662669358863805fabe14e94c.zip
Move chat command /priceload into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h11
-rw-r--r--src/input/pages/other.cpp6
3 files changed, 17 insertions, 1 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index d278e9799..296ef17fa 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -380,6 +380,7 @@ namespace InputAction
IMITATION,
SEND_MAIL,
TRADE,
+ PRICE_LOAD,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index 58688fc27..ab1cd04e2 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3189,7 +3189,16 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"trade",
- true}
+ true},
+ {"keyPriceLoad",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::priceLoad,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "priceload",
+ false}
};
#endif // INPUT_INPUTACTIONMAP_H
diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp
index c7db9c05d..57b0b68b0 100644
--- a/src/input/pages/other.cpp
+++ b/src/input/pages/other.cpp
@@ -238,6 +238,12 @@ SetupActionData setupActionDataOther[] =
"",
},
{
+ // TRANSLATORS: input action name
+ N_("Load shop items list from disk"),
+ InputAction::PRICE_LOAD,
+ "",
+ },
+ {
"",
InputAction::NO_VALUE,
""