//
// MoreOptionsLayer::init from 0x532b5c to 0x533b0e (4018 bytes)
//
// 1 xrefs:
// > MoreOptionsLayer::create @ 0x52cd9c
//
// 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:52:06 +0000
//
GameManager *__fastcall MoreOptionsLayer::init(MoreOptionsLayer *this)
{
GameManager *v2; // r0
GameManager *v3; // r0
cocos2d::CCDirector *v4; // r0
cocos2d::CCLayer *WinSize; // r0
int v6; // r0
int v7; // r3
int v8; // r6
void (__fastcall *v9)(int, _DWORD *); // r7
void (__fastcall *v10)(int, _DWORD *); // r7
int v11; // r0
float v12; // s14
float v13; // s15
int v14; // r6
void (__fastcall *v15)(int, _DWORD *); // r7
cocos2d::CCDictionary *v16; // r0
cocos2d::CCObject *v17; // r0
cocos2d::CCDictionary *v18; // r0
cocos2d::CCObject *v19; // r0
cocos2d::CCMenu *v20; // r0
int v21; // r0
cocos2d::CCObject *v22; // r10
const char *v23; // r1
int v24; // r0
cocos2d::CCObject *v25; // r9
void (__fastcall *v26)(cocos2d::CCObject *, _DWORD *); // r11
ButtonSprite *v27; // r0
cocos2d::CCObject *v28; // r9
const cocos2d::CCPoint *v29; // r11
cocos2d::CCObject *v30; // r11
const char *v31; // r1
int v32; // r9
cocos2d::CCObject *v33; // r9
cocos2d::CCObject *v34; // r9
void (__fastcall *v35)(cocos2d::CCObject *, _DWORD *); // r11
const char *v36; // r2
cocos2d::CCObject *v37; // r11
cocos2d::CCObject *v38; // r5
int *v39; // r0
int v40; // r7
FMODAudioEngine *v41; // r0
FMODAudioEngine *v42; // r0
const char *v43; // r1
int v44; // r6
int v45; // r0
cocos2d::CCString *v46; // r0
const char *CString; // r0
const char *v48; // r7
size_t v49; // r0
int v50; // r0
int v51; // r6
const cocos2d::CCPoint *v52; // r10
void (__fastcall *v53)(int, _DWORD *); // r9
float v54; // s16
const char *v55; // r1
int v56; // r0
int v57; // r0
cocos2d::CCDirector *v58; // r0
const cocos2d::CCPoint *v59; // r11
void (__fastcall *v60)(char *, _DWORD *); // r10
cocos2d::CCDirector *v61; // r0
float v62; // r0
const char *v63; // r1
cocos2d::CCSprite *v64; // r7
int v65; // r0
cocos2d::CCDirector *v66; // r0
int v67; // r8
const cocos2d::CCPoint *v68; // r10
void (__fastcall *v69)(int, _BYTE *); // r9
cocos2d::CCDirector *v70; // r0
float v71; // r0
char *v73; // [sp+8h] [bp-B4h]
float v74; // [sp+10h] [bp-ACh]
char *v75; // [sp+14h] [bp-A8h]
GameManager *v76; // [sp+18h] [bp-A4h]
cocos2d::CCPoint *v77; // [sp+1Ch] [bp-A0h]
cocos2d::CCPoint *v78; // [sp+1Ch] [bp-A0h]
void (__fastcall *v79)(cocos2d::CCObject *, _DWORD *); // [sp+20h] [bp-9Ch]
void (__fastcall *v80)(cocos2d::CCObject *, _DWORD *); // [sp+20h] [bp-9Ch]
cocos2d::CCPoint *v81; // [sp+28h] [bp-94h]
int v82; // [sp+34h] [bp-88h]
float v83; // [sp+38h] [bp-84h] BYREF
float v84; // [sp+3Ch] [bp-80h]
_BYTE v85[8]; // [sp+40h] [bp-7Ch] BYREF
_BYTE v86[8]; // [sp+48h] [bp-74h] BYREF
char v87[8]; // [sp+50h] [bp-6Ch] BYREF
_BYTE v88[8]; // [sp+58h] [bp-64h] BYREF
int (__fastcall *v89)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+60h] [bp-5Ch]
int v90; // [sp+64h] [bp-58h]
int (__fastcall *v91)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+68h] [bp-54h]
int v92; // [sp+6Ch] [bp-50h]
int (__fastcall *v93)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+70h] [bp-4Ch]
int v94; // [sp+74h] [bp-48h]
int (__fastcall *v95)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+78h] [bp-44h]
int v96; // [sp+7Ch] [bp-40h]
_DWORD v97[2]; // [sp+80h] [bp-3Ch] BYREF
int v98; // [sp+88h] [bp-34h] BYREF
int v99; // [sp+8Ch] [bp-30h]
int v100; // [sp+90h] [bp-2Ch]
_BYTE v101[16]; // [sp+94h] [bp-28h] BYREF
_DWORD v102[4]; // [sp+A4h] [bp-18h] BYREF
v102[0] = 1258291200;
v2 = (GameManager *)cocos2d::CCLayerColor::initWithColor(this, v102);
v76 = v2;
if ( v2 )
{
v3 = (GameManager *)GameManager::sharedState(v2);
if ( GameManager::getGameVariable(v3, "0168") )
*((_BYTE *)this + 468) = 1;
FLAlertLayer::incrementForcePrio(this);
(*(void (__fastcall **)(MoreOptionsLayer *, int))(*(_DWORD *)this + 500))(this, 1);
v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(MoreOptionsLayer *, int))(*(_DWORD *)this + 536))(this, 1);
cocos2d::CCDirector::sharedDirector(v4);
WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v83);
v6 = cocos2d::CCLayer::create(WinSize);
v7 = *(_DWORD *)this;
*((_DWORD *)this + 115) = v6;
(*(void (__fastcall **)(MoreOptionsLayer *, int))(v7 + 228))(this, v6);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v102, 0.0, 0.0, 80.0, 80.0);
v8 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v102);
v9 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v102, 400.0, 280.0);
v9(v8, v102);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v8, -1);
v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v102, v83 * 0.5, v84 * 0.5);
v10(v8, v102);
v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Options", "bigFont.fnt", "bigFont.fnt");
v12 = (float)(v84 * 0.5) + 140.0;
v13 = v83 * 0.5;
*((_DWORD *)this + 142) = v11;
v14 = v11;
v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v102, v13, v12 - 16.0);
v15(v14, v102);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 142));
v16 = (cocos2d::CCDictionary *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 142) + 80))(
*((_DWORD *)this + 142),
1060320051);
*((_DWORD *)this + 125) = -1;
v17 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v16);
*((_DWORD *)this + 136) = v17;
v18 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v17);
v19 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v18);
*((_DWORD *)this + 135) = v19;
v20 = (cocos2d::CCMenu *)cocos2d::CCObject::retain(v19);
v21 = cocos2d::CCMenu::create(v20);
*((_DWORD *)this + 111) = v21;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v21, 10);
MoreOptionsLayer::addToggle(this, "Auto-Retry", "0026", "Restarts level upon death automatically.");
MoreOptionsLayer::addToggle(this, "Enable Faster Reset", "0052", "Restarts in 0.5s instead of 1.0s upon death.");
MoreOptionsLayer::addToggle(
this,
"Click Between Steps",
"0177",
"Toggles substeps on, allowing you to click in-between the default normal steps. This may affect performance.");
MoreOptionsLayer::addToggle(
this,
"Click On Steps",
"0176",
"Allows you to click on every step, regardless of your refresh rate. This is beneficial for users below 240 Hz.");
MoreOptionsLayer::addToggle(
this,
"Flip 2-Player\nControls",
"0010",
"Flips which side controls which player during 2-player mode.");
MoreOptionsLayer::addToggle(
this,
"Always Limit\nControls",
"0011",
"Limits player 1 controls to one side even when dual mode is inactive.");
MoreOptionsLayer::offsetToNextPage(this);
MoreOptionsLayer::addToggle(this, "Hide Attempts", "0135", "Hides the attempt counter when playing levels.");
MoreOptionsLayer::addToggle(this, "Flip Pause Button", "0015", "Flips the location of the pause button.");
MoreOptionsLayer::addToggle(this, "Disable Portal Guide", "0129", "Disables extra indicators on portals.");
MoreOptionsLayer::addToggle(this, "Enable Orb Guide", "0130", "Enables extra indicators on orbs.");
MoreOptionsLayer::addToggle(this, "Disable Orb Scale", "0140", "Disables the scaling effect on all orbs.");
MoreOptionsLayer::addToggle(
this,
"Disable Trigger\nOrb Scale",
"0141",
"Disables the scaling effect on only trigger orbs.");
MoreOptionsLayer::addToggle(this, "Disable Shake", "0172", "Disables shake effects.");
MoreOptionsLayer::addToggle(
this,
"Disable Explosion\nShake",
"0014",
"Disables the shake effect that happens upon death.");
MoreOptionsLayer::addToggle(
this,
"Disable Gravity\nEffect",
"0072",
"Disables the effect that happens upon changing gravity.");
MoreOptionsLayer::addToggle(this, "Default Mini Icon", "0060", "Sets player icon in mini mode to default.");
MoreOptionsLayer::addToggle(
this,
"Switch Spider\nTeleport Color",
"0061",
"Toggles between main and secondary color for the teleport effect in spider mode.");
MoreOptionsLayer::addToggle(
this,
"Switch Dash\nFire Color",
"0062",
"Toggles between main and secondary color for the fire effect from dash orbs.");
MoreOptionsLayer::addToggle(
this,
"Switch Wave\nTrail Color",
"0096",
"Toggles between main and secondary color for the trail in wave mode.");
MoreOptionsLayer::addToggle(
this,
"Hide Playtest Text",
"0174",
"Hides text in the top left when using start positions or ignore damage.");
MoreOptionsLayer::addToggle(
this,
"Hitbox On Death",
"0179",
"Shows hitboxes upon death in both normal and practice mode.");
MoreOptionsLayer::offsetToNextPage(this);
MoreOptionsLayer::addToggle(
this,
"Hide Attempts",
"0134",
"Hides the attempt counter when playing levels in practice mode.");
MoreOptionsLayer::addToggle(
this,
"Enable Auto-Checkpoints",
"0027",
"Places checkpoints automatically in practice mode.");
MoreOptionsLayer::addToggle(
this,
"Enable Quick\nCheckpoints",
"0068",
"Tries to place checkpoints more often in practice mode.");
MoreOptionsLayer::addToggle(this, "Enable Death Effect", "0100", "Shows death effects in practice mode.");
MoreOptionsLayer::addToggle(
this,
"Skip Death Triggers",
"0212",
"Skips On Death trigger effects and any extended reset time from an Options Trigger while in practice mode.");
MoreOptionsLayer::addToggle(
this,
"Enable Normal Music\nIn Editor",
"0125",
"Plays normal music in sync to editor levels in practice mode.");
MoreOptionsLayer::addToggle(this, "Show Hitboxes", "0166", "Shows hitboxes while in practice mode.");
MoreOptionsLayer::addToggle(
this,
"Disable Player Hitbox",
"0171",
"Disables the player's hitbox in practice mode\n(if hitboxes are shown).");
MoreOptionsLayer::offsetToNextPage(this);
MoreOptionsLayer::addToggle(
this,
"Enable Smooth Fix",
"0023",
"Makes some optimizations that can reduce lag. Disable if game speed becomes inconsistent.");
MoreOptionsLayer::addToggle(
this,
"Increase Draw Capacity",
"0066",
"Increases draw capacity for batch nodes at level start. Can improve performance on some levels, but may cause issu"
"es on low-end devices.");
MoreOptionsLayer::addToggle(
this,
"Enable Low Detail",
"0108",
"Enables low detail mode on levels that support it automatically.");
MoreOptionsLayer::addToggle(
this,
"Disable High Object\nAlert",
"0082",
"Removes the alert shown when starting levels with a high object count.");
MoreOptionsLayer::addToggle(
this,
"Enable Extra LDM",
"0136",
"Removes glow and enter effects while in low detail mode. Levels without LDM show LDM Lite.");
MoreOptionsLayer::addToggle(
this,
"Increase Maximum\nLevels",
"0042",
"Increases maximum locally saved levels from 10 to 100. This refers to level data, not statistics. Enabling this ca"
"n make your save file considerably larger, so keeping the option off is recommended for quicker saving.");
MoreOptionsLayer::addToggle(
this,
"Disable Level Saving",
"0119",
"Saves level statistics as usual, but levels need to be redownloaded every time you restart the game. Makes saving "
"and loading faster.");
MoreOptionsLayer::addToggle(
this,
"Save Gauntlets",
"0127",
"Saves gauntlet levels locally so they do not have to be redownloaded. Increases save time but helpful if you have "
"poor connection.");
MoreOptionsLayer::addToggle(
this,
"Disable Shader\nAnti-Aliasing",
"0155",
"Disables anti-aliasing on shader effects.");
MoreOptionsLayer::offsetToNextPage(this);
MoreOptionsLayer::addToggle(
this,
"Disable Song Alert",
"0083",
"Removes the alert shown when starting levels without the song downloaded.");
MoreOptionsLayer::addToggle(
this,
"No Song Limit",
"0018",
"Stops automatic deletion of custom songs. This is done by default to save space.");
MoreOptionsLayer::addToggle(
this,
"Reduce Quality\n(Read Info)",
"0142",
"Lowers audio sampling rate from 44100 Hz to 24000 Hz. Requires restarting to take effect.");
MoreOptionsLayer::addToggle(
this,
"Audio Fix 01",
"0159",
"Increases the audio buffer size, which may fix certain issues. Do not enable if audio is working fine. Causes a sl"
"ight more audio delay. Requires restarting to take effect.");
MoreOptionsLayer::offsetToNextPage(this);
MoreOptionsLayer::addToggle(this, "More Comments", "0094", "Shows more comments per page. Why not?");
MoreOptionsLayer::addToggle(this, "Load Comments", "0090", "Loads comments automatically.");
MoreOptionsLayer::addToggle(
this,
"New Completed Filter",
"0073",
"Makes completed levels filter based only on percentage from update 2.1. Useful to rebeat levels for Mana Orbs.");
MoreOptionsLayer::addToggle(
this,
"Increase Local Levels\nPer Page",
"0093",
"Increases created and saved levels per page from 10 to 20.");
MoreOptionsLayer::addToggle(
this,
"Manual Level Order",
"0084",
"Places new levels last in the saved levels list. Useful if you want to manually move levels to the top.");
MoreOptionsLayer::addToggle(this, "Percentage Decimals", "0126", "Shows decimals in level progress.");
MoreOptionsLayer::addToggle(
this,
"Show Leaderboard\nPercentage",
"0099",
"Toggles viewing the leaderboard percentage you have on levels. To upload your level progress to the level leaderbo"
"ard, you need to replay levels completed before 2.11.");
MoreOptionsLayer::addToggle(this, "Do Not...", "0095", "Does not do anything... Well, nothing useful.");
MoreOptionsLayer::addToggle(this, "Confirm Exit", "0167", "Adds an extra confirmation window when exiting levels.");
MoreOptionsLayer::addToggle(this, "Fast\nMenu", "0168", "Makes transitions between menu pages faster.");
v22 = MoreOptionsLayer::objectsForPage(this, &byte_5);
v24 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_savedSongsBtn_001.png", v23);
v90 = 0;
v89 = MoreOptionsLayer::onSongBrowser;
v25 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v24, 0, (int)this, (int)MoreOptionsLayer::onSongBrowser, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v25, 1.2);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v25);
v26 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v25 + 92);
v77 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v101,
(float)((float)(v83 * 0.5) + 200.0) - 36.0,
(float)((float)((float)(v84 * 0.5) - 140.0) + 36.0) + 2.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v77);
v26(v25, v102);
cocos2d::CCArray::addObject(v22, v25);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v25 + 172))(v25, 0);
v27 = ButtonSprite::create(
(ButtonSprite *)"DEBUG",
(const char *)&dword_44 + 2,
0,
0.6,
0,
"goldFont.fnt",
"GJ_button_04.png",
(const char *)0x41C80000,
v74);
v92 = 0;
v91 = MoreOptionsLayer::onFMODDebug;
v28 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(int)v27,
0,
(int)this,
(int)MoreOptionsLayer::onFMODDebug,
0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v28);
v29 = *((const cocos2d::CCPoint **)this + 111);
v79 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v28 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v101,
(float)(v83 * 0.5) + 40.0,
(float)((float)(v84 * 0.5) - 140.0) + 30.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v29);
v79(v28, v102);
cocos2d::CCArray::addObject(v22, v28);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v28 + 172))(v28, 0);
v30 = MoreOptionsLayer::objectsForPage(this, &byte_6);
v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_profileButton_001.png", v31);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1061997773);
v94 = 0;
v93 = MoreOptionsLayer::onParental;
v33 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v32, 0, (int)this, (int)MoreOptionsLayer::onParental, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v33, 1.2);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v33);
v80 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v33 + 92);
v81 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v101,
(float)((float)(v83 * 0.5) + 200.0) - 36.0,
(float)((float)(v84 * 0.5) - 140.0) + 36.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v81);
v80(v33, v102);
cocos2d::CCArray::addObject(v30, v33);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v33 + 172))(v33, 0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v102, (const cocos2d::CCPoint *)&unk_D2BDF4);
v34 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(
"Parental\nControls",
"goldFont.fnt",
-1082130432,
1,
v102);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v34 + 80))(v34, 1055286886);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v34);
cocos2d::CCArray::addObject(v30, v34);
v35 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v34 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v102,
(float)((float)(v83 * 0.5) + 200.0) - 36.0,
(float)((float)(v84 * 0.5) - 140.0) + 75.0);
v35(v34, v102);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v34 + 172))(v34, 0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v85,
(float)((float)(v83 * 0.5) - 200.0) + 75.0,
(float)((float)(v84 * 0.5) - 140.0) + 35.0);
v37 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(
(cocos2d::CCLabelBMFont *)"Music Offset (MS)",
"bigFont.fnt",
v36);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v37 + 80))(v37, 1053609165);
v78 = *(cocos2d::CCPoint **)(*(_DWORD *)v37 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v101, 0.0, 25.0);
cocos2d::CCPoint::operator+(v102, v85, v101);
((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v78)(v37, v102);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
v37);
cocos2d::CCArray::addObject(v22, v37);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v37 + 172))(v37, 0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v101, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v102, (const cocos2d::CCRect *)v101);
v38 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v102);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v38 + 456))(v38, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v86, 100.0, 30.0);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v38 + 160))(v38, v86);
(*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
v38,
-1);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v38 + 92))(v38, v85);
cocos2d::CCArray::addObject(v22, v38);
(*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v38 + 172))(v38, 0);
v39 = CCTextInputNode::create(
(CCTextInputNode *)0x42C80000,
50.0,
"Offset",
"Thonburi",
(const char *)&dword_18,
"bigFont.fnt",
v73);
*((_DWORD *)this + 139) = v39;
(*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v39, 20);
*(_DWORD *)(*((_DWORD *)this + 139) + 420) = (char *)this + 440;
(*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 139) + 92))(*((_DWORD *)this + 139), v85);
CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 139), 0.7);
CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 139), 200.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 139) + 416) + 172))(
*(_DWORD *)(*((_DWORD *)this + 139) + 416),
0);
*(_DWORD *)(*((_DWORD *)this + 139) + 424) = 4;
v40 = *((_DWORD *)this + 139);
v98 = 0;
v99 = 0;
v100 = 0;
std::string::__init(&v98, "0123456789-", 0xBu);
CCTextInputNode::setAllowedChars(v40, (unsigned __int8 *)&v98);
std::string::~string((int)&v98);
LOWORD(v82) = -21896;
BYTE2(v82) = -16;
CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 139), v82);
CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 139), 0.5);
cocos2d::CCArray::addObject(v22, *((cocos2d::CCObject **)this + 139));
v41 = (FMODAudioEngine *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 139) + 172))(
*((_DWORD *)this + 139),
0);
v42 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v41);
if ( *((_DWORD *)v42 + 100) )
{
v44 = *((_DWORD *)this + 139);
v45 = FMODAudioEngine::sharedEngine(v42);
v46 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(v45 + 400));
CString = (const char *)cocos2d::CCString::getCString(v46);
v98 = 0;
v99 = 0;
v100 = 0;
v48 = CString;
v49 = strlen(CString);
std::string::__init(&v98, v48, v49);
CCTextInputNode::setString(v44, (int)&v98);
std::string::~string((int)&v98);
}
v50 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v43);
v96 = 0;
v95 = MoreOptionsLayer::onClose;
v51 = CCMenuItemSpriteExtra::create(v50, 0, (int)this, (int)MoreOptionsLayer::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult(v51, 1.5);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v51);
v52 = *((const cocos2d::CCPoint **)this + 111);
v53 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v51 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v97,
(float)((float)(v83 * 0.5) - 200.0) + 5.0,
(float)((float)(v84 * 0.5) + 140.0) - 5.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v52);
v53(v51, v102);
v54 = v84 * 0.5;
v56 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v55);
v97[1] = 0;
v97[0] = MoreOptionsLayer::onPrevPage;
v57 = CCMenuItemSpriteExtra::create(v56, 0, (int)this, (int)MoreOptionsLayer::onPrevPage, 0);
*((_DWORD *)this + 137) = v57;
v58 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v57);
v59 = *((const cocos2d::CCPoint **)this + 111);
v75 = *((char **)this + 137);
v60 = *(void (__fastcall **)(char *, _DWORD *))(*(_DWORD *)v75 + 92);
v61 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v58);
v62 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v61));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v88, v62 + 20.0, v54);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v59);
v60(v75, v102);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 137), 1.5);
v64 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v63);
cocos2d::CCSprite::setFlipX(v64, 1);
v102[1] = 0;
v102[0] = MoreOptionsLayer::onNextPage;
v65 = CCMenuItemSpriteExtra::create((int)v64, 0, (int)this, (int)MoreOptionsLayer::onNextPage, 0);
*((_DWORD *)this + 138) = v65;
v66 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(
*((_DWORD *)this + 111),
v65);
v67 = *((_DWORD *)this + 138);
v68 = *((const cocos2d::CCPoint **)this + 111);
v69 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v67 + 92);
v70 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v66);
v71 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v70));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v87, v71 - 20.0, v54);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v88, v68);
v69(v67, v88);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 138), 1.5);
MoreOptionsLayer::goToPage((const char **)this, 0);
}
return v76;
}