aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcurrencyuimanager.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llcurrencyuimanager.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/llcurrencyuimanager.cpp')
-rw-r--r--linden/indra/newview/llcurrencyuimanager.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/linden/indra/newview/llcurrencyuimanager.cpp b/linden/indra/newview/llcurrencyuimanager.cpp
index 0469d5f..1e97df0 100644
--- a/linden/indra/newview/llcurrencyuimanager.cpp
+++ b/linden/indra/newview/llcurrencyuimanager.cpp
@@ -2,6 +2,8 @@
2 * @file llcurrencyuimanager.cpp 2 * @file llcurrencyuimanager.cpp
3 * @brief LLCurrencyUIManager class implementation 3 * @brief LLCurrencyUIManager class implementation
4 * 4 *
5 * $LicenseInfo:firstyear=2006&license=viewergpl$
6 *
5 * Copyright (c) 2006-2007, Linden Research, Inc. 7 * Copyright (c) 2006-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
@@ -377,7 +380,7 @@ void LLCurrencyUIManager::Impl::updateUI()
377 { 380 {
378 if (!mZeroMessage.empty() && mUserCurrencyBuy == 0) 381 if (!mZeroMessage.empty() && mUserCurrencyBuy == 0)
379 { 382 {
380 lindenAmount->setText(""); 383 lindenAmount->setText(LLString::null);
381 } 384 }
382 else 385 else
383 { 386 {
@@ -456,20 +459,20 @@ bool LLCurrencyUIManager::process()
456 return changed; 459 return changed;
457} 460}
458 461
459void LLCurrencyUIManager::buy() 462void LLCurrencyUIManager::buy(const LLString& buy_msg)
460{ 463{
461 if (!canBuy()) 464 if (!canBuy())
462 { 465 {
463 return; 466 return;
464 } 467 }
465 468
466 // XUI:translate 469 LLUIString msg = buy_msg;
470 msg.setArg("[LINDENS]", llformat("%d", impl.mUserCurrencyBuy));
471 msg.setArg("[USD]", llformat("%#.2f", impl.mSiteCurrencyEstimatedCost / 100.0));
467 LLConfirmationManager::confirm(impl.mSiteConfirm, 472 LLConfirmationManager::confirm(impl.mSiteConfirm,
468 llformat("Buy L$ %d for approx. US$ %#.2f\n", 473 msg,
469 impl.mUserCurrencyBuy, 474 impl,
470 impl.mSiteCurrencyEstimatedCost / 100.0), 475 &LLCurrencyUIManager::Impl::startCurrencyBuy);
471 impl,
472 &LLCurrencyUIManager::Impl::startCurrencyBuy);
473} 476}
474 477
475 478
@@ -515,3 +518,4 @@ std::string LLCurrencyUIManager::errorURI()
515 return impl.mErrorURI; 518 return impl.mErrorURI;
516} 519}
517 520
521