Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
d_select_cursor.h
Go to the documentation of this file.
1#ifndef D_D_SELECT_CURSOR_H
2#define D_D_SELECT_CURSOR_H
3
4#include "d/d_drawlist.h"
5#include "d/d_select_icon.h"
6
8
10public:
11 /* 801941E4 */ dSelect_cursorHIO_c();
12
13 /* 80195978 */ virtual ~dSelect_cursorHIO_c() {}
14
15 /* 0x04 */ s8 field_0x4;
16 /* 0x08 */ f32 field_0x8;
17 /* 0x0C */ f32 mXAxisExpansion;
18 /* 0x10 */ f32 mYAxisExpansion;
19 /* 0x14 */ f32 mOscillation;
20 /* 0x18 */ f32 field_0x18;
21 /* 0x1C */ f32 mRatioX;
22 /* 0x20 */ f32 mRatioY;
23 /* 0x24 */ bool mDebugON;
24};
25
27public:
28 /* 80194220 */ dSelect_cursor_c(u8, f32, JKRArchive*);
29 /* 80194CC0 */ void update();
30 /* 801950F4 */ void setPos(f32, f32, J2DPane*, bool);
31 /* 801951B0 */ void setParam(f32, f32, f32, f32, f32);
32 /* 801951C8 */ void setScale(f32);
33 /* 801952A0 */ void setAlphaRate(f32);
34 /* 80195330 */ int addAlpha();
35 /* 801953CC */ int decAlpha();
36 /* 80195460 */ void setBpkAnimation(J2DAnmColor*);
37 /* 801955F0 */ void setBtk0Animation(J2DAnmTextureSRTKey*);
38 /* 80195724 */ void setCursorAnimation();
39 /* 801958E0 */ void setBckAnimation(J2DAnmTransformKey*);
40 /* 80195940 */ void moveCenter(J2DPane*, f32, f32);
41
42 /* 80194C30 */ virtual void draw();
43 /* 801949EC */ virtual ~dSelect_cursor_c();
44
45 void setPos(f32 x, f32 y) {
46 mPositionX = x;
47 mPositionY = y;
48 }
49
50 void onUpdateFlag() { mUpdateFlag = true; }
51
52 void resetUpdateFlag() { mUpdateFlag = false; }
53
54 bool getUpdateFlag() { return mUpdateFlag; }
55
56 void onPlayAnime(int i_flag) { field_0xb4 |= (1 << i_flag); }
57 void offPlayAnime(int i_flag) { field_0xb4 &= ~(1 << i_flag); }
58 bool chkPlayAnime(int i_flag) { return field_0xb4 & (1 << i_flag); }
59 void onPlayAllAnime() { field_0xb4 = 0xff; }
61
62private:
63 /* 0x04 */ J2DScreen* mpScreen;
64 /* 0x08 */ J2DPane* mpPane;
66 /* 0x10 */ CPaneMgr* mpPaneMgr;
67 /* 0x14 */ CPaneMgr* field_0x14;
68 /* 0x18 */ CPaneMgr* field_0x18;
69 /* 0x18 */ CPaneMgr* field_0x1C[4];
74 /* 0x40 */ f32 field_0x40;
75 /* 0x44 */ f32 field_0x44;
76 /* 0x48 */ f32 field_0x48[2];
77 /* 0x50 */ f32 field_0x50;
78 /* 0x54 */ f32 field_0x54;
79 /* 0x58 */ f32 mPositionX;
80 /* 0x5C */ f32 mPositionY;
81 /* 0x60 */ f32 mParam1;
82 /* 0x64 */ f32 mParam2;
83 /* 0x68 */ f32 mParam3;
84 /* 0x6C */ f32 mParam4;
85 /* 0x70 */ f32 mParam5;
86 /* 0x74 */ f32 field_0x74[4];
87 /* 0x84 */ f32 field_0x84[4];
88 /* 0x94 */ f32 field_0x94[4];
89 /* 0xA4 */ f32 field_0xa4[4];
90 /* 0xB4 */ u8 field_0xb4;
91 /* 0xB5 */ u8 mNameIdx;
92 /* 0xB6 */ u8 field_0xb6;
93 /* 0xB7 */ bool mUpdateFlag;
94};
95
96#endif /* D_D_SELECT_CURSOR_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition d_pane_class.h:13
Definition J2DAnimation.h:381
Definition J2DAnimation.h:203
Definition J2DAnimation.h:166
Definition J2DPane.h:51
Definition J2DScreen.h:48
Definition JKRArchive.h:57
Definition d_drawlist.h:31
Definition d_select_cursor.h:9
virtual ~dSelect_cursorHIO_c()
Definition d_select_cursor.h:13
f32 mOscillation
Definition d_select_cursor.h:19
f32 mRatioX
Definition d_select_cursor.h:21
f32 field_0x18
Definition d_select_cursor.h:20
f32 field_0x8
Definition d_select_cursor.h:16
f32 mYAxisExpansion
Definition d_select_cursor.h:18
bool mDebugON
Definition d_select_cursor.h:23
s8 field_0x4
Definition d_select_cursor.h:15
dSelect_cursorHIO_c()
Definition d_select_cursor.cpp:18
f32 mRatioY
Definition d_select_cursor.h:22
f32 mXAxisExpansion
Definition d_select_cursor.h:17
Definition d_select_cursor.h:26
f32 mParam1
Definition d_select_cursor.h:81
dSelect_cursorHIO_c * mpCursorHIO
Definition d_select_cursor.h:73
virtual void draw()
Definition d_select_cursor.cpp:258
void moveCenter(J2DPane *, f32, f32)
Definition d_select_cursor.cpp:570
void setBtk0Animation(J2DAnmTextureSRTKey *)
Definition d_select_cursor.cpp:506
u8 field_0xb6
Definition d_select_cursor.h:92
void update()
Definition d_select_cursor.cpp:270
f32 mParam5
Definition d_select_cursor.h:85
CPaneMgr * field_0x18
Definition d_select_cursor.h:68
void setBckAnimation(J2DAnmTransformKey *)
Definition d_select_cursor.cpp:564
f32 mParam4
Definition d_select_cursor.h:84
void setPos(f32, f32, J2DPane *, bool)
Definition d_select_cursor.cpp:363
void setScale(f32)
Definition d_select_cursor.cpp:409
f32 field_0x40
Definition d_select_cursor.h:74
f32 field_0x48[2]
Definition d_select_cursor.h:76
void onUpdateFlag()
Definition d_select_cursor.h:50
bool chkPlayAnime(int i_flag)
Definition d_select_cursor.h:58
f32 mParam2
Definition d_select_cursor.h:82
f32 mParam3
Definition d_select_cursor.h:83
dSelect_icon_c * mpSelectIcon
Definition d_select_cursor.h:65
int decAlpha()
Definition d_select_cursor.cpp:463
void offPlayAllAnime()
Definition d_select_cursor.h:60
J2DAnmTextureSRTKey * field_0x34[2]
Definition d_select_cursor.h:72
void onPlayAllAnime()
Definition d_select_cursor.h:59
f32 field_0x54
Definition d_select_cursor.h:78
J2DScreen * mpScreen
Definition d_select_cursor.h:63
f32 field_0x84[4]
Definition d_select_cursor.h:87
int addAlpha()
Definition d_select_cursor.cpp:444
f32 field_0x50
Definition d_select_cursor.h:77
f32 field_0xa4[4]
Definition d_select_cursor.h:89
void setBpkAnimation(J2DAnmColor *)
Definition d_select_cursor.cpp:482
void setAlphaRate(f32)
Definition d_select_cursor.cpp:428
J2DPane * mpPane
Definition d_select_cursor.h:64
f32 field_0x74[4]
Definition d_select_cursor.h:86
u8 mNameIdx
Definition d_select_cursor.h:91
f32 field_0x94[4]
Definition d_select_cursor.h:88
J2DAnmColor * field_0x30
Definition d_select_cursor.h:71
virtual ~dSelect_cursor_c()
Definition d_select_cursor.cpp:211
void onPlayAnime(int i_flag)
Definition d_select_cursor.h:56
CPaneMgr * field_0x14
Definition d_select_cursor.h:67
void setParam(f32, f32, f32, f32, f32)
Definition d_select_cursor.cpp:399
f32 mPositionX
Definition d_select_cursor.h:79
f32 field_0x44
Definition d_select_cursor.h:75
bool mUpdateFlag
Definition d_select_cursor.h:93
void setPos(f32 x, f32 y)
Definition d_select_cursor.h:45
void offPlayAnime(int i_flag)
Definition d_select_cursor.h:57
bool getUpdateFlag()
Definition d_select_cursor.h:54
CPaneMgr * field_0x1C[4]
Definition d_select_cursor.h:69
f32 mPositionY
Definition d_select_cursor.h:80
void setCursorAnimation()
Definition d_select_cursor.cpp:531
J2DAnmTransformKey * field_0x2C
Definition d_select_cursor.h:70
u8 field_0xb4
Definition d_select_cursor.h:90
CPaneMgr * mpPaneMgr
Definition d_select_cursor.h:66
void resetUpdateFlag()
Definition d_select_cursor.h:52
Definition d_select_icon.h:16
double x double x
Definition e_atan2.c:58
double x double y
Definition e_atan2.c:58
signed char s8
Definition types.h:4
float f32
Definition types.h:22
unsigned char u8
Definition types.h:8