//
// MoreOptionsLayer::init from 0x7cadcc to 0x7cbf90 (4548 bytes)
//
// 3 xrefs:
// > MoreOptionsLayer::create @ 0x7cc0b0
// > ??> @ 0xab708
// > ??> @ 0x117d6d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool MoreOptionsLayer::init(MoreOptionsLayer *a1)
{
char v2; // w23
GameManager *v4; // x0
cocos2d::CCDirector *v5; // x0
cocos2d::CCLayer *v6; // x0
cocos2d::CCNode *v7; // x27
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x28
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28
cocos2d::CCLabelBMFont *v10; // x27
cocos2d::CCDictionary *v11; // x0
cocos2d::CCDictionary *v12; // x0
cocos2d::CCMenu *v13; // x0
cocos2d::CCLayer *m_mainLayer; // x3
cocos2d::CCArray *v15; // x25
cocos2d::CCSprite *v16; // x0
CCMenuItemSpriteExtra *v17; // x27
const char *v18; // x6
cocos2d::CCNode *v19; // x0
CCMenuItemSpriteExtra *v20; // x27
cocos2d::CCSprite *v21; // x27
CCMenuItemSpriteExtra *v22; // x27
cocos2d::CCLabelBMFont *v23; // x27
cocos2d::CCNode *v24; // x21
CCTextInputNode *v25; // x0
CCTextInputNode *m_offsetInput; // x21
void *v27; // x0
CCTextInputNode *v28; // x24
FMODAudioEngine *v29; // x0
cocos2d::CCString *v30; // x0
char *CString; // x0
void *v32; // x0
cocos2d::CCSprite *v33; // x0
CCMenuItemSpriteExtra *v34; // x24
cocos2d::CCMenu *v35; // x26
void (__fastcall *v36)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25
cocos2d::CCSprite *v37; // x0
CCMenuItemSpriteExtra *v38; // x0
cocos2d::CCMenu *v39; // x2
CCMenuItemSpriteExtra *m_leftBtn; // x25
cocos2d::CCMenu *v41; // x27
void (__fastcall *v42)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26
cocos2d::CCDirector *v43; // x0
float v44; // s0
cocos2d::CCSprite *v45; // x24
CCMenuItemSpriteExtra *v46; // x0
cocos2d::CCMenu *v47; // x2
CCMenuItemSpriteExtra *m_rightBtn; // x24
cocos2d::CCMenu *v49; // x26
void (__fastcall *v50)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25
cocos2d::CCDirector *v51; // x0
float v52; // s0
unsigned int *v53; // x25
int v54; // w1
unsigned int *v55; // x1
int v56; // w2
cocos2d::CCArray *v57; // [xsp+B8h] [xbp+B8h]
cocos2d::CCMenu *m_buttonMenu; // [xsp+C0h] [xbp+C0h]
cocos2d::CCMenu *v59; // [xsp+C0h] [xbp+C0h]
cocos2d::CCMenu *v60; // [xsp+C0h] [xbp+C0h]
void (__fastcall *v61)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C8h] [xbp+C8h]
void (__fastcall *v62)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C8h] [xbp+C8h]
void (__fastcall *v63)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C8h] [xbp+C8h]
void (__fastcall *v64)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C8h] [xbp+C8h]
void (__fastcall *v65)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C8h] [xbp+C8h]
cocos2d::ccColor3B v66; // [xsp+E0h] [xbp+E0h]
float v67; // [xsp+E8h] [xbp+E8h]
float v68; // [xsp+ECh] [xbp+ECh]
cocos2d::CCPoint v69; // [xsp+F0h] [xbp+F0h] BYREF
cocos2d::CCSize v70; // [xsp+F8h] [xbp+F8h] BYREF
cocos2d::CCPoint v71; // [xsp+100h] [xbp+100h] BYREF
cocos2d::CCRect v72; // [xsp+108h] [xbp+108h] BYREF
cocos2d::CCRect v73; // [xsp+118h] [xbp+118h] BYREF
cocos2d::CCPoint v74; // 0:kr08_8.8
cocos2d::CCPoint v75; // 0:kr10_8.8
cocos2d::CCPoint v76; // 0:kr18_8.8
cocos2d::CCPoint v77; // 0:kr20_8.8
cocos2d::CCPoint v78; // 0:kr28_8.8
cocos2d::CCPoint v79; // 0:kr30_8.8
cocos2d::SEL_MenuHandler v80; // 0:x2.16
cocos2d::SEL_MenuHandler v81; // 0:x2.16
cocos2d::SEL_MenuHandler v82; // 0:x2.16
cocos2d::SEL_MenuHandler v83; // 0:x2.16
cocos2d::SEL_MenuHandler v84; // 0:x2.16
cocos2d::SEL_MenuHandler v85; // 0:x2.16
cocos2d::CCRect v86; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
cocos2d::CCRect v87; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v73.origin.x = 8388600.0;
v2 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v73);
if ( v2 )
{
v4 = GameManager::sharedState();
if ( GameManager::getGameVariable(v4, "0168") )
a1->m_noElasticity = 1;
FLAlertLayer::incrementForcePrio(a1);
a1->setTouchEnabled(a1, 1);
a1->setKeypadEnabled(a1, 1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v5);
v6 = cocos2d::CCLayer::create();
a1->m_mainLayer = v6;
a1->addChild(a1, v6);
cocos2d::CCRect::CCRect(&v73, 0.0, 0.0, 80.0, 80.0);
v7 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"GJ_square01.png",
(const char *)&v73,
v86);
setContentSize = v7->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v73, 400.0, 280.0);
setContentSize(v7, (const cocos2d::CCSize *)&v73);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, -1);
setPosition = v7->setPosition;
cocos2d::CCPoint::CCPoint(&v73.origin, v67 * 0.5, v68 * 0.5);
setPosition(v7, &v73.origin);
v10 = cocos2d::CCLabelBMFont::create();
a1->m_categoryLabel = v10;
v61 = v10->setPosition;
cocos2d::CCPoint::CCPoint(&v73.origin, v67 * 0.5, (float)((float)(v68 * 0.5) + 140.0) - 16.0);
v61(v10, &v73.origin);
a1->m_mainLayer->addChild(a1->m_mainLayer, a1->m_categoryLabel);
a1->m_categoryLabel->setScale(a1->m_categoryLabel, 0.7);
a1->m_joystickConnected = -1;
v11 = cocos2d::CCDictionary::create();
a1->m_objects = v11;
cocos2d::CCObject::retain(v11);
v12 = cocos2d::CCDictionary::create();
a1->m_variables = v12;
cocos2d::CCObject::retain(v12);
v13 = cocos2d::CCMenu::create();
m_mainLayer = a1->m_mainLayer;
a1->m_buttonMenu = v13;
m_mainLayer->addChild_0(m_mainLayer, v13, 10);
MoreOptionsLayer::addToggle(a1, "Auto-Retry", "0026", "Restarts level upon death automatically.");
MoreOptionsLayer::addToggle(a1, "Enable Faster Reset", "0052", "Restarts in 0.5s instead of 1.0s upon death.");
MoreOptionsLayer::addToggle(
a1,
"Click Between Steps",
"0177",
"Toggles substeps on, allowing you to click in-between the default normal steps. This may affect performance.");
MoreOptionsLayer::addToggle(
a1,
"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(
a1,
"Flip 2-Player\nControls",
"0010",
"Flips which side controls which player during 2-player mode.");
MoreOptionsLayer::addToggle(
a1,
"Always Limit\nControls",
"0011",
"Limits player 1 controls to one side even when dual mode is inactive.");
MoreOptionsLayer::offsetToNextPage(a1);
MoreOptionsLayer::addToggle(a1, "Hide Attempts", "0135", "Hides the attempt counter when playing levels.");
MoreOptionsLayer::addToggle(a1, "Flip Pause Button", "0015", "Flips the location of the pause button.");
MoreOptionsLayer::addToggle(a1, "Disable Portal Guide", "0129", "Disables extra indicators on portals.");
MoreOptionsLayer::addToggle(a1, "Enable Orb Guide", "0130", "Enables extra indicators on orbs.");
MoreOptionsLayer::addToggle(a1, "Disable Orb Scale", "0140", "Disables the scaling effect on all orbs.");
MoreOptionsLayer::addToggle(
a1,
"Disable Trigger\nOrb Scale",
"0141",
"Disables the scaling effect on only trigger orbs.");
MoreOptionsLayer::addToggle(a1, "Disable Shake", "0172", "Disables shake effects.");
MoreOptionsLayer::addToggle(
a1,
"Disable Explosion\nShake",
"0014",
"Disables the shake effect that happens upon death.");
MoreOptionsLayer::addToggle(
a1,
"Disable Gravity\nEffect",
"0072",
"Disables the effect that happens upon changing gravity.");
MoreOptionsLayer::addToggle(a1, "Default Mini Icon", "0060", "Sets player icon in mini mode to default.");
MoreOptionsLayer::addToggle(
a1,
"Switch Spider\nTeleport Color",
"0061",
"Toggles between main and secondary color for the teleport effect in spider mode.");
MoreOptionsLayer::addToggle(
a1,
"Switch Dash\nFire Color",
"0062",
"Toggles between main and secondary color for the fire effect from dash orbs.");
MoreOptionsLayer::addToggle(
a1,
"Switch Wave\nTrail Color",
"0096",
"Toggles between main and secondary color for the trail in wave mode.");
MoreOptionsLayer::addToggle(
a1,
"Hide Playtest Text",
"0174",
"Hides text in the top left when using start positions or ignore damage.");
MoreOptionsLayer::addToggle(
a1,
"Hitbox On Death",
"0179",
"Shows hitboxes upon death in both normal and practice mode.");
MoreOptionsLayer::offsetToNextPage(a1);
MoreOptionsLayer::addToggle(
a1,
"Hide Attempts",
"0134",
"Hides the attempt counter when playing levels in practice mode.");
MoreOptionsLayer::addToggle(
a1,
"Enable Auto-Checkpoints",
"0027",
"Places checkpoints automatically in practice mode.");
MoreOptionsLayer::addToggle(
a1,
"Enable Quick\nCheckpoints",
"0068",
"Tries to place checkpoints more often in practice mode.");
MoreOptionsLayer::addToggle(a1, "Enable Death Effect", "0100", "Shows death effects in practice mode.");
MoreOptionsLayer::addToggle(
a1,
"Enable Normal Music\nIn Editor",
"0125",
"Plays normal music in sync to editor levels in practice mode.");
MoreOptionsLayer::addToggle(a1, "Show Hitboxes", "0166", "Shows hitboxes while in practice mode.");
MoreOptionsLayer::addToggle(
a1,
"Disable Player Hitbox",
"0171",
"Disables the player's hitbox in practice mode\n(if hitboxes are shown).");
MoreOptionsLayer::offsetToNextPage(a1);
MoreOptionsLayer::addToggle(
a1,
"Enable Smooth Fix",
"0023",
"Makes some optimizations that can reduce lag. Disable if game speed becomes inconsistent.");
MoreOptionsLayer::addToggle(
a1,
"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(
a1,
"Enable Low Detail",
"0108",
"Enables low detail mode on levels that support it automatically.");
MoreOptionsLayer::addToggle(
a1,
"Disable High Object\nAlert",
"0082",
"Removes the alert shown when starting levels with a high object count.");
MoreOptionsLayer::addToggle(
a1,
"Enable Extra LDM",
"0136",
"Removes glow and enter effects while in low detail mode. Levels without LDM show LDM Lite.");
MoreOptionsLayer::addToggle(
a1,
"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(
a1,
"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(
a1,
"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(
a1,
"Disable Shader\nAnti-Aliasing",
"0155",
"Disables anti-aliasing on shader effects.");
MoreOptionsLayer::offsetToNextPage(a1);
MoreOptionsLayer::addToggle(
a1,
"Disable Song Alert",
"0083",
"Removes the alert shown when starting levels without the song downloaded.");
MoreOptionsLayer::addToggle(
a1,
"No Song Limit",
"0018",
"Stops automatic deletion of custom songs. This is done by default to save space.");
MoreOptionsLayer::addToggle(
a1,
"Reduce Quality\n(Read Info)",
"0142",
"Lowers audio sampling rate from 44100 Hz to 24000 Hz. Requires restarting to take effect.");
MoreOptionsLayer::addToggle(
a1,
"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(a1);
MoreOptionsLayer::addToggle(a1, "More Comments", "0094", "Shows more comments per page. Why not?");
MoreOptionsLayer::addToggle(a1, "Load Comments", "0090", "Loads comments automatically.");
MoreOptionsLayer::addToggle(
a1,
"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(
a1,
"Increase Local Levels\nPer Page",
"0093",
"Increases created and saved levels per page from 10 to 20.");
MoreOptionsLayer::addToggle(
a1,
"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(a1, "Percentage Decimals", "0126", "Shows decimals in level progress.");
MoreOptionsLayer::addToggle(
a1,
"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(a1, "Do Not...", "0095", "Does not do anything... Well, nothing useful.");
MoreOptionsLayer::addToggle(a1, "Confirm Exit", "0167", "Adds an extra confirmation window when exiting levels.");
MoreOptionsLayer::addToggle(a1, "Fast\nMenu", "0168", "Makes transitions between menu pages faster.");
v15 = MoreOptionsLayer::objectsForPage(a1, 5);
v16 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_savedSongsBtn_001.png");
v80.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v80.adj = (size_t)MoreOptionsLayer::onSongBrowser;
v17 = CCMenuItemSpriteExtra::create(v16, nullptr, v80);
CCMenuItemSpriteExtra::setSizeMult(v17, 1.2);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v17);
v62 = v17->setPosition;
m_buttonMenu = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(
&v72.origin,
(float)((float)(v67 * 0.5) + 200.0) - 36.0,
(float)((float)((float)(v68 * 0.5) + -140.0) + 36.0) + 2.0);
v74 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, &v72.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v62)(v17, &v73, v74.x, v74.y);
cocos2d::CCArray::addObject(v15, v17);
v17->setVisible(v17, 0);
v19 = (cocos2d::CCNode *)ButtonSprite::create(
(ButtonSprite *)"DEBUG",
(const char *)&dword_44 + 2,
0,
0,
0.6,
"goldFont.fnt",
"GJ_button_04.png",
v18,
25.0);
v81.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v81.adj = (size_t)MoreOptionsLayer::onFMODDebug;
v20 = CCMenuItemSpriteExtra::create(v19, nullptr, v81);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v20);
v63 = v20->setPosition;
v59 = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v72.origin, (float)(v67 * 0.5) + 40.0, (float)((float)(v68 * 0.5) + -140.0) + 30.0);
v75 = cocos2d::CCNode::convertToNodeSpace(v59, &v72.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v63)(v20, &v73, v75.x, v75.y);
cocos2d::CCArray::addObject(v15, v20);
v20->setVisible(v20, 0);
v57 = MoreOptionsLayer::objectsForPage(a1, 6);
v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_profileButton_001.png");
v21->setScale(v21, 0.8);
v82.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v82.adj = (size_t)MoreOptionsLayer::onParental;
v22 = CCMenuItemSpriteExtra::create(v21, nullptr, v82);
CCMenuItemSpriteExtra::setSizeMult(v22, 1.2);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v22);
v64 = v22->setPosition;
v60 = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(
&v72.origin,
(float)((float)(v67 * 0.5) + 200.0) - 36.0,
(float)((float)(v68 * 0.5) + -140.0) + 36.0);
v76 = cocos2d::CCNode::convertToNodeSpace(v60, &v72.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v64)(v22, &v73, v76.x, v76.y);
cocos2d::CCArray::addObject(v57, v22);
v22->setVisible(v22, 0);
cocos2d::CCPoint::CCPoint(
&v69,
(float)((float)(v67 * 0.5) + -200.0) + 75.0,
(float)((float)(v68 * 0.5) + -140.0) + 35.0);
v23 = cocos2d::CCLabelBMFont::create();
v23->setScale(v23, 0.4);
v65 = v23->setPosition;
cocos2d::CCPoint::CCPoint(&v72.origin, 0.0, 25.0);
cocos2d::CCPoint::operator+(&v73, &v69, &v72);
v65(v23, &v73.origin);
a1->m_mainLayer->addChild(a1->m_mainLayer, v23);
cocos2d::CCArray::addObject(v15, v23);
v23->setVisible(v23, 0);
cocos2d::CCRect::CCRect(&v72, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect(&v73, &v72);
v24 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square02_small.png",
(const char *)&v73,
v87);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v24->__vftable[1].~CCNode_0)(v24, 100);
cocos2d::CCSize::CCSize(&v70, 100.0, 30.0);
v24->setContentSize(v24, &v70);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v24, -1);
v24->setPosition(v24, &v69);
cocos2d::CCArray::addObject(v15, v24);
v24->setVisible(v24, 0);
v25 = CCTextInputNode::create(100.0, 50.0, "Offset", "Thonburi");
a1->m_offsetInput = v25;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v25, 20);
a1->m_offsetInput->m_delegate = &a1->TextInputDelegate;
a1->m_offsetInput->setPosition(a1->m_offsetInput, &v69);
CCTextInputNode::setMaxLabelScale(a1->m_offsetInput, 0.7);
CCTextInputNode::setMaxLabelWidth(a1->m_offsetInput, 200.0);
a1->m_offsetInput->m_textField->setVisible(a1->m_offsetInput->m_textField, 0);
m_offsetInput = a1->m_offsetInput;
m_offsetInput->m_maxLabelLength = 4;
sub_D153B8((int)&v73, "0123456789-");
CCTextInputNode::setAllowedChars((__int64)m_offsetInput, (__int64)&v73);
v27 = (void *)(*(_QWORD *)&v73.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v73.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v55 = (unsigned int *)(*(_QWORD *)&v73.origin - 8LL);
do
v56 = __ldaxr(v55);
while ( __stlxr(v56 - 1, v55) );
}
else
{
v56 = *(_DWORD *)(*(_QWORD *)&v73.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v73.origin - 8LL) = v56 - 1;
}
if ( v56 <= 0 )
operator delete(v27);
}
*(_WORD *)&v66.r = -21896;
v66.b = -16;
CCTextInputNode::setLabelPlaceholderColor(a1->m_offsetInput, v66);
CCTextInputNode::setLabelPlaceholderScale(a1->m_offsetInput, 0.5);
cocos2d::CCArray::addObject(v15, a1->m_offsetInput);
a1->m_offsetInput->setVisible(a1->m_offsetInput, 0);
if ( FMODAudioEngine::sharedEngine()->m_musicOffset )
{
v28 = a1->m_offsetInput;
v29 = FMODAudioEngine::sharedEngine();
v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)(unsigned int)v29->m_musicOffset);
CString = (char *)cocos2d::CCString::getCString(v30);
sub_D153B8((int)&v73, CString);
CCTextInputNode::setString(v28, (const unsigned __int8 **)&v73);
v32 = (void *)(*(_QWORD *)&v73.origin - 24LL);
if ( (__int64 *)(*(_QWORD *)&v73.origin - 24LL) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v53 = (unsigned int *)(*(_QWORD *)&v73.origin - 8LL);
do
v54 = __ldaxr(v53);
while ( __stlxr(v54 - 1, v53) );
}
else
{
v54 = *(_DWORD *)(*(_QWORD *)&v73.origin - 8LL);
*(_DWORD *)(*(_QWORD *)&v73.origin - 8LL) = v54 - 1;
}
if ( v54 <= 0 )
operator delete(v32);
}
}
v33 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
v83.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v83.adj = (size_t)MoreOptionsLayer::onClose;
v34 = CCMenuItemSpriteExtra::create(v33, nullptr, v83);
CCMenuItemSpriteExtra::setSizeMult(v34, 1.5);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v34);
v35 = a1->m_buttonMenu;
v36 = v34->setPosition;
cocos2d::CCPoint::CCPoint(
&v71,
(float)((float)(v67 * 0.5) + -200.0) + 5.0,
(float)((float)(v68 * 0.5) + 140.0) - 5.0);
v77 = cocos2d::CCNode::convertToNodeSpace(v35, &v71);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v36)(v34, &v73, v77.x, v77.y);
v37 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
v84.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v84.adj = (size_t)MoreOptionsLayer::onPrevPage;
v38 = CCMenuItemSpriteExtra::create(v37, nullptr, v84);
v39 = a1->m_buttonMenu;
a1->m_leftBtn = v38;
v39->addChild(v39, v38);
m_leftBtn = a1->m_leftBtn;
v41 = a1->m_buttonMenu;
v42 = m_leftBtn->setPosition;
v43 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getScreenLeft(v43);
cocos2d::CCPoint::CCPoint(&v71, v44 + 20.0, v68 * 0.5);
v78 = cocos2d::CCNode::convertToNodeSpace(v41, &v71);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v42)(m_leftBtn, &v73, v78.x, v78.y);
CCMenuItemSpriteExtra::setSizeMult(a1->m_leftBtn, 1.5);
v45 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v45, 1);
v85.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v85.adj = (size_t)MoreOptionsLayer::onNextPage;
v46 = CCMenuItemSpriteExtra::create(v45, nullptr, v85);
v47 = a1->m_buttonMenu;
a1->m_rightBtn = v46;
v47->addChild(v47, v46);
m_rightBtn = a1->m_rightBtn;
v49 = a1->m_buttonMenu;
v50 = m_rightBtn->setPosition;
v51 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getScreenRight(v51);
cocos2d::CCPoint::CCPoint(&v71, v52 - 20.0, v68 * 0.5);
v79 = cocos2d::CCNode::convertToNodeSpace(v49, &v71);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v50)(m_rightBtn, &v73, v79.x, v79.y);
CCMenuItemSpriteExtra::setSizeMult(a1->m_rightBtn, 1.5);
MoreOptionsLayer::goToPage(a1, 0);
}
return v2;
}