diff options
author | Treeki <treeki@gmail.com> | 2012-10-18 17:45:28 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-10-18 17:45:28 +0200 |
commit | 9cf8cf3ac24149320f8c7adcd432fcf2654e5743 (patch) | |
tree | 74353e8a7d3387b9c0d4b7e687a295e0954a7127 /src/koopatlas/starcoin.cpp | |
parent | e5a930cea6deda5baea8e6f75230e3cef332b0db (diff) | |
download | kamek-9cf8cf3ac24149320f8c7adcd432fcf2654e5743.tar.gz kamek-9cf8cf3ac24149320f8c7adcd432fcf2654e5743.zip |
added D-pad
Diffstat (limited to 'src/koopatlas/starcoin.cpp')
-rw-r--r-- | src/koopatlas/starcoin.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/koopatlas/starcoin.cpp b/src/koopatlas/starcoin.cpp index ca6e602..24176f5 100644 --- a/src/koopatlas/starcoin.cpp +++ b/src/koopatlas/starcoin.cpp @@ -88,9 +88,17 @@ int dWMStarCoin_c::onCreate() { static const char *tbNames[] = { "LeftTitle", "RightTitle", "TotalCoinCount", "UnspentCoinCount", - "EarnedCoinCount", "EarnedCoinMax", "BtnWorldSelText", "BtnBackText", + "EarnedCoinCount", "EarnedCoinMax", "BtnBackText", }; - layout.getTextBoxes(tbNames, &LeftTitle, 8); + layout.getTextBoxes(tbNames, &LeftTitle, 7); + + static const char *picNames[] = { + "DPadLeft", "DPadRight", + }; + layout.getPictures(picNames, &DPadLeft, 2); + + DPadLeft->SetVisible(false); + DPadRight->SetVisible(false); layoutLoaded = true; } @@ -133,6 +141,7 @@ void dWMStarCoin_c::showLeftArrow() { if (!isLeftArrowVisible) { isLeftArrowVisible = true; layout.enableNonLoopAnim(SHOW_LEFT_ARROW); + DPadLeft->SetVisible(true); } } @@ -140,6 +149,7 @@ void dWMStarCoin_c::showRightArrow() { if (!isRightArrowVisible) { isRightArrowVisible = true; layout.enableNonLoopAnim(SHOW_RIGHT_ARROW); + DPadRight->SetVisible(true); } } @@ -147,6 +157,7 @@ void dWMStarCoin_c::hideLeftArrow() { if (isLeftArrowVisible) { isLeftArrowVisible = false; layout.enableNonLoopAnim(HIDE_LEFT_ARROW); + DPadLeft->SetVisible(false); } } @@ -154,6 +165,7 @@ void dWMStarCoin_c::hideRightArrow() { if (isRightArrowVisible) { isRightArrowVisible = false; layout.enableNonLoopAnim(HIDE_RIGHT_ARROW); + DPadRight->SetVisible(false); } } @@ -181,7 +193,6 @@ bool dWMStarCoin_c::canScrollRight() const { void dWMStarCoin_c::loadInfo() { WriteBMGToTextBox(BtnBackText, GetBMG(), 3, 1, 0); - WriteBMGToTextBox(BtnWorldSelText, GetBMG(), 4, 11, 0); int unspentCoins = getUnspentStarCoinCount(); int coins = getStarCoinCount(); |