Implemented (EXT-4714) Add maturity icons to Buy Land and Buy Land for Group.
--HG-- branch : product-enginemeow-7.2.2
parent
f52e703694
commit
ba39810721
|
|
@ -82,7 +82,10 @@ public:
|
|||
virtual ~LLFloaterBuyLandUI();
|
||||
|
||||
/*virtual*/ void onClose(bool app_quitting);
|
||||
|
||||
|
||||
// Left padding for maturity rating icon.
|
||||
static const S32 ICON_PAD = 2;
|
||||
|
||||
private:
|
||||
class SelectionObserver : public LLParcelObserver
|
||||
{
|
||||
|
|
@ -501,6 +504,25 @@ void LLFloaterBuyLandUI::updateCovenantInfo()
|
|||
{
|
||||
std::string region_name_txt = region->getName() + " ("+rating +")";
|
||||
region_name->setText(region_name_txt);
|
||||
|
||||
LLIconCtrl* rating_icon = getChild<LLIconCtrl>("rating_icon");
|
||||
LLRect rect = rating_icon->getRect();
|
||||
S32 icon_left_pad = region_name->getRect().mLeft + region_name->getTextBoundingRect().getWidth() + ICON_PAD;
|
||||
rating_icon->setRect(rect.setOriginAndSize(icon_left_pad, rect.mBottom, rect.getWidth(), rect.getHeight()));
|
||||
|
||||
switch(sim_access)
|
||||
{
|
||||
case SIM_ACCESS_PG:
|
||||
rating_icon->setValue(getString("icon_PG"));
|
||||
break;
|
||||
|
||||
case SIM_ACCESS_ADULT:
|
||||
rating_icon->setValue(getString("icon_R"));
|
||||
break;
|
||||
|
||||
default:
|
||||
rating_icon->setValue(getString("icon_M"));
|
||||
}
|
||||
}
|
||||
|
||||
LLTextBox* region_type = getChild<LLTextBox>("region_type_text");
|
||||
|
|
|
|||
|
|
@ -172,6 +172,15 @@ supports [AMOUNT2] objects
|
|||
name="no_parcel_selected">
|
||||
(no parcel selected)
|
||||
</floater.string>
|
||||
<floater.string
|
||||
name="icon_PG"
|
||||
value="Parcel_PG_Dark"/>
|
||||
<floater.string
|
||||
name="icon_M"
|
||||
value="Parcel_M_Dark"/>
|
||||
<floater.string
|
||||
name="icon_R"
|
||||
value="Parcel_R_Dark"/>
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
|
|
@ -195,9 +204,17 @@ supports [AMOUNT2] objects
|
|||
left_delta="110"
|
||||
name="region_name_text"
|
||||
top_delta="0"
|
||||
width="175">
|
||||
use_ellipses="true"
|
||||
width="155">
|
||||
(unknown)
|
||||
</text>
|
||||
<icon
|
||||
follows="left|top"
|
||||
height="16"
|
||||
layout="topleft"
|
||||
name="rating_icon"
|
||||
top_delta="-2"
|
||||
width="18"/>
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
|
|
|
|||
Loading…
Reference in New Issue