summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/koopatlas/starcoin.cpp17
-rw-r--r--src/koopatlas/starcoin.h5
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;