NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_lytbase.hpp
1#pragma once
2#include <game/bases/d_2d.hpp>
3#include <game/bases/d_lyttextBox.hpp>
4#include <game/mLib/m_2d.hpp>
5#include <nw4r/lyt.h>
6
7class LytBase_c : public d2d::Multi_c {
8public:
9 LytBase_c();
10 ~LytBase_c();
11 virtual bool build(const char *, d2d::ResAccMult_c *);
12
13 LytTextBox_c *findTextBox(const char *);
14 void allocStringBuffer(nw4r::lyt::Pane *);
15
16 bool ReadResourceEx(const char *, int, bool);
17 bool ReadResource(const char *, bool);
18 bool ReadResource2(const char *, int);
19 bool ReadResource3(const char *, int); ///< @unofficial Not in Shield version.
20
21 void NPaneRegister(const char **, nw4r::lyt::Pane **, int);
22 void WPaneRegister(const char **, nw4r::lyt::Window **, int);
23 void PPaneRegister(const char **, nw4r::lyt::Picture **, int);
24 void TPaneRegister(const char **, LytTextBox_c **, int);
25 void TPaneNameRegister(const char **, const int *, int, int);
26 void AnimeResRegister(const char **, int);
27 void GroupRegister(const char **, const int *, int);
28
29 void AnimeStartBaseSetup(int);
30 void AnimeStartSetup(int, bool);
31 void LoopAnimeStartSetup(int);
32 void ReverseAnimeStartSetup(int, bool);
33 void AnimeEndSetup(int);
34 void AllAnimeEndSetup();
35
36 void AnimePlay();
37 bool isAnime(int);
38 bool isAllAnime();
39
40 void FUN_800c9770(void *, float *); ///< @unofficial
41
42 bool doDelete();
43
44private:
45 d2d::ResAccMultLoader_c mResAccessorLoader;
46
47 m2d::AnmResV2_c *mpAnimRes;
48 m2d::AnmGroup_c *mpAnimGroup;
49
50 bool *mpEnabledAnims;
51 int mAnimCount;
52
53 int mGroupCount;
54
55 int mLastStartedAnimNum;
56};
void FUN_800c9770(void *, float *)
bool ReadResource3(const char *, int)