// // MoreOptionsLayer::init from 0x423404 to 0x4242f0 (3820 bytes) // // 1 xrefs: // > MoreOptionsLayer::create @ 0x422af8 // // 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) { GameManager *v2; // r0 cocos2d::CCDirector *v3; // r0 cocos2d::CCLayer *v4; // r0 MoreOptionsLayer_vtbl *v5; // r3 cocos2d::CCNode *v6; // r6 void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r7 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCLabelBMFont *v9; // r0 float v10; // s14 float v11; // s15 cocos2d::CCLabelBMFont_vtbl *v12; // r3 cocos2d::CCLabelBMFont *v13; // r6 void (__fastcall *v14)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCDictionary *v15; // r0 cocos2d::CCDictionary *v16; // r0 cocos2d::CCMenu *v17; // r0 cocos2d::CCArray *v18; // r10 cocos2d::CCSprite *v19; // r0 CCMenuItemSpriteExtra *v20; // r9 void (__fastcall *v21)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 ButtonSprite *v22; // r0 CCMenuItemSpriteExtra *v23; // r9 cocos2d::CCMenu *v24; // r11 cocos2d::CCArray *v25; // r11 cocos2d::CCSprite *v26; // r9 CCMenuItemSpriteExtra *v27; // r9 cocos2d::CCLabelBMFont *v28; // r11 cocos2d::CCNode *v29; // r7 CCTextInputNode *v30; // r0 CCTextInputNode *m_offsetInput; // r7 CCTextInputNode *v32; // r7 FMODAudioEngine *v33; // r0 cocos2d::CCString *v34; // r0 char *CString; // r0 char *v36; // r2 cocos2d::CCSprite *v37; // r0 CCMenuItemSpriteExtra *v38; // r6 cocos2d::CCMenu *v39; // r10 void (__fastcall *v40)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 float v41; // s16 cocos2d::CCSprite *v42; // r0 CCMenuItemSpriteExtra *v43; // r0 cocos2d::CCMenu *v44; // r11 void (__fastcall *v45)(char *, cocos2d::CCRect *); // r10 cocos2d::CCDirector *v46; // r0 float v47; // r0 cocos2d::CCSprite *v48; // r7 CCMenuItemSpriteExtra *v49; // r0 CCMenuItemSpriteExtra *m_rightBtn; // r8 cocos2d::CCMenu *v51; // r10 void (__fastcall *v52)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCDirector *v53; // r0 float v54; // r0 float v56; // r2 float v57; // r3 char *v58; // [sp+10h] [bp-94h] char *m_leftBtn; // [sp+10h] [bp-94h] int v60; // [sp+14h] [bp-90h] cocos2d::CCMenu *m_buttonMenu; // [sp+18h] [bp-8Ch] cocos2d::CCPoint *v62; // [sp+18h] [bp-8Ch] cocos2d::CCPoint *v63; // [sp+18h] [bp-8Ch] cocos2d::CCPoint *v64; // [sp+18h] [bp-8Ch] cocos2d::CCMenu *v65; // [sp+20h] [bp-84h] cocos2d::ccColor3B v66; // [sp+28h] [bp-7Ch] cocos2d::CCSize v67; // [sp+2Ch] [bp-78h] BYREF cocos2d::CCPoint v68; // [sp+34h] [bp-70h] BYREF cocos2d::CCSize v69; // [sp+3Ch] [bp-68h] BYREF cocos2d::CCPoint v70; // [sp+44h] [bp-60h] BYREF cocos2d::CCPoint v71; // [sp+4Ch] [bp-58h] BYREF void (*v72)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+54h] [bp-50h] int v73; // [sp+58h] [bp-4Ch] void (*v74)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+5Ch] [bp-48h] int v75; // [sp+60h] [bp-44h] void (*v76)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+64h] [bp-40h] int v77; // [sp+68h] [bp-3Ch] void (*v78)(MoreOptionsLayer *, cocos2d::CCObject *); // [sp+6Ch] [bp-38h] int v79; // [sp+70h] [bp-34h] cocos2d::CCPoint v80; // [sp+74h] [bp-30h] BYREF cocos2d::CCRect v81; // [sp+7Ch] [bp-28h] BYREF cocos2d::CCRect v82; // [sp+8Ch] [bp-18h] BYREF cocos2d::CCSize v83; // 0:^0.8 cocos2d::CCRect v84; // 0:kr00_16.16 cocos2d::CCRect v85; // 0:r2.8,8:^0.8 v82.origin.x = 8388600.0; v60 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::_ccColor4B *)&v82); if ( v60 ) { v2 = GameManager::sharedState(); if ( GameManager::getGameVariable(v2, "0168") ) a1->m_noElasticity = 1; FLAlertLayer::incrementForcePrio(a1); a1->setTouchEnabled(a1, 1); a1->setKeypadEnabled(a1, 1); v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v67, v3); v4 = cocos2d::CCLayer::create(); v5 = a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_mainLayer = v4; v5->addChild(a1, v4); cocos2d::CCRect::CCRect(&v82, 0.0, 0.0, 80.0, 80.0); v84.origin.x = v56; v84.origin.y = v57; v84.size = v83; v6 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square01.png", (const char *)&v82, v84); setContentSize = v6->setContentSize; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v82, 400.0, 280.0); setContentSize(v6, (const cocos2d::CCSize *)&v82); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, -1); setPosition = v6->setPosition; cocos2d::CCPoint::CCPoint(&v82.origin, v67.width * 0.5, v67.height * 0.5); setPosition(v6, &v82.origin); v9 = cocos2d::CCLabelBMFont::create(); v10 = (float)(v67.height * 0.5) + 140.0; v11 = v67.width * 0.5; v12 = v9->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v13 = v9; a1->m_categoryLabel = v9; v14 = v12->setPosition; cocos2d::CCPoint::CCPoint(&v82.origin, v11, v10 - 16.0); v14(v13, &v82.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, a1->m_categoryLabel); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))a1->m_categoryLabel->setScale)(a1->m_categoryLabel, 1060320051); a1->m_joystickConnected = -1; v15 = cocos2d::CCDictionary::create(); a1->m_objects = v15; cocos2d::CCObject::retain(v15); v16 = cocos2d::CCDictionary::create(); a1->m_variables = v16; cocos2d::CCObject::retain(v16); v17 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v17; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v17, 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."); v18 = MoreOptionsLayer::objectsForPage(a1, 5); v19 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_savedSongsBtn_001.png"); v73 = 0; v72 = MoreOptionsLayer::onSongBrowser; v20 = CCMenuItemSpriteExtra::create( v19, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreOptionsLayer::onSongBrowser, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v20, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v20); v21 = v20->setPosition; m_buttonMenu = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint( &v81.origin, (float)((float)(v67.width * 0.5) + 200.0) - 36.0, (float)((float)((float)(v67.height * 0.5) - 140.0) + 36.0) + 2.0); cocos2d::CCNode::convertToNodeSpace(&v82.origin, m_buttonMenu, &v81.origin); v21(v20, &v82.origin); cocos2d::CCArray::addObject(v18, v20); v20->setVisible(v20, 0); v22 = ButtonSprite::create( (ButtonSprite *)"DEBUG", (const char *)&dword_44 + 2, 0, 0.6, 0, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41C80000, COERCE_FLOAT("bigFont.fnt")); v75 = 0; v74 = MoreOptionsLayer::onFMODDebug; v23 = CCMenuItemSpriteExtra::create( v22, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreOptionsLayer::onFMODDebug, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v23); v24 = a1->m_buttonMenu; v62 = (cocos2d::CCPoint *)v23->setPosition; cocos2d::CCPoint::CCPoint( &v81.origin, (float)(v67.width * 0.5) + 40.0, (float)((float)(v67.height * 0.5) - 140.0) + 30.0); cocos2d::CCNode::convertToNodeSpace(&v82.origin, v24, &v81.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *))v62)(v23, &v82); cocos2d::CCArray::addObject(v18, v23); v23->setVisible(v23, 0); v25 = MoreOptionsLayer::objectsForPage(a1, 6); v26 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_profileButton_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v26->setScale)(v26, 1061997773); v77 = 0; v76 = MoreOptionsLayer::onParental; v27 = CCMenuItemSpriteExtra::create( v26, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreOptionsLayer::onParental, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v27, 1.2); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v27); v63 = (cocos2d::CCPoint *)v27->setPosition; v65 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint( &v81.origin, (float)((float)(v67.width * 0.5) + 200.0) - 36.0, (float)((float)(v67.height * 0.5) - 140.0) + 36.0); cocos2d::CCNode::convertToNodeSpace(&v82.origin, v65, &v81.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *))v63)(v27, &v82); cocos2d::CCArray::addObject(v25, v27); v27->setVisible(v27, 0); cocos2d::CCPoint::CCPoint( &v68, (float)((float)(v67.width * 0.5) - 200.0) + 75.0, (float)((float)(v67.height * 0.5) - 140.0) + 35.0); v28 = cocos2d::CCLabelBMFont::create(); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v28->setScale)(v28, 1053609165); v64 = (cocos2d::CCPoint *)v28->setPosition; cocos2d::CCPoint::CCPoint(&v81.origin, 0.0, 25.0); cocos2d::CCPoint::operator+(&v82, &v68, &v81); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))v64)(v28, &v82); a1->m_mainLayer->addChild(a1->m_mainLayer, v28); cocos2d::CCArray::addObject(v18, v28); v28->setVisible(v28, 0); cocos2d::CCRect::CCRect(&v81, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v82, &v81); v29 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v82, v85); ((void (__fastcall *)(cocos2d::CCNode *, int))v29->__vftable[1].~CCNode_0)(v29, 100); cocos2d::CCSize::CCSize(&v69, 100.0, 30.0); v29->setContentSize(v29, &v69); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v29, -1); v29->setPosition(v29, &v68); cocos2d::CCArray::addObject(v18, v29); v29->setVisible(v29, 0); v30 = CCTextInputNode::create(100.0, 50.0, "Offset", "Thonburi"); a1->m_offsetInput = v30; ((void (__fastcall *)(cocos2d::CCLayer *, CCTextInputNode *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), int *, char *))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v30, 20, a1->m_mainLayer->addChild_0, &dword_18, v58); a1->m_offsetInput->m_delegate = &a1->TextInputDelegate; a1->m_offsetInput->setPosition(a1->m_offsetInput, &v68); 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_776584((int)&v82, "0123456789-"); CCTextInputNode::setAllowedChars((int)m_offsetInput, (int)&v82); sub_774008(&v82); *(_WORD *)&v66.r = -21896; v66.b = -16; CCTextInputNode::setLabelPlaceholderColor(a1->m_offsetInput, v66); CCTextInputNode::setLabelPlaceholderScale(a1->m_offsetInput, 0.5); cocos2d::CCArray::addObject(v18, a1->m_offsetInput); a1->m_offsetInput->setVisible(a1->m_offsetInput, 0); if ( FMODAudioEngine::sharedEngine()->m_musicOffset ) { v32 = a1->m_offsetInput; v33 = FMODAudioEngine::sharedEngine(); v34 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)v33->m_musicOffset); CString = (char *)cocos2d::CCString::getCString(v34); sub_776584((int)&v82, CString); CCTextInputNode::setString((int)v32, (char *)&v82, v36); sub_774008(&v82); } v37 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v79 = 0; v78 = MoreOptionsLayer::onClose; v38 = CCMenuItemSpriteExtra::create( v37, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreOptionsLayer::onClose, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v38, 1.5); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v38); v39 = a1->m_buttonMenu; v40 = v38->setPosition; cocos2d::CCPoint::CCPoint( &v80, (float)((float)(v67.width * 0.5) - 200.0) + 5.0, (float)((float)(v67.height * 0.5) + 140.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(&v82.origin, v39, &v80); v40(v38, &v82.origin); v41 = v67.height * 0.5; v42 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v80.y = 0.0; LODWORD(v80.x) = MoreOptionsLayer::onPrevPage; v43 = CCMenuItemSpriteExtra::create( v42, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreOptionsLayer::onPrevPage, (unsigned int)a1)); a1->m_leftBtn = v43; a1->m_buttonMenu->addChild(a1->m_buttonMenu, v43); v44 = a1->m_buttonMenu; m_leftBtn = (char *)a1->m_leftBtn; v45 = *(void (__fastcall **)(char *, cocos2d::CCRect *))(*(_DWORD *)m_leftBtn + 92); v46 = cocos2d::CCDirector::sharedDirector(); v47 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v46)); cocos2d::CCPoint::CCPoint(&v71, v47 + 20.0, v41); cocos2d::CCNode::convertToNodeSpace(&v82.origin, v44, &v71); v45(m_leftBtn, &v82); CCMenuItemSpriteExtra::setSizeMult(a1->m_leftBtn, 1.5); v48 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v48, 1); v82.origin.y = 0.0; LODWORD(v82.origin.x) = MoreOptionsLayer::onNextPage; v49 = CCMenuItemSpriteExtra::create( v48, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(MoreOptionsLayer::onNextPage, (unsigned int)a1)); a1->m_rightBtn = v49; a1->m_buttonMenu->addChild(a1->m_buttonMenu, v49); m_rightBtn = a1->m_rightBtn; v51 = a1->m_buttonMenu; v52 = m_rightBtn->setPosition; v53 = cocos2d::CCDirector::sharedDirector(); v54 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v53)); cocos2d::CCPoint::CCPoint(&v70, v54 - 20.0, v41); cocos2d::CCNode::convertToNodeSpace(&v71, v51, &v70); v52(m_rightBtn, &v71); CCMenuItemSpriteExtra::setSizeMult(a1->m_rightBtn, 1.5); MoreOptionsLayer::goToPage(a1, 0); } return v60; }
GD Web Decomp Icon

GD Web Decomp

Raw Source