Show Firestorm Developer and/or Support in profile displays, as appropriate.

meow-7.2.2
Tonya Souther 2011-10-26 12:26:09 -05:00
parent 822f30624b
commit 9a6dc8ba8c
2 changed files with 38 additions and 3 deletions

View File

@ -50,6 +50,7 @@
#include "lltrans.h"
#include "llgroupactions.h"
#include "llgrouplist.h"
#include "fsdata.h"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Class LLDropTarget
@ -741,7 +742,34 @@ void LLPanelAvatarProfile::fillAccountStatus(const LLAvatarData* avatar_data)
args["[PAYMENTINFO]"] = LLAvatarPropertiesProcessor::paymentInfo(avatar_data);
// *NOTE: AVATAR_AGEVERIFIED not currently getting set in
// dataserver/lldataavatar.cpp for privacy considerations
args["[AGEVERIFICATION]"] = "";
//...so why didn't they comment this out too and take it out of
// the XML, too? Argh. -- TS
// args["[AGEVERIFICATION]"] = "";
args["[FIRESTORM]"] = "";
if (FSData::is_developer(avatar_data->avatar_id))
{
args["[FIRESTORM]"] = "Firestorm";
std::string dev = getString("FSDev");
args["[FSDEV]"] = dev;
}
else
{
args["[FSDEV]"] = "";
}
if (FSData::is_support(avatar_data->avatar_id))
{
args["[FIRESTORM]"] = "Firestorm";
std::string supp = getString("FSSupp");
if (FSData::is_developer(avatar_data->avatar_id))
{
supp = " /" + supp;
}
args["[FSSUPP]"] = supp;
}
else
{
args["[FSSUPP]"] = "";
}
std::string caption_text = getString("CaptionTextAcctInfo", args);
getChild<LLUICtrl>("acc_status_text")->setValue(caption_text);
}

View File

@ -12,8 +12,10 @@
name="CaptionTextAcctInfo">
[ACCTTYPE]
[PAYMENTINFO]
[AGEVERIFICATION]
[FIRESTORM][FSDEV][FSSUPP]
</string>
<!-- [AGEVERIFICATION] moved out of the above, since it's not set anyway. See
LLPanelAvatarProfile::fillAccountStatus() ...TS -->
<string
name="payment_update_link_url">
http://www.secondlife.com/account/billing.php?lang=en
@ -44,7 +46,12 @@
name="display_name_text_args">
[DISPLAY_NAME]
</string>
<string
name="FSDev"
value=" Developer" />
<string
name="FSSupp"
value=" Support" />
<panel
layout="topleft"