diff options
author | McCabe Maxsted | 2010-06-16 00:51:58 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:41 -0500 |
commit | dad4792eb085d0d1741fb94a58564bcee1d7ebeb (patch) | |
tree | d2f6374de019f32e508f7f289022beee65475335 | |
parent | Made ellipses in menus follow standard user interface guidelines (diff) | |
download | meta-impy-dad4792eb085d0d1741fb94a58564bcee1d7ebeb.zip meta-impy-dad4792eb085d0d1741fb94a58564bcee1d7ebeb.tar.gz meta-impy-dad4792eb085d0d1741fb94a58564bcee1d7ebeb.tar.bz2 meta-impy-dad4792eb085d0d1741fb94a58564bcee1d7ebeb.tar.xz |
Fixed #339: status bar doesn't update buy currency button branding after switching grids
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 6 | ||||
-rw-r--r-- | linden/indra/newview/llstatusbar.cpp | 8 | ||||
-rw-r--r-- | linden/indra/newview/llstatusbar.h | 5 |
3 files changed, 18 insertions, 1 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index dc32b9d..1cc1871 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -2665,6 +2665,12 @@ bool idle_startup() | |||
2665 | LL_DEBUGS("AppInitStartupState") << "STATE_CLEANUP" << LL_ENDL; | 2665 | LL_DEBUGS("AppInitStartupState") << "STATE_CLEANUP" << LL_ENDL; |
2666 | set_startup_status(1.0, "", ""); | 2666 | set_startup_status(1.0, "", ""); |
2667 | 2667 | ||
2668 | // Make sure all the branding is in order -- MC | ||
2669 | if (gStatusBar) | ||
2670 | { | ||
2671 | gStatusBar->updateElements(); | ||
2672 | } | ||
2673 | |||
2668 | LLFirstUse::ClientTags(); | 2674 | LLFirstUse::ClientTags(); |
2669 | 2675 | ||
2670 | // Let the map know about the inventory. | 2676 | // Let the map know about the inventory. |
diff --git a/linden/indra/newview/llstatusbar.cpp b/linden/indra/newview/llstatusbar.cpp index 4b90007..3bd30cc 100644 --- a/linden/indra/newview/llstatusbar.cpp +++ b/linden/indra/newview/llstatusbar.cpp | |||
@@ -662,6 +662,14 @@ void LLStatusBar::refresh() | |||
662 | mTextParcelName->setRect(r); | 662 | mTextParcelName->setRect(r); |
663 | } | 663 | } |
664 | 664 | ||
665 | void LLStatusBar::updateElements() | ||
666 | { | ||
667 | // TODO: Disable buying currency when connected to non-SL grids | ||
668 | // that don't support currency yet -- MC | ||
669 | LLButton* buybtn = getChild<LLButton>("buycurrency"); | ||
670 | buybtn->setLabelArg("[CURRENCY]", gHippoGridManager->getConnectedGrid()->getCurrencySymbol()); | ||
671 | } | ||
672 | |||
665 | void LLStatusBar::setVisibleForMouselook(bool visible) | 673 | void LLStatusBar::setVisibleForMouselook(bool visible) |
666 | { | 674 | { |
667 | mTextBalance->setVisible(visible); | 675 | mTextBalance->setVisible(visible); |
diff --git a/linden/indra/newview/llstatusbar.h b/linden/indra/newview/llstatusbar.h index c5b4be0..8e71f75 100644 --- a/linden/indra/newview/llstatusbar.h +++ b/linden/indra/newview/llstatusbar.h | |||
@@ -105,8 +105,11 @@ public: | |||
105 | void setLandCommitted(S32 committed); | 105 | void setLandCommitted(S32 committed); |
106 | 106 | ||
107 | void refresh(); | 107 | void refresh(); |
108 | // some elements should hide in mouselook | ||
108 | void setVisibleForMouselook(bool visible); | 109 | void setVisibleForMouselook(bool visible); |
109 | // some elements should hide in mouselook | 110 | |
111 | // Update elements that might have changed after login screen | ||
112 | void updateElements(); | ||
110 | 113 | ||
111 | // ACCESSORS | 114 | // ACCESSORS |
112 | S32 getBalance() const; | 115 | S32 getBalance() const; |