diff options
Diffstat (limited to '')
-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(); |