//
// CreatorLayer::init from 0x494264 to 0x494c36 (2514 bytes)
//
// 1 xrefs:
// > CreatorLayer::create @ 0x493758
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:49:40 +0000
//
GameManager *__fastcall CreatorLayer::init(CreatorLayer *this)
{
GameManager *v2; // r0
GameManager *v3; // r0
cocos2d::CCDirector *v4; // r0
const char *v5; // r1
float *v6; // r4
void (__fastcall *v7)(float *, _DWORD *); // r8
void (__fastcall *v8)(float *, _DWORD *); // r8
int (__fastcall *v9)(float *, _DWORD *); // r3
cocos2d::CCMenu *v10; // r0
const cocos2d::CCPoint *v11; // r10
const char *v12; // r1
int v13; // r0
float v14; // s15
int v15; // r9
const char *v16; // r1
int (__fastcall **v17)(CreatorLayer *, cocos2d::CCObject *); // kr00_4
int (__fastcall **v18)(CreatorLayer *, cocos2d::CCObject *); // r3
cocos2d::CCSprite *v19; // r7
int v20; // r4
int v21; // r7
int (__fastcall *v22)(CreatorLayer *, cocos2d::CCObject *); // r3
size_t v23; // r0
float *v24; // r8
void (__fastcall *v25)(float *, _DWORD *); // r2
cocos2d::CCSprite *v26; // r0
float v27; // r0
GameManager *v28; // r0
GameManager *v29; // r0
GameManager *v30; // r0
GameLevelManager *v31; // r0
GameManager *v32; // r0
const char *v33; // r1
GameManager *v34; // r0
int v35; // r4
int (__fastcall *v36)(int, _DWORD *); // r8
cocos2d::CCDirector *v37; // r0
void (__fastcall *v38)(int, _DWORD *); // r8
cocos2d::CCDirector *v39; // r0
float v40; // s16
cocos2d::CCDirector *v41; // r0
float v42; // r0
const char *v43; // r1
cocos2d::CCSprite *v44; // r4
int (__fastcall *v45)(cocos2d::CCSprite *, _DWORD *); // r8
cocos2d::CCDirector *v46; // r0
void (__fastcall *v47)(cocos2d::CCSprite *, _DWORD *); // r8
cocos2d::CCDirector *v48; // r0
float v49; // s16
cocos2d::CCDirector *v50; // r0
float v51; // r0
const char *v52; // r1
cocos2d::CCSprite *v53; // r4
int (__fastcall *v54)(cocos2d::CCSprite *, _DWORD *); // r8
cocos2d::CCDirector *v55; // r0
void (__fastcall *v56)(cocos2d::CCSprite *, _DWORD *); // r8
cocos2d::CCDirector *v57; // r0
float v58; // s16
cocos2d::CCDirector *v59; // r0
float v60; // r0
const char *v61; // r1
cocos2d::CCSprite *v62; // r4
int (__fastcall *v63)(cocos2d::CCSprite *, _DWORD *); // r7
cocos2d::CCDirector *v64; // r0
void (__fastcall *v65)(cocos2d::CCSprite *, _DWORD *); // r7
cocos2d::CCDirector *v66; // r0
float v67; // s16
cocos2d::CCDirector *v68; // r0
float v69; // r0
GameStatsManager *v70; // r0
GameStatsManager *v71; // r0
int Stat; // r0
const char *v73; // r1
_BOOL4 v74; // r9
char *v75; // r0
int v76; // r0
int v77; // r11
int v78; // r4
float v79; // s17
int v80; // r0
const char *v81; // r1
int v82; // r9
cocos2d::CCString *v83; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v85; // r2
int v86; // r9
void (__fastcall *v87)(int, _DWORD *); // r11
GameManager *v88; // r0
GameManager *v89; // r0
const char *v90; // r1
char *v91; // r0
int v92; // r0
int v93; // r0
int v94; // r7
const char *v95; // r1
int v96; // r0
cocos2d::CCMenu *v97; // r7
int v98; // r6
cocos2d::CCDirector *v99; // r0
int (__fastcall *v100)(int, _BYTE *); // r9
cocos2d::CCDirector *v101; // r0
float v102; // s16
cocos2d::CCDirector *v103; // r0
float v104; // r0
GameManager *v105; // r0
GameManager *v106; // r0
PlatformToolbox *v107; // r0
GameManager *isControllerConnected; // r0
cocos2d::CCMenuItem *v109; // r2
GameLevelManager *v110; // r0
GameLevelManager *v111; // r0
GameLevelManager *v113; // r0
GameLevelManager *v114; // r0
int v115; // [sp+8h] [bp-84h]
void (__fastcall *v116)(int, _DWORD *); // [sp+8h] [bp-84h]
void (__fastcall *v117)(int, _DWORD *); // [sp+8h] [bp-84h]
GameManager *v118; // [sp+Ch] [bp-80h]
void (__fastcall *v119)(int, _DWORD *); // [sp+10h] [bp-7Ch]
int (__fastcall *v120)(int, _DWORD *); // [sp+18h] [bp-74h]
float v121; // [sp+3Ch] [bp-50h] BYREF
float v122; // [sp+40h] [bp-4Ch]
_BYTE v123[8]; // [sp+44h] [bp-48h] BYREF
_BYTE v124[8]; // [sp+4Ch] [bp-40h] BYREF
int (__fastcall *v125)(CreatorLayer *, cocos2d::CCObject *); // [sp+54h] [bp-38h]
int v126; // [sp+58h] [bp-34h]
_DWORD v127[2]; // [sp+5Ch] [bp-30h] BYREF
_DWORD v128[2]; // [sp+64h] [bp-28h] BYREF
int v129[2]; // [sp+6Ch] [bp-20h] BYREF
cocos2d::CCSprite *v130; // [sp+74h] [bp-18h]
int v131[3]; // [sp+78h] [bp-14h] BYREF
v2 = (GameManager *)cocos2d::CCLayer::init(this);
v118 = v2;
if ( v2 )
{
v3 = (GameManager *)GameManager::sharedState(v2);
*((_DWORD *)v3 + 188) = -1;
*(_DWORD *)(GameManager::sharedState(v3) + 756) = -1;
(*(void (__fastcall **)(CreatorLayer *, int))(*(_DWORD *)this + 536))(this, 1);
v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(CreatorLayer *, int))(*(_DWORD *)this + 544))(this, 1);
cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v121);
v6 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v5);
v7 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v6 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 0.0, 0.0);
v7(v6, v128);
(*(void (__fastcall **)(CreatorLayer *, float *, int))(*(_DWORD *)this + 232))(this, v6, -2);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v6 + 64))(v6, (float)(v121 + 10.0) / v6[86]);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v6 + 72))(v6, (float)(v122 + 10.0) / v6[87]);
v8 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, -5.0, -5.0);
v8(v6, v128);
v9 = *(int (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v6 + 480);
LOWORD(v128[0]) = 26112;
BYTE2(v128[0]) = -1;
v10 = (cocos2d::CCMenu *)v9(v6, v128);
v11 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v10);
(*(void (__fastcall **)(CreatorLayer *, const cocos2d::CCPoint *))(*(_DWORD *)this + 228))(this, v11);
v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_searchBtn_001.png", v12);
v14 = (float)(v121 - 100.0) / (float)((float)(*(float *)(v13 + 344) * 0.8) + 360.0);
if ( v14 <= 0.9 )
{
v14 = 0.9;
}
else if ( v14 >= 1.0 )
{
v14 = 1.0;
}
v15 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, v121 * 0.5, v122 * 0.5);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v123, v11);
while ( 2 )
{
v129[0] = 0;
v129[1] = 0;
v130 = nullptr;
switch ( v15 )
{
case 1:
std::string::assign(v129, "GJ_savedBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onSavedLevels;
goto LABEL_26;
case 2:
std::string::assign(v129, "GJ_highscoreBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onLeaderboards;
goto LABEL_26;
case 3:
std::string::assign(v129, "GJ_challengeBtn_001.png");
v20 = 0;
v21 = 1;
v126 = 0;
v125 = CreatorLayer::onChallenge;
goto LABEL_29;
case 4:
std::string::assign(v129, "GJ_versusBtn_001.png");
v18 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onMultiplayer;
goto LABEL_13;
case 5:
std::string::assign(v129, "GJ_mapBtn_001.png");
v18 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onAdventureMap;
LABEL_13:
v125 = *v18;
v126 = 0;
if ( (v129[0] & 1) != 0 )
v19 = v130;
else
v19 = (cocos2d::CCSprite *)((char *)v129 + 1);
memset(v131, 0, sizeof(v131));
v23 = strlen((const char *)v19);
std::string::__init(v131, v19, v23);
v24 = (float *)CCSpriteGrayscale::createWithSpriteFrameName((char *)v131);
std::string::~string((int)v131);
CCSpriteWithHue::setEvenLuminance(v24, 1.0);
v25 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v24 + 480);
LOWORD(v128[0]) = -20561;
BYTE2(v128[0]) = -81;
v25(v24, v128);
v20 = 0;
v21 = 0;
goto LABEL_32;
case 6:
std::string::assign(v129, "GJ_dailyBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onDailyLevel;
goto LABEL_26;
case 7:
std::string::assign(v129, "GJ_weeklyBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onWeeklyLevel;
goto LABEL_26;
case 8:
std::string::assign(v129, "GJ_eventBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onEventLevel;
goto LABEL_26;
case 9:
std::string::assign(v129, "GJ_gauntletsBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onGauntlets;
goto LABEL_26;
case 10:
std::string::assign(v129, "GJ_featuredBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onFeaturedLevels;
goto LABEL_26;
case 11:
std::string::assign(v129, "GJ_listsBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onTopLists;
goto LABEL_26;
case 12:
std::string::assign(v129, "GJ_pathsBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onPaths;
goto LABEL_26;
case 13:
std::string::assign(v129, "GJ_mapPacksBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onMapPacks;
goto LABEL_26;
case 14:
std::string::assign(v129, "GJ_searchBtn_001.png");
v21 = 0;
v20 = 1;
v126 = 0;
v125 = CreatorLayer::onOnlineLevels;
goto LABEL_29;
default:
std::string::assign(v129, "GJ_createBtn_001.png");
v17 = (int (__fastcall **)(CreatorLayer *, cocos2d::CCObject *))&CreatorLayer::onMyLevels;
LABEL_26:
v22 = *v17;
v20 = 0;
v21 = 0;
v126 = 0;
v125 = v22;
LABEL_29:
if ( (v129[0] & 1) != 0 )
v26 = v130;
else
v26 = (cocos2d::CCSprite *)((char *)v129 + 1);
v24 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(v26, v16);
LABEL_32:
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v24 + 80))(v24, v14 * 0.8);
v115 = CCMenuItemSpriteExtra::create((int)v24, 0, (int)this, (int)v125, v126);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v11 + 228))(v11, v115);
v120 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v115 + 92);
v27 = floorf((float)v15 / 5.0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v127,
(float)((float)((float)(v15 % 5) - 1.5) * (float)(v14 * 90.0)) - (float)((float)(v14 * 90.0) * 0.5),
-(float)((float)(v27 - 1.0) * (float)(v14 * 90.0)));
cocos2d::CCPoint::operator+(v128, v123, v127);
v28 = (GameManager *)v120(v115, v128);
if ( v21 )
{
*((_DWORD *)this + 83) = v24;
v28 = (GameManager *)CreatorLayer::checkQuestsStatus(this);
}
switch ( v15 )
{
case 6:
*((_DWORD *)this + 84) = v24;
break;
case 7:
*((_DWORD *)this + 85) = v24;
break;
case 8:
*((_DWORD *)this + 86) = v24;
break;
case 9:
*((_DWORD *)this + 87) = v24;
break;
}
v29 = (GameManager *)GameManager::sharedState(v28);
if ( GameManager::offlineModeEnabled(v29) )
{
if ( v15 > 1 && v15 != 3 && v15 != 12 )
goto LABEL_48;
}
else
{
v30 = (GameManager *)GameManager::sharedState(nullptr);
if ( GameManager::onlyCuratedLevels(v30) && (v15 == 11 || v20) )
{
LABEL_48:
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v115 + 528))(v115, 0);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v115 + 172))(v115, 0);
}
}
++v15;
std::string::~string((int)v129);
if ( v15 != 15 )
continue;
v31 = (GameLevelManager *)CreatorLayer::checkTimedStatus(this);
v32 = (GameManager *)GameLevelManager::sharedState(v31);
if ( !*((_BYTE *)v32 + 648) )
{
v34 = (GameManager *)GameManager::sharedState(v32);
if ( !GameManager::offlineModeEnabled(v34) )
{
v113 = (GameLevelManager *)GameLevelManager::sharedState(nullptr);
*((_DWORD *)v113 + 232) = (char *)this + 324;
v114 = (GameLevelManager *)GameLevelManager::sharedState(v113);
GameLevelManager::getGJContentStatus(v114);
}
}
v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sideArt_001.png", v33);
v36 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 0.0, 0.0);
v37 = (cocos2d::CCDirector *)v36(v35, v128);
v38 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 92);
v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v37);
v40 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v39));
v41 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v40));
v42 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v41));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, v40 - 1.0, v42 - 1.0);
v38(v35, v128);
(*(void (__fastcall **)(CreatorLayer *, int, int))(*(_DWORD *)this + 232))(this, v35, 1);
v44 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v43);
v45 = *(int (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v44 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 1.0, 0.0);
v46 = (cocos2d::CCDirector *)v45(v44, v128);
v47 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v44 + 92);
v48 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v46);
v49 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v48));
v50 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v49));
v51 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v50));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, v49 + 1.0, v51 - 1.0);
v47(v44, v128);
cocos2d::CCSprite::setFlipX(v44, 1);
v53 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v52);
v54 = *(int (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v53 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 0.0, 1.0);
v55 = (cocos2d::CCDirector *)v54(v53, v128);
v56 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v53 + 92);
v57 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v55);
v58 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v57));
v59 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v58));
v60 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v59));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, v58 - 1.0, v60 + 1.0);
v56(v53, v128);
cocos2d::CCSprite::setFlipY(v53, 1);
(*(void (__fastcall **)(CreatorLayer *, cocos2d::CCSprite *, int))(*(_DWORD *)this + 232))(this, v53, -1);
v62 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v61);
v63 = *(int (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v62 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, 1.0, 1.0);
v64 = (cocos2d::CCDirector *)v63(v62, v128);
v65 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v62 + 92);
v66 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v64);
v67 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v66));
v68 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v67));
v69 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v68));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v128, v67 + 1.0, v69 + 1.0);
v65(v62, v128);
cocos2d::CCSprite::setFlipY(v62, 1);
v70 = (GameStatsManager *)cocos2d::CCSprite::setFlipX(v62, 1);
v71 = (GameStatsManager *)GameStatsManager::sharedState(v70);
Stat = GameStatsManager::getStat(v71, "13");
v74 = Stat > 49;
if ( Stat > 49 )
v75 = "GJ_lock_open_001.png";
else
v75 = "GJ_lockGray_001.png";
v76 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v75, v73);
v126 = 0;
v125 = CreatorLayer::onSecretVault;
v77 = v76;
v78 = CCMenuItemSpriteExtra::create(v76, 0, (int)this, (int)CreatorLayer::onSecretVault, 0);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v11 + 228))(v11, v78);
v116 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v78 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, v121 - 22.0, v122 - 18.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v128, v11);
v116(v78, v128);
if ( !v74 )
{
v79 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v78 + 164))(v78);
v80 = (*(int (__fastcall **)(int))(*(_DWORD *)v78 + 164))(v78);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v79 * 0.5, (float)(*(float *)(v80 + 4) * 0.5) - 22.0);
v82 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_diamondsIcon_001.png", v81);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v77 + 228))(v77, v82);
v119 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v82 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, 9.0, -1.0);
cocos2d::CCPoint::operator+(v128, v124, v127);
v119(v82, v128);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v82 + 80))(v82, 1060320051);
v83 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)&word_32);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v83);
v86 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v85);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v77 + 228))(v77, v86);
v87 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v86 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, -8.5, 0.0);
cocos2d::CCPoint::operator+(v128, v124, v127);
v87(v86, v128);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v86 + 80))(v86, 1053609165);
}
v88 = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(v78, 2.0);
v89 = (GameManager *)GameManager::sharedState(v88);
if ( GameManager::getUGV(v89, (char *)&a1i2r3e45s789g[7]) )
v91 = "secretDoorBtn_open_001.png";
else
v91 = "secretDoorBtn_closed_001.png";
v92 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v91, v90);
*((_DWORD *)this + 82) = v92;
v127[1] = 0;
v127[0] = CreatorLayer::onTreasureRoom;
v93 = CCMenuItemSpriteExtra::create(v92, 0, (int)this, (int)CreatorLayer::onTreasureRoom, 0);
*(_BYTE *)(v93 + 321) = 1;
v94 = v93;
*(_BYTE *)(v93 + 320) = 0;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v11 + 228))(v11, v93);
v117 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v94 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v121 - 22.0, 24.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v128, v11);
v117(v94, v128);
CCMenuItemSpriteExtra::setSizeMult(v94, 1.2);
v96 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v95);
v128[1] = 0;
v128[0] = CreatorLayer::onBack;
v97 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v96, 0, (int)this, (int)CreatorLayer::onBack, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v97, 1.6);
v98 = cocos2d::CCMenu::create(v97, nullptr);
v99 = (cocos2d::CCDirector *)(*(int (__fastcall **)(CreatorLayer *, int, int))(*(_DWORD *)this + 232))(
this,
v98,
1);
v100 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v98 + 92);
v101 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v99);
v102 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v101));
v103 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v102));
v104 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v103));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v102 + 24.0, v104 - 23.0);
v105 = (GameManager *)v100(v98, v124);
v106 = (GameManager *)GameManager::sharedState(v105);
*((_DWORD *)v106 + 188) = 0;
v107 = (PlatformToolbox *)GameManager::sharedState(v106);
*((_DWORD *)v107 + 189) = 0;
isControllerConnected = (GameManager *)PlatformToolbox::isControllerConnected(v107);
if ( isControllerConnected )
isControllerConnected = (GameManager *)GameToolbox::addBackButton(this, v97, v109);
v110 = (GameLevelManager *)GameManager::sharedState(isControllerConnected);
if ( *((_DWORD *)v110 + 116) == *((_DWORD *)v110 + 117) )
{
v111 = (GameLevelManager *)GameLevelManager::sharedState(v110);
GameLevelManager::updateUserScore(v111);
}
break;
}
break;
}
}
return v118;
}