summaryrefslogtreecommitdiff
path: root/src/koopatlas/starcoin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/koopatlas/starcoin.h')
-rw-r--r--src/koopatlas/starcoin.h55
1 files changed, 35 insertions, 20 deletions
diff --git a/src/koopatlas/starcoin.h b/src/koopatlas/starcoin.h
index 844b1ef..c4e9cbf 100644
--- a/src/koopatlas/starcoin.h
+++ b/src/koopatlas/starcoin.h
@@ -3,37 +3,52 @@
#include "koopatlas/core.h"
-class dWMStarCoin : public dActor_c {
+class dWMStarCoin_c : public dActor_c {
public:
- dWMStarCoin();
+ dWMStarCoin_c();
int onCreate();
int onDelete();
int onExecute();
int onDraw();
- void specialDraw1();
-
- mHeapAllocator_c allocator;
- nw4r::g3d::ResFile res;
- m3d::mdl_c shopkeep;
- mMtx matrix;
bool layoutLoaded;
m2d::EmbedLayout_c layout;
- bool isHidden;
- s16 rotation;
-
- void LoadCoinsForWorld(int world);
- void setCoin(bool On, int coin, int slot);
- void setText(const char *str, const char *name);
- void setWorldName(int world);
-
- static dWMStarCoin *build();
- static dWMStarCoin *instance;
+ bool visible;
+ void show();
+
+ static dWMStarCoin_c *build();
+ static dWMStarCoin_c *instance;
+
+ enum Animation {
+ SHOW_ALL = 0,
+ SHOW_SECTION,
+ HIDE_SECTION,
+ SHOW_LEFT_ARROW,
+ HIDE_LEFT_ARROW,
+ SHOW_RIGHT_ARROW,
+ HIDE_RIGHT_ARROW
+ };
+
+ enum _Constants {
+ ROW_COUNT = 9,
+ COLUMN_COUNT = 2,
+ SHINE_COUNT = 5,
+ };
+
+ nw4r::lyt::Picture
+ *Shine[COLUMN_COUNT][SHINE_COUNT],
+ *CoinOutline[COLUMN_COUNT][ROW_COUNT][3],
+ *Coin[COLUMN_COUNT][ROW_COUNT][3];
+
+ nw4r::lyt::TextBox
+ *LevelName[COLUMN_COUNT][ROW_COUNT],
+ *LeftTitle, *RightTitle,
+ *TotalCoinCount, *UnspentCoinCount,
+ *EarnedCoinCount, *EarnedCoinMax,
+ *BtnWorldSelText, *BtnBackText;
- private:
- bool isPointBarShown;
};
#endif