EXT-7793 FIXED Implemented "Wear" button tooltip changing depending on selection.

- Added check to LLPanelOutfitsInventory::updateListCommands() which takes place on selection change and depending on hasItemSelected() sets tooltip for "Wear" button.

Reviewed by Neal Orman at https://codereview.productengine.com/secondlife/r/665/

--HG--
branch : product-engine
meow-7.2.2
Andrew Dyukov 2010-06-30 15:05:02 +03:00
parent fc732b34b2
commit 4bf3bda2ab
2 changed files with 16 additions and 1 deletions

View File

@ -262,6 +262,14 @@ void LLPanelOutfitsInventory::updateListCommands()
mListCommands->childSetEnabled("wear_btn", wear_enabled);
mListCommands->childSetVisible("wear_btn", wear_visible);
mSaveComboBtn->setMenuItemEnabled("save_outfit", make_outfit_enabled);
if (mMyOutfitsPanel->hasItemSelected())
{
mListCommands->childSetToolTip("wear_btn", getString("wear_items_tooltip"));
}
else
{
mListCommands->childSetToolTip("wear_btn", getString("wear_outfit_tooltip"));
}
}
void LLPanelOutfitsInventory::showGearMenu()

View File

@ -12,6 +12,14 @@
min_width="240"
width="320"
border="false">
<panel.string
name="wear_outfit_tooltip">
Wear selected outfit
</panel.string>
<panel.string
name="wear_items_tooltip">
Wear selected items
</panel.string>
<tab_container
follows="all"
height="539"
@ -89,7 +97,6 @@
layout="topleft"
name="wear_btn"
left_pad="3"
tool_tip="Wear selected outfit"
width="152" />
</panel>
</panel>