90 lines
2.8 KiB
C++
90 lines
2.8 KiB
C++
#ifndef IPL_SETTING_BUTTON_H
|
|
#define IPL_SETTING_BUTTON_H
|
|
|
|
#include "scene/iplFaderSceneBase.h"
|
|
|
|
#include "layout/GUIManager.h"
|
|
|
|
namespace ipl {
|
|
USE_GUI_MANAGER
|
|
namespace scene {
|
|
FADER_SCENE_CLASS(SettingButton), public ::gui::EventHandler {
|
|
public:
|
|
enum {
|
|
CANCEL = 0,
|
|
DECIDE,
|
|
};
|
|
|
|
enum {
|
|
CMD_NONE = 0,
|
|
CMD_SHOW_BTN,
|
|
CMD_HIDE_BTN,
|
|
CMD_SET_TEXT,
|
|
};
|
|
|
|
SettingButton(EGG::Heap* heap, int type);
|
|
virtual ~SettingButton();
|
|
|
|
virtual void prepare();
|
|
virtual void create();
|
|
virtual void draw();
|
|
|
|
virtual SceneCommand calcFadein();
|
|
virtual SceneCommand calcNormal();
|
|
|
|
virtual void calcCommonAfter();
|
|
|
|
virtual void onEvent(u32 compId, u32 event, void* data);
|
|
|
|
bool update();
|
|
|
|
void reserve(int command, u32 msgId);
|
|
|
|
bool isPlaying() const;
|
|
void setSoundType(int type) { mSoundType = type; }
|
|
|
|
private:
|
|
void setText(u32 msgId);
|
|
|
|
void showBtn();
|
|
void hideBtn();
|
|
|
|
void showWii();
|
|
void hideWii();
|
|
|
|
void start_point_event(const char* paneName, controller::Interface* controller);
|
|
void start_left_event(const char* paneName);
|
|
void start_trig_event(const char* paneName);
|
|
|
|
typedef struct Unk {
|
|
int mCommand; // 0x00
|
|
u32 mMsgID; // 0x04
|
|
} Unk;
|
|
|
|
Unk unk_0x64[64];
|
|
|
|
int unk_0x264;
|
|
int unk_0x268;
|
|
int unk_0x26C;
|
|
int unk_0x270;
|
|
|
|
int mSettingType; // 0x274
|
|
|
|
layout::Object* mpLayout;
|
|
nand::LayoutFile* mpLayoutFile;
|
|
|
|
gui::PaneManager* mpGuiManager;
|
|
|
|
BOOL mBtnHovered; // 0x284
|
|
|
|
int mSoundType; // 0x288
|
|
|
|
bool mbShowBtn; // 0x28C
|
|
bool mbFadedIn; // 0x28D
|
|
bool mbTrigBtn; // 0x28E
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // IPL_SETTING_BUTTON_H
|