// // MoreOptionsLayer::init from 0x10079b7f0 to 0x10079cb1e (4910 bytes) // // 2 xrefs: // > MoreOptionsLayer::create @ 0x10079b360 // > @ 0x10098e700 // // 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 __fastcall MoreOptionsLayer::init(MoreOptionsLayer *a1) { bool result; // al GameManager *v3; // rax cocos2d::CCLayer *v4; // rax cocos2d::extension::CCScale9Sprite *v5; // r14 cocos2d::CCLabelBMFont *v6; // r14 cocos2d::CCDictionary *v7; // rax cocos2d::CCDictionary *v8; // rax cocos2d::CCMenu *v9; // rax int m_toggleCount; // eax int v11; // eax int v12; // eax int v13; // eax int v14; // eax cocos2d::CCSprite *v15; // rax CCMenuItemSpriteExtra *v16; // r15 cocos2d::CCMenu *m_buttonMenu; // r12 ButtonSprite *v18; // rax CCMenuItemSpriteExtra *v19; // r15 cocos2d::CCMenu *v20; // r14 cocos2d::CCSprite *v21; // r14 CCMenuItemSpriteExtra *v22; // r12 cocos2d::CCMenu *v23; // r14 cocos2d::CCLabelBMFont *v24; // r13 CCTextInputNode *v25; // r15 cocos2d::extension::CCScale9Sprite *v26; // r13 CCTextInputNode *v27; // rax CCTextInputNode *m_offsetInput; // rdi CCTextInputNode *v29; // rdi CCTextInputNode *v30; // r14 cocos2d::CCString *v31; // rax const char *CString; // r12 size_t v33; // rax size_t v34; // r15 char *v35; // r13 size_t v36; // r14 cocos2d::CCSprite *v37; // rax CCMenuItemSpriteExtra *v38; // r14 cocos2d::CCMenu *v39; // r15 cocos2d::CCSprite *v40; // rax CCMenuItemSpriteExtra *v41; // rax CCMenuItemSpriteExtra *m_leftBtn; // r15 cocos2d::CCMenu *v43; // r12 cocos2d::CCDirector *v44; // rax cocos2d::CCSprite *v45; // r14 CCMenuItemSpriteExtra *v46; // rax CCMenuItemSpriteExtra *m_rightBtn; // r14 cocos2d::CCMenu *v48; // r15 cocos2d::CCDirector *v49; // rax ButtonSprite *v50; // rax CCMenuItemSpriteExtra *v51; // r14 cocos2d::CCMenu *v52; // rbx unsigned __int64 v53; // [rsp+0h] [rbp-B0h] BYREF cocos2d::CCArray *v54; // [rsp+8h] [rbp-A8h] __m128 v55; // [rsp+10h] [rbp-A0h] BYREF std::string v56; // [rsp+20h] [rbp-90h] BYREF _QWORD __dst[2]; // [rsp+38h] [rbp-78h] BYREF void *v58; // [rsp+48h] [rbp-68h] char v59; // [rsp+50h] [rbp-60h] BYREF float v60; // [rsp+58h] [rbp-58h] BYREF unsigned __int64 v61[2]; // [rsp+60h] [rbp-50h] BYREF cocos2d::CCArray *v62; // [rsp+70h] [rbp-40h] bool v63; // [rsp+7Fh] [rbp-31h] float v64; // [rsp+80h] [rbp-30h] BYREF float v65; // [rsp+84h] [rbp-2Ch] double v66; // 0:xmm0_8.8 double v67; // 0:xmm0_8.8 double v68; // 0:xmm0_8.8 double v69; // 0:xmm0_8.8 double v70; // 0:xmm0_8.8 double v71; // 0:xmm0_8.8 double v72; // 0:xmm0_8.8 double v73; // 0:xmm0_8.8 cocos2d::CCRect v74; // 0:xmm0_8.8,8:xmm1_8.8 cocos2d::CCRect v75; // 0:xmm0_8.8,8:xmm1_8.8 LODWORD(v61[0]) = 1258291200; result = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)v61); if ( result ) { v63 = result; v3 = GameManager::sharedState(); if ( GameManager::getGameVariable(v3, "0168") ) a1->m_noElasticity = 1; FLAlertLayer::incrementForcePrio(a1); ((void (__fastcall *)(MoreOptionsLayer *, __int64))a1->setTouchEnabled)(a1, 1); ((void (__fastcall *)(MoreOptionsLayer *, __int64))a1->setKeypadEnabled)(a1, 1); cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v66 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v64); v4 = cocos2d::CCLayer::create(); a1->m_mainLayer = v4; ((void (__fastcall *)(MoreOptionsLayer *, cocos2d::CCLayer *, double))a1->addChild)(a1, v4, v66); v74.origin = 0; v74.size = 0; sub_10028CC00((__int64)v61, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u); v5 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v74); sub_10028CBF0((float *)v61, 400.0, 280.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v5->setContentSize)(v5, v61); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v5, 0xFFFFFFFFLL); sub_10028CBE0((float *)v61, v64 * 0.5, v65 * 0.5); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v5->setPosition)(v5, v61); v6 = cocos2d::CCLabelBMFont::create_3("Options", "bigFont.fnt"); a1->m_categoryLabel = v6; sub_10028CBE0((float *)v61, v64 * 0.5, (float)((float)(v65 * 0.5) + 140.0) + -16.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v6->setPosition)(v6, v61); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)( a1->m_mainLayer, a1->m_categoryLabel); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_categoryLabel->setScale)( a1->m_categoryLabel, 0.69999999); a1->m_joystickConnected = -1; v7 = cocos2d::CCDictionary::create(); a1->m_objects = v7; cocos2d::CCObject::retain(v7); v8 = cocos2d::CCDictionary::create(); a1->m_variables = v8; cocos2d::CCObject::retain(v8); v9 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v9; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v9, 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, "Lock Cursor In-Game", "0128", "Locks and hides cursor during gameplay."); 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::addToggle( a1, "Disable Thumbstick", "0028", "Disables mouse movement when using a controller thumbstick."); MoreOptionsLayer::addToggle( a1, "Enable\nQuick Keys", "0163", "Enables some quick temporary bindings until full customization later. Use 'R' for reset, 'CTRL + R' for full reset" ", and 'P' to toggle hitboxes in Practice mode."); m_toggleCount = a1->m_toggleCount; if ( m_toggleCount % 10 ) a1->m_toggleCount = m_toggleCount - m_toggleCount % 10 + 10; MoreOptionsLayer::addToggle(a1, "Show Cursor In-Game", "0024", "Shows cursor and pause button during gameplay."); 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."); v11 = a1->m_toggleCount; if ( v11 % 10 ) a1->m_toggleCount = v11 - v11 % 10 + 10; MoreOptionsLayer::addToggle( a1, "Hide Practice Buttons", "0071", "Hides the checkpoint buttons shown in practice mode."); 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)."); v12 = a1->m_toggleCount; if ( v12 % 10 ) a1->m_toggleCount = v12 - v12 % 10 + 10; 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."); v13 = a1->m_toggleCount; if ( v13 % 10 ) a1->m_toggleCount = v13 - v13 % 10 + 10; MoreOptionsLayer::addToggle( a1, "Change Custom Songs\nLocation", "0033", "Saves custom songs in a different directory. May fix custom songs not working."); 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."); v14 = a1->m_toggleCount; if ( v14 % 10 ) a1->m_toggleCount = v14 - v14 % 10 + 10; 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."); v62 = MoreOptionsLayer::objectsForPage(a1, 5); v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_savedSongsBtn_001.png"); v16 = CCMenuItemSpriteExtra::create( v15, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MoreOptionsLayer::onSongBrowser); CCMenuItemSpriteExtra::setSizeMult(v16, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v16); m_buttonMenu = a1->m_buttonMenu; sub_10028CBE0( v55.f32, (float)((float)(v64 * 0.5) + 200.0) + -36.0, (float)((float)((float)(v65 * 0.5) + -140.0) + 36.0) + 2.0); *(cocos2d::CCPoint *)&v67 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v61, (const cocos2d::CCPoint *)m_buttonMenu); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v16->setPosition)(v16, v61, v67); sub_10071FCD0((__int64)v62, v16); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v16->setVisible)(v16, 0); v18 = ButtonSprite::create_1("DEBUG", 70, 0, 0.60000002, 0, "goldFont.fnt", "GJ_button_04.png", 25.0); v19 = CCMenuItemSpriteExtra::create( v18, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MoreOptionsLayer::onFMODDebug); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v19); v20 = a1->m_buttonMenu; sub_10028CBE0(v55.f32, (float)(v64 * 0.5) + 40.0, (float)((float)(v65 * 0.5) + -140.0) + 30.0); *(cocos2d::CCPoint *)&v68 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v61, (const cocos2d::CCPoint *)v20); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v19->setPosition)(v19, v61, v68); sub_10071FCD0((__int64)v62, v19); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v19->setVisible)(v19, 0); v54 = MoreOptionsLayer::objectsForPage(a1, 6); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_profileButton_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v21->setScale)(v21, 0.80000001); v22 = CCMenuItemSpriteExtra::create( v21, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MoreOptionsLayer::onParental); CCMenuItemSpriteExtra::setSizeMult(v22, 1.2); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v22); v23 = a1->m_buttonMenu; sub_10028CBE0(v55.f32, (float)((float)(v64 * 0.5) + 200.0) + -36.0, (float)((float)(v65 * 0.5) + -140.0) + 36.0); *(cocos2d::CCPoint *)&v69 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v61, (const cocos2d::CCPoint *)v23); ((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v22->setPosition)(v22, v61, v69); sub_10071FCD0((__int64)v54, v22); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v22->setVisible)(v22, 0); sub_10028CBE0( (float *)&v53, (float)((float)(v64 * 0.5) + -200.0) + 75.0, (float)((float)(0.5 * v65) + -140.0) + 35.0); v24 = cocos2d::CCLabelBMFont::create_3("Music Offset (MS)", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v24->setScale)(v24, 0.40000001); sub_10028CBE0(v55.f32, 0.0, 25.0); sub_10028CCE0((double *)v61, &v53, (unsigned __int64 *)&v55); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, unsigned __int64 *))v24->setPosition)(v24, v61); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v24); v25 = (CCTextInputNode *)v62; sub_10071FCD0((__int64)v62, v24); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v24->setVisible)(v24, 0); v75.size = 0; sub_10028CC00((__int64)v61, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u); *(double *)&v75.origin = sub_10028D180(&v55, v61); v26 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", v75); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v26->setOpacity)(v26, 100); sub_10028CBF0(v55.f32, 100.0, 30.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __m128 *))v26->setContentSize)(v26, &v55); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v26, 0xFFFFFFFFLL); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v26->setPosition)(v26, &v53); sub_10071FCD0((__int64)v25, v26); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _QWORD))v26->setVisible)(v26, 0); v27 = CCTextInputNode::create(100.0, 50.0, "Offset", "Thonburi", 24, "bigFont.fnt"); a1->m_offsetInput = v27; ((void (__fastcall *)(cocos2d::CCLayer *, CCTextInputNode *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v27, 20); m_offsetInput = a1->m_offsetInput; m_offsetInput->m_delegate = &a1->TextInputDelegate; ((void (__fastcall *)(CCTextInputNode *, unsigned __int64 *))m_offsetInput->setPosition)(m_offsetInput, &v53); CCTextInputNode::setMaxLabelScale(a1->m_offsetInput, 0.69999999); CCTextInputNode::setMaxLabelWidth(a1->m_offsetInput, 200.0); ((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))a1->m_offsetInput->m_textField->setVisible)( a1->m_offsetInput->m_textField, 0); v29 = a1->m_offsetInput; v29->m_maxLabelLength = 4; v56.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)22; strcpy(v56.__r_.__value_.__s.__data_, "0123456789-"); CCTextInputNode::setAllowedChars((std::string *)v29, &v56); if ( (*(_BYTE *)&v56.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v56.__r_.__value_.__l.__data_); CCTextInputNode::setLabelPlaceholderColor(a1->m_offsetInput, (cocos2d::ccColor3B)-1004936); CCTextInputNode::setLabelPlaceholderScale(a1->m_offsetInput, 0.5); sub_10071FCD0((__int64)v25, a1->m_offsetInput); ((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_offsetInput->setVisible)(a1->m_offsetInput, 0); if ( !FMODAudioEngine::sharedEngine()->m_musicOffset ) goto LABEL_27; v30 = a1->m_offsetInput; FMODAudioEngine::sharedEngine(); v31 = (cocos2d::CCString *)sub_1007AB580("%i", v53); CString = cocos2d::CCString::getCString(v31); v33 = strlen(CString); if ( v33 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(COERCE_DOUBLE(1056964608)); v34 = v33; v62 = (cocos2d::CCArray *)v30; if ( v33 >= 0x17 ) { v36 = 26; if ( (v33 | 7) != 0x17 ) v36 = (v33 | 7) + 1; v35 = (char *)operator new(v36); v58 = v35; __dst[0] = v36 + 1; __dst[1] = v34; } else { LOBYTE(__dst[0]) = 2 * v33; v35 = (char *)__dst + 1; if ( !v33 ) { LABEL_25: v35[v34] = 0; CCTextInputNode::setString((CCTextInputNode *)v62, (__int64)__dst, (__m128)0x3F000000u); if ( (__dst[0] & 1) != 0 ) operator delete(v58); LABEL_27: v37 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v38 = CCMenuItemSpriteExtra::create( v37, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MoreOptionsLayer::onClose); CCMenuItemSpriteExtra::setSizeMult(v38, 1.5); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v38); v39 = a1->m_buttonMenu; sub_10028CBE0(&v60, (float)((float)(v64 * 0.5) + -200.0) + 5.0, (float)((float)(v65 * 0.5) + 140.0) + -5.0); *(cocos2d::CCPoint *)&v70 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v59, (const cocos2d::CCPoint *)v39); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))v38->setPosition)(v38, &v59, v70); *(float *)&v62 = v65 * 0.5; v40 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); v41 = CCMenuItemSpriteExtra::create( v40, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MoreOptionsLayer::onPrevPage); a1->m_leftBtn = v41; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v41); m_leftBtn = a1->m_leftBtn; v43 = a1->m_buttonMenu; v44 = cocos2d::CCDirector::sharedDirector(); *(float *)&v70 = sub_100484D90((__int64)v44); sub_10028CBE0(&v60, *(float *)&v70 + 20.0, *(float *)&v62); *(cocos2d::CCPoint *)&v71 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v59, (const cocos2d::CCPoint *)v43); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))m_leftBtn->setPosition)(m_leftBtn, &v59, v71); CCMenuItemSpriteExtra::setSizeMult(a1->m_leftBtn, 1.5); v45 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v45, 1); v46 = CCMenuItemSpriteExtra::create( v45, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MoreOptionsLayer::onNextPage); a1->m_rightBtn = v46; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v46); m_rightBtn = a1->m_rightBtn; v48 = a1->m_buttonMenu; v49 = cocos2d::CCDirector::sharedDirector(); *(float *)&v71 = sub_100484DA0((__int64)v49); sub_10028CBE0(&v60, *(float *)&v71 + -20.0, *(float *)&v62); *(cocos2d::CCPoint *)&v72 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v59, (const cocos2d::CCPoint *)v48); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))m_rightBtn->setPosition)(m_rightBtn, &v59, v72); CCMenuItemSpriteExtra::setSizeMult(a1->m_rightBtn, 1.5); MoreOptionsLayer::goToPage(a1, 0); v50 = ButtonSprite::create_1("Keys", 70, 0, 0.60000002, 0, "goldFont.fnt", "GJ_button_04.png", 25.0); v51 = CCMenuItemSpriteExtra::create( v50, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)MoreOptionsLayer::onKeybindings); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, v51); v52 = a1->m_buttonMenu; sub_10028CBE0(&v60, (float)((float)(v64 * 0.5) + 200.0) + -35.0, (float)((float)(0.5 * v65) + 140.0) + -20.0); *(cocos2d::CCPoint *)&v73 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v59, (const cocos2d::CCPoint *)v52); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))v51->setPosition)(v51, &v59, v73); return v63; } } memmove(v35, CString, v34); goto LABEL_25; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source