parent
f6bc93ceed
commit
74f8fd5721
|
|
@ -59,6 +59,7 @@ public:
|
|||
LLCurrencyUIManager mManager;
|
||||
|
||||
bool mHasTarget;
|
||||
std::string mTargetName;
|
||||
S32 mTargetPrice;
|
||||
S32 mRequiredAmount;
|
||||
|
||||
|
|
@ -115,13 +116,9 @@ void LLFloaterBuyCurrencyUI::noTarget()
|
|||
void LLFloaterBuyCurrencyUI::target(const std::string& name, S32 price)
|
||||
{
|
||||
mHasTarget = true;
|
||||
mTargetName = name;
|
||||
mTargetPrice = price;
|
||||
|
||||
if (!name.empty())
|
||||
{
|
||||
getChild<LLUICtrl>("target_price_label")->setValue(name);
|
||||
}
|
||||
|
||||
S32 balance = gStatusBar->getBalance();
|
||||
S32 need = price - balance;
|
||||
if (need < 0)
|
||||
|
|
|
|||
|
|
@ -4897,7 +4897,7 @@ void handle_buy_or_take()
|
|||
{
|
||||
LLStringUtil::format_map_t args;
|
||||
args["AMOUNT"] = llformat("%d", total_price);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString( "this_object_costs", args ), total_price );
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString( "BuyingCosts", args ), total_price );
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -825,7 +825,10 @@ void upload_done_callback(
|
|||
|
||||
if(!(can_afford_transaction(expected_upload_cost)))
|
||||
{
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( "", expected_upload_cost );
|
||||
LLStringUtil::format_map_t args;
|
||||
args["NAME"] = data->mAssetInfo.getName();
|
||||
args["AMOUNT"] = llformat("%d", expected_upload_cost);
|
||||
LLBuyCurrencyHTML::openCurrencyFloater( LLTrans::getString("UploadingCosts", args), expected_upload_cost );
|
||||
is_balance_sufficient = FALSE;
|
||||
}
|
||||
else if(region)
|
||||
|
|
@ -959,7 +962,10 @@ void upload_new_resource(
|
|||
if (balance < uploadInfo->getExpectedUploadCost())
|
||||
{
|
||||
// insufficient funds, bail on this upload
|
||||
LLBuyCurrencyHTML::openCurrencyFloater("", uploadInfo->getExpectedUploadCost());
|
||||
LLStringUtil::format_map_t args;
|
||||
args["NAME"] = uploadInfo->getName();
|
||||
args["AMOUNT"] = llformat("%d", uploadInfo->getExpectedUploadCost());
|
||||
LLBuyCurrencyHTML::openCurrencyFloater(LLTrans::getString("UploadingCosts", args), uploadInfo->getExpectedUploadCost());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2833,6 +2833,7 @@ If you continue to receive this message, please contact Second Life support for
|
|||
<string name="AcquiredItems">Acquired Items</string>
|
||||
<string name="Cancel">Cancel</string>
|
||||
<string name="UploadingCosts">Uploading [NAME] costs L$ [AMOUNT]</string>
|
||||
<string name="BuyingCosts">Buying this costs L$ [AMOUNT]</string>
|
||||
<string name="UnknownFileExtension">
|
||||
Unknown file extension .%s
|
||||
Expected .wav, .tga, .bmp, .jpg, .jpeg, or .anim
|
||||
|
|
@ -3788,12 +3789,11 @@ If you continue to receive this message, contact the [SUPPORT_SITE].
|
|||
<string name="to upload">to upload</string>
|
||||
<string name="to publish a classified ad">to publish a classified ad</string>
|
||||
|
||||
<string name="giving">Giving L$ [AMOUNT]</string>
|
||||
<string name="uploading_costs">Uploading costs L$ [AMOUNT]</string>
|
||||
<string name="this_costs">This costs L$ [AMOUNT]</string>
|
||||
|
||||
<string name="buying_selected_land">This land costs</string>
|
||||
<string name="this_object_costs">This item costs</string>
|
||||
<string name="giving">You want to give</string>
|
||||
<string name="buying_selected_land">Buying selected land for L$ [AMOUNT]</string>
|
||||
<string name="this_object_costs">This object costs L$ [AMOUNT]</string>
|
||||
|
||||
<string name="group_role_everyone">Everyone</string>
|
||||
<string name="group_role_officers">Officers</string>
|
||||
|
|
|
|||
Loading…
Reference in New Issue