mirror of
https://github.com/projectPiki/pikmin2.git
synced 2024-11-26 23:00:27 +00:00
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
#ifndef _ROOTMENUSECTION_H
|
|
#define _ROOTMENUSECTION_H
|
|
|
|
#include "Section.h"
|
|
|
|
struct MenuSection : public Section {
|
|
MenuSection(struct JFWDisplay*, struct JKRHeap*, bool);
|
|
|
|
virtual ~MenuSection() { } // _08 (weak)
|
|
virtual void run(); // _0C
|
|
virtual Section* getCurrentSection() { return mCurrentSection; } // _30 (weak)
|
|
virtual ISection* setChildSection(JKRHeap*) = 0; // _48
|
|
|
|
bool runChildSection();
|
|
|
|
// _00 = VTBL
|
|
// _00-_3C = Section
|
|
bool mIsDone; // _3C
|
|
u8 _3D; // _3D
|
|
u8 _3E; // _3E
|
|
u8 _3F; // _3F
|
|
Section* mCurrentSection; // _40
|
|
};
|
|
|
|
struct RootMenuSection : public MenuSection {
|
|
RootMenuSection(struct JKRHeap*);
|
|
|
|
virtual ~RootMenuSection(); // _08
|
|
virtual void drawInit(struct Graphics&); // _1C
|
|
virtual bool doUpdate() { return false; } // _3C
|
|
virtual void doDraw(Graphics& gfx) { } // _40
|
|
virtual ISection* setChildSection(JKRHeap*); // _48
|
|
};
|
|
|
|
#endif
|