Add "select_shortcut_bar_2" action handler (issue 222)
This commit is contained in:
parent
e14c131332
commit
7966725977
2 changed files with 31 additions and 0 deletions
|
@ -205,6 +205,20 @@
|
||||||
<value value="10" hardtext="uiNumber10"/>
|
<value value="10" hardtext="uiNumber10"/>
|
||||||
</parameter>
|
</parameter>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="select_shortcut_bar_2" hardtext="uiSelectShortcutBar2" contexts="game, r2ed_anim_test">
|
||||||
|
<parameter hardtext="uiShortcutBarNumber">
|
||||||
|
<value value="1" hardtext="uiNumber01"/>
|
||||||
|
<value value="2" hardtext="uiNumber02"/>
|
||||||
|
<value value="3" hardtext="uiNumber03"/>
|
||||||
|
<value value="4" hardtext="uiNumber04"/>
|
||||||
|
<value value="5" hardtext="uiNumber05"/>
|
||||||
|
<value value="6" hardtext="uiNumber06"/>
|
||||||
|
<value value="7" hardtext="uiNumber07"/>
|
||||||
|
<value value="8" hardtext="uiNumber08"/>
|
||||||
|
<value value="9" hardtext="uiNumber09"/>
|
||||||
|
<value value="10" hardtext="uiNumber10"/>
|
||||||
|
</parameter>
|
||||||
|
</action>
|
||||||
<action name="phrase_cancel_cast" hardtext="uiCancelCast" contexts="game, r2ed_anim_test"/>
|
<action name="phrase_cancel_cast" hardtext="uiCancelCast" contexts="game, r2ed_anim_test"/>
|
||||||
</action_category>
|
</action_category>
|
||||||
|
|
||||||
|
|
|
@ -1620,6 +1620,23 @@ public:
|
||||||
};
|
};
|
||||||
REGISTER_ACTION_HANDLER(CHandlerPhraseSelectShortcutBar, "select_shortcut_bar");
|
REGISTER_ACTION_HANDLER(CHandlerPhraseSelectShortcutBar, "select_shortcut_bar");
|
||||||
|
|
||||||
|
// ***************************************************************************
|
||||||
|
class CHandlerPhraseSelectShortcutBar2 : public IActionHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void execute(CCtrlBase * /* pCaller */, const string &Params)
|
||||||
|
{
|
||||||
|
CInterfaceManager *pIM= CInterfaceManager::getInstance();
|
||||||
|
CCDBNodeLeaf *node= NLGUI::CDBManager::getInstance()->getDbProp("UI:PHRASE:SELECT_MEMORY_2", false);
|
||||||
|
if(node)
|
||||||
|
{
|
||||||
|
sint32 val;
|
||||||
|
fromString(Params, val);
|
||||||
|
node->setValue32(val);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
REGISTER_ACTION_HANDLER(CHandlerPhraseSelectShortcutBar2, "select_shortcut_bar_2");
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue