Added: /loot command and keyboard shortcut

--HG--
branch : develop
This commit is contained in:
Nimetu 2017-12-04 18:45:21 +02:00
parent 1526c7ea84
commit b039f3cd61
4 changed files with 7 additions and 0 deletions

View file

@ -235,6 +235,7 @@
<value value="guild" hardtext="uimMtGuild" />
</parameter>
</action>
<action name="inv_temp_all" hardtext="uittTakeAll" contexts="game" />
</action_category>
<action_category name="chat" hardtext="uiChat" contexts="game, r2ed, r2ed_anim_test"> <!-- not available in r2ed for now -->

View file

@ -120,6 +120,8 @@
<command name="showonline" action="command" params="a showOnline $"/>
<command name="showOnline" action="command" params="a showOnline $"/>
<command name="loot" action="inv_temp_all" params="" />
<!-- WebIG -->
<command name="go" action="browse" params="name=ui:interface:webig:content:html|url=home"/>
<command name="webdev" action="browse" params="name=ui:interface:webig:content:html|url=http://localhost/index.html"/>

View file

@ -278,6 +278,7 @@
<key name="KeyB" action="show_hide" params="phrase_book" />
<key name="N/A" action="show_hide" params="gestionsets" />
<key name="KeyP" shift="1" action="show_hide" params="animal_global" />
<key name="N/A" action="inv_temp_all" params="" />
<!-- Map

View file

@ -2993,6 +2993,9 @@ class CHandlerInvTempAll : public IActionHandler
{
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
{
if (!CTempInvManager::getInstance()->isOpened()) return;
if (NLGUI::CDBManager::getInstance()->getDbProp("UI:TEMP_INV:ALL_EMPTY")->getValue32() != 0) return;
CInterfaceManager *pIM = CInterfaceManager::getInstance();
CInventoryManager *pInv = CInventoryManager::getInstance();