Added: /loot command and keyboard shortcut

--HG--
branch : develop
hg/compatibility-develop
Nimetu 7 years ago
parent 1526c7ea84
commit b039f3cd61

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

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

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

@ -2993,6 +2993,9 @@ class CHandlerInvTempAll : public IActionHandler
{ {
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */) 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(); CInterfaceManager *pIM = CInterfaceManager::getInstance();
CInventoryManager *pInv = CInventoryManager::getInstance(); CInventoryManager *pInv = CInventoryManager::getInstance();

Loading…
Cancel
Save