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 | |
parent | e5a930cea6deda5baea8e6f75230e3cef332b0db (diff) | |
download | kamek-9cf8cf3ac24149320f8c7adcd432fcf2654e5743.tar.gz kamek-9cf8cf3ac24149320f8c7adcd432fcf2654e5743.zip |
added D-pad
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/starcoin.cpp | 17 | ||||
-rw-r--r-- | src/koopatlas/starcoin.h | 5 |
2 files changed, 17 insertions, 5 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(); diff --git a/src/koopatlas/starcoin.h b/src/koopatlas/starcoin.h index 4ba7aa4..42cddbd 100644 --- a/src/koopatlas/starcoin.h +++ b/src/koopatlas/starcoin.h @@ -61,14 +61,15 @@ class dWMStarCoin_c : public dActor_c { nw4r::lyt::Picture *Shine[COLUMN_COUNT][SHINE_COUNT], *CoinOutline[COLUMN_COUNT][ROW_COUNT][3], - *Coin[COLUMN_COUNT][ROW_COUNT][3]; + *Coin[COLUMN_COUNT][ROW_COUNT][3], + *DPadLeft, *DPadRight; nw4r::lyt::TextBox *LevelName[COLUMN_COUNT][ROW_COUNT], *LeftTitle, *RightTitle, *TotalCoinCount, *UnspentCoinCount, *EarnedCoinCount, *EarnedCoinMax, - *BtnWorldSelText, *BtnBackText; + *BtnBackText; dStateWrapper_c<dWMStarCoin_c> state; |