Minor interface fixes
--HG-- branch : item_group
This commit is contained in:
parent
83dea32f41
commit
1d36ea9acc
1 changed files with 9 additions and 1 deletions
|
@ -2053,6 +2053,14 @@ class CHandlerItemMenuCheck : public IActionHandler
|
|||
{
|
||||
if(pEquip)
|
||||
pNewSubMenu->addLine(pEquip->getHardText(), "item_group_equip", ahParams, name + "_equip");
|
||||
// Add move sub menu
|
||||
if (pMoveSubMenu)
|
||||
{
|
||||
pNewSubMenu->addLine(pMoveSubMenu->getHardText(), "", "", name + "_move");
|
||||
CGroupSubMenu* tmp = new CGroupSubMenu(CViewBase::TCtorParam());
|
||||
pNewSubMenu->setSubMenu(pNewSubMenu->getNumLine() - 1, tmp);
|
||||
pNewSubMenu = tmp;
|
||||
}
|
||||
if(pMoveToBag && pMoveToBag->getActive())
|
||||
{
|
||||
CViewTextMenu* tmp = pNewSubMenu->addLine(pMoveToBag->getHardText(),"item_group_move", "destination=bag|" + ahParams, name + "_bag");
|
||||
|
@ -2073,7 +2081,7 @@ class CHandlerItemMenuCheck : public IActionHandler
|
|||
CViewTextMenu* tmp = pNewSubMenu->addLine(pMoveToRoom->getHardText(), "item_group_move", "destination=player_room|" + ahParams, name + "_room");
|
||||
if(tmp) tmp->setGrayed(pMoveToRoom->getGrayed());
|
||||
}
|
||||
if(pMoveToGuild && pMoveToGuild->getActive())
|
||||
if(pMoveToGuild && pMoveToGuild->getActive() && ClientCfg.ItemGroupAllowGuild)
|
||||
{
|
||||
CViewTextMenu* tmp = pNewSubMenu->addLine(pMoveToGuild->getHardText(),"item_group_move", "destination=guild|" + ahParams, name + "_guild");
|
||||
if(tmp) tmp->setGrayed(pMoveToRoom->getGrayed());
|
||||
|
|
Loading…
Reference in a new issue