1#include <game/bases/d_WiiStrap.hpp>
2#include <game/bases/d_game_com.hpp>
3#include <game/bases/d_lytbase.hpp>
4#include <game/mLib/m_fader.hpp>
5#include <lib/revolution/SC.h>
10dWiiStrap_c::dWiiStrap_c() : mHasLoadedLayout(false) {}
12dWiiStrap_c::~dWiiStrap_c() {}
18 if (!createLayout()) {
26bool dWiiStrap_c::createLayout() {
27 static const char *AnmNameTblEng[ANIM_NAME_COUNT] = {
"wiiStrap_EngEU_00_roop.brlan" };
28 static const char *AnmNameTblFra[ANIM_NAME_COUNT] = {
"wiiStrap_FraEU_00_roop.brlan" };
29 static const char *AnmNameTblGer[ANIM_NAME_COUNT] = {
"wiiStrap_GerEU_00_roop.brlan" };
30 static const char *AnmNameTblIta[ANIM_NAME_COUNT] = {
"wiiStrap_ItaEU_00_roop.brlan" };
31 static const char *AnmNameTblSpa[ANIM_NAME_COUNT] = {
"wiiStrap_SpaEU_00_roop.brlan" };
32 static const char *AnmNameTblNed[ANIM_NAME_COUNT] = {
"wiiStrap_NedEU_00_roop.brlan" };
34 static const char *GROUP_NAME_DT[ANIM_COUNT] = {
"A00_Strap" };
36 static const int ANIME_INDEX_TBL[ANIM_COUNT] = { roop };
42 switch (dGameCom::GetLanguageHBM()) {
44 if (!
mLayout.ReadResource3(
"WiiStrap/WiiStrap.arc", 2)) {
49 if (!
mLayout.ReadResourceEx(
"WiiStrap/WiiStrap.arc", 2,
true)) {
57 memset(filename, 0, ARRAY_SIZE(filename));
58 strncat(filename,
"wiiStrap_", ARRAY_MAX_STRLEN(filename));
59 switch (dGameCom::GetLanguageHBM()) {
61 strncat(filename,
"EngEU_00", ARRAY_MAX_STRLEN(filename));
break;
63 strncat(filename,
"FraEU_00", ARRAY_MAX_STRLEN(filename));
break;
65 strncat(filename,
"GerEU_00", ARRAY_MAX_STRLEN(filename));
break;
67 strncat(filename,
"ItaEU_00", ARRAY_MAX_STRLEN(filename));
break;
69 strncat(filename,
"SpaEU_00", ARRAY_MAX_STRLEN(filename));
break;
71 strncat(filename,
"NedEU_00", ARRAY_MAX_STRLEN(filename));
break;
73 strncat(filename,
".brlyt", ARRAY_MAX_STRLEN(filename));
75 mLayout.build(filename,
nullptr);
77 switch (dGameCom::GetLanguageHBM()) {
79 mLayout.AnimeResRegister(AnmNameTblEng, ANIM_NAME_COUNT);
break;
81 mLayout.AnimeResRegister(AnmNameTblFra, ANIM_NAME_COUNT);
break;
83 mLayout.AnimeResRegister(AnmNameTblGer, ANIM_NAME_COUNT);
break;
85 mLayout.AnimeResRegister(AnmNameTblIta, ANIM_NAME_COUNT);
break;
87 mLayout.AnimeResRegister(AnmNameTblSpa, ANIM_NAME_COUNT);
break;
89 mLayout.AnimeResRegister(AnmNameTblNed, ANIM_NAME_COUNT);
break;
91 mLayout.GroupRegister(GROUP_NAME_DT, ANIME_INDEX_TBL, ANIM_COUNT);
92 mLayout.LoopAnimeStartSetup(ANIM_STRAP);
virtual int preExecute()
pre method for the execute operation.
Displays the Wii Strap safety warning screen.
virtual int create()
do method for the create operation.
virtual int draw()
do method for the draw operation.
virtual int doDelete()
do method for the delete operation.
virtual int preExecute()
pre method for the execute operation.
virtual int execute()
do method for the execute operation.
bool mVisible
Whether the screen is currently visible.
LytBase_c mLayout
The layout for the screen.
bool mHasLoadedLayout
Whether the layout has been loaded.
@ NOT_READY
The step could not completed at this time.
@ SUCCEEDED
The step was completed successfully.
@ HIDDEN
The screen is completely unblocked.
static mFaderBase_c * mFader
The fader currently in use.
#define BASE_PROFILE(profName, className)
Creates a basic profile, using the profile number as the execute and draw order value.