// // VideoOptionsLayer::init from 0x8f49b4 to 0x8f5858 (3748 bytes) // // 3 xrefs: // > VideoOptionsLayer::create @ 0x8f59f4 // > @ 0x64fd8 // > @ 0x1460240 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:57:00 +0000 // __int64 __fastcall VideoOptionsLayer::init(VideoOptionsLayer *this) { GameManager *v2; // x0 unsigned int v3; // w24 GameManager *v5; // x0 unsigned __int64 GameVariable; // x0 GameManager *v7; // x0 __int64 v8; // x0 unsigned int v9; // w23 unsigned int v10; // w1 cocos2d::CCObject *v11; // x0 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 cocos2d::CCLayer *WinSize; // x0 __int64 v15; // x0 GameManager *v16; // x0 GameManager *v17; // x0 GameManager *v18; // x0 GameManager *v19; // x0 GameManager *v20; // x0 GameManager *v21; // x0 __int64 v22; // x25 void (__fastcall *v23)(__int64, __int64 *); // x26 void (__fastcall *v24)(__int64, __int64 *); // x26 const char *v25; // x2 __int64 v26; // x25 void (__fastcall *v27)(__int64, __int64 *); // x26 GameManager *DisplaySize; // x0 __int64 v29; // x0 int v30; // w26 cocos2d::CCArray *v31; // x27 cocos2d::CCObject *v32; // x0 cocos2d::CCMenu *v33; // x0 __int64 v34; // x0 cocos2d::CCArray *v35; // x0 cocos2d::CCArray *v36; // x23 GameManager *v37; // x0 GameManager *v38; // x0 unsigned __int8 v39; // w21 cocos2d::CCNode *v40; // x28 __int64 v41; // x28 GameManager *v42; // x0 GameManager *v43; // x0 CCMenuItemToggler *ToggleButton; // x0 char v45; // w1 GameManager *v46; // x0 GameManager *v47; // x0 CCMenuItemToggler *v48; // x0 char v49; // w1 const char *v50; // x2 __int64 v51; // x0 __int64 v52; // x28 const char *v53; // x2 __int64 v54; // x0 __int64 v55; // x23 void (__fastcall *v56)(__int64, __int64 *); // x28 const char *v57; // x2 __int64 v58; // x23 void (__fastcall *v59)(__int64, __int64 *); // x28 const char *v60; // x2 __int64 v61; // x0 __int64 v62; // x28 const char *v63; // x1 __int64 v64; // x0 __int64 v65; // x0 __int64 v66; // x23 const char *v67; // x1 __int64 v68; // x0 __int64 v69; // x0 const char *v70; // x1 __int64 v71; // x0 __int64 v72; // x28 const char *v73; // x1 __int64 v74; // x0 __int64 v75; // x23 void (__fastcall *v76)(__int64, __int64 *); // x28 bool v77; // w4 __int64 v78; // x5 const char *v79; // x6 __int64 v80; // x0 __int64 v81; // x26 bool v82; // w4 __int64 v83; // x5 const char *v84; // x6 __int64 v85; // x0 __int64 v86; // x23 const char *v87; // x1 __int64 v88; // x0 __int64 v89; // x23 cocos2d::CCNode *v90; // x27 __int64 (__fastcall *v91)(__int64, __int64 *); // x26 GameManager *v92; // x0 __int64 v93; // x0 const char *v94; // x6 __int64 v95; // x0 __int64 v96; // x23 cocos2d::CCNode *v97; // x25 void (__fastcall *v98)(__int64, __int64 *); // x20 cocos2d::CCArray *v99; // x23 cocos2d::CCObject *v100; // x0 cocos2d::CCNode *v101; // [xsp+90h] [xbp+80h] cocos2d::CCNode *v102; // [xsp+98h] [xbp+88h] cocos2d::CCNode *v103; // [xsp+98h] [xbp+88h] cocos2d::CCNode *v104; // [xsp+98h] [xbp+88h] unsigned __int8 v105; // [xsp+A0h] [xbp+90h] unsigned __int8 v106; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v107; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v108; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v109; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v110; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v111; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v112; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v113; // [xsp+A0h] [xbp+90h] cocos2d::CCNode *v114; // [xsp+A8h] [xbp+98h] cocos2d::CCNode *v115; // [xsp+A8h] [xbp+98h] void (__fastcall *v116)(__int64, __int64 *); // [xsp+A8h] [xbp+98h] __int64 v117; // [xsp+A8h] [xbp+98h] __int64 v118; // [xsp+A8h] [xbp+98h] __int64 v119; // [xsp+A8h] [xbp+98h] __int64 v120; // [xsp+A8h] [xbp+98h] __int64 v121; // [xsp+A8h] [xbp+98h] __int64 v122; // [xsp+A8h] [xbp+98h] void (__fastcall *v123)(__int64, __int64 *); // [xsp+A8h] [xbp+98h] void (__fastcall *v124)(__int64, __int64 *); // [xsp+A8h] [xbp+98h] __int64 v125; // [xsp+B0h] [xbp+A0h] BYREF float v126[2]; // [xsp+B8h] [xbp+A8h] BYREF _BYTE v127[8]; // [xsp+C0h] [xbp+B0h] BYREF _BYTE v128[8]; // [xsp+C8h] [xbp+B8h] BYREF _BYTE v129[8]; // [xsp+D0h] [xbp+C0h] BYREF __int64 v130; // [xsp+D8h] [xbp+C8h] BYREF __int64 v131[2]; // [xsp+E0h] [xbp+D0h] BYREF __int64 v132; // [xsp+F0h] [xbp+E0h] BYREF __int64 v133; // [xsp+F8h] [xbp+E8h] void *v134; // [xsp+100h] [xbp+F0h] LODWORD(v131[0]) = 1258291200; v2 = (GameManager *)(unsigned __int8)cocos2d::CCLayerColor::initWithColor(this, v131); v3 = (unsigned __int8)v2; if ( (_BYTE)v2 ) { v5 = (GameManager *)GameManager::sharedState(v2); GameVariable = (unsigned __int8)GameManager::getGameVariable(v5, "0168"); if ( (_BYTE)GameVariable ) { GameVariable = 1; *((_BYTE *)this + 596) = 1; } v7 = *(GameManager **)(GameManager::sharedState((GameManager *)GameVariable) + 576); if ( v7 ) { v8 = GameManager::sharedState(v7); MenuLayer::videoOptionsOpened(*(MenuLayer **)(v8 + 576)); } v9 = 1; FLAlertLayer::incrementForcePrio(this); (*(void (__fastcall **)(VideoOptionsLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); (*(void (__fastcall **)(VideoOptionsLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v11 = (cocos2d::CCObject *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)((char *)&dword_0 + 1), v10); *((_QWORD *)this + 89) = v11; v12 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v11); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v125, v13); v15 = cocos2d::CCLayer::create(WinSize); *((_QWORD *)this + 73) = v15; v16 = (GameManager *)(*(__int64 (__fastcall **)(VideoOptionsLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v15); v17 = (GameManager *)GameManager::sharedState(v16); v18 = (GameManager *)((unsigned int)GameManager::getGameVariable(v17, "0025") ^ 1); *((_BYTE *)this + 752) = (_BYTE)v18; v19 = (GameManager *)GameManager::sharedState(v18); v20 = (GameManager *)GameManager::getGameVariable(v19, "0170"); *((_BYTE *)this + 753) = (_BYTE)v20; v21 = (GameManager *)GameManager::sharedState(v20); *((_BYTE *)this + 754) = GameManager::getGameVariable(v21, "0175"); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v131, 0.0, 0.0, 80.0, 80.0); v22 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v131); v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v131, 360.0, 260.0); v23(v22, v131); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v22, 0xFFFFFFFFLL); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v131, *(float *)&v125 * 0.5, *((float *)&v125 + 1) * 0.5); v24(v22, v131); v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Video Options", "goldFont.fnt", v25); v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v131, *(float *)&v125 * 0.5, (float)((float)(*((float *)&v125 + 1) * 0.5) + 130.0) - 14.0); v27(v26, v131); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v26); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.7); *((_DWORD *)this + 160) = -1; DisplaySize = PlatformToolbox::getDisplaySize((cocos2d::CCSize *)v126); v29 = GameManager::sharedState(DisplaySize); v30 = *(_DWORD *)(v29 + 1056); *((_DWORD *)this + 189) = -1; do { GameManager::sharedState((GameManager *)v29); v29 = (__int64)GameManager::resolutionForKey(v9, (cocos2d::CCSize *)v131); if ( *(float *)v131 <= v126[0] && *((float *)v131 + 1) <= v126[1] ) { v31 = *((cocos2d::CCArray **)this + 89); v32 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v9); v29 = cocos2d::CCArray::addObject(v31, v32); if ( v9 == v30 ) { v29 = (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 89)) - 1; *((_DWORD *)this + 189) = v29; } } ++v9; } while ( v9 != 28 ); if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 89)) ) { v99 = *((cocos2d::CCArray **)this + 89); v100 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)&qword_60 + 3); cocos2d::CCArray::addObject(v99, v100); } v33 = (cocos2d::CCMenu *)*((unsigned int *)this + 189); if ( (_DWORD)v33 == -1 ) { v33 = (cocos2d::CCMenu *)((unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 89)) - 1); *((_DWORD *)this + 189) = (_DWORD)v33; } v34 = cocos2d::CCMenu::create(v33); *((_QWORD *)this + 69) = v34; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v34, 10); v35 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v127, (float)(*(float *)&v125 * 0.5) + -65.0, (float)(*((float *)&v125 + 1) * 0.5) + 85.0); v36 = (cocos2d::CCArray *)cocos2d::CCArray::create(v35); v132 = 0; v133 = 0; v134 = nullptr; v37 = (GameManager *)std::string::__init(&v132, "Fullscreen", 0xAu); v38 = (GameManager *)GameManager::sharedState(v37); v39 = GameManager::getGameVariable(v38, "0025") ^ 1; v40 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v131, (const cocos2d::CCPoint *)v127); VideoOptionsLayer::createToggleButton( (__int64)this, (__int64)&v132, (__int64)VideoOptionsLayer::onFullscreen, 0, v39, v40, (const cocos2d::CCPoint *)v131, 0, 0.7, 100.0, v36); if ( (v132 & 1) != 0 ) operator delete(v134); v41 = cocos2d::CCArray::objectAtIndex(v36, 0); cocos2d::CCArray::removeAllObjects(v36); v132 = 0; v133 = 0; v134 = nullptr; v42 = (GameManager *)std::string::__init(&v132, "Borderless", 0xAu); v43 = (GameManager *)GameManager::sharedState(v42); v105 = GameManager::getGameVariable(v43, "0170"); v114 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v130, -24.0, -37.0); cocos2d::CCPoint::operator+(v131, v127); ToggleButton = VideoOptionsLayer::createToggleButton( (__int64)this, (__int64)&v132, (__int64)VideoOptionsLayer::onBorderless, 0, v105, v114, (const cocos2d::CCPoint *)v131, 0, 0.7, 100.0, v36); v45 = v132; *((_QWORD *)this + 90) = ToggleButton; if ( (v45 & 1) != 0 ) operator delete(v134); *((_QWORD *)this + 91) = cocos2d::CCArray::objectAtIndex(v36, 0); cocos2d::CCArray::removeAllObjects(v36); v132 = 0; v133 = 0; v134 = nullptr; v46 = (GameManager *)std::string::__init(&v132, "Fix", 3u); v47 = (GameManager *)GameManager::sharedState(v46); v106 = GameManager::getGameVariable(v47, "0175"); v115 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v130, 116.0, -37.0); cocos2d::CCPoint::operator+(v131, v127); v48 = VideoOptionsLayer::createToggleButton( (__int64)this, (__int64)&v132, (__int64)VideoOptionsLayer::onBorderlessFix, 0, v106, v115, (const cocos2d::CCPoint *)v131, 0, 0.7, 100.0, v36); v49 = v132; *((_QWORD *)this + 92) = v48; if ( (v49 & 1) != 0 ) operator delete(v134); *((_QWORD *)this + 93) = cocos2d::CCArray::objectAtIndex(v36, 0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v41 + 160LL))(v41, 0.5); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 91) + 160LL))(*((_QWORD *)this + 91), 0.5); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 93) + 160LL))(*((_QWORD *)this + 93), 0.5); v51 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"9999x9999", "bigFont.fnt", v50); *((_QWORD *)this + 86) = v51; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v51); v52 = *((_QWORD *)this + 86); v116 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v131, *(float *)&v125 * 0.5, (float)(*((float *)&v125 + 1) * 0.5) + -8.0); v116(v52, v131); v54 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Quality", "bigFont.fnt", v53); *((_QWORD *)this + 87) = v54; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v54); v55 = *((_QWORD *)this + 87); v56 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v55 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v131, *(float *)&v125 * 0.5, (float)(*((float *)&v125 + 1) * 0.5) + -66.0); v56(v55, v131); v58 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Texture Quality", "goldFont.fnt", v57); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v58); v59 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v58 + 184LL); v117 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 87) + 192LL))(*((_QWORD *)this + 87)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v130, 0.0, 25.0); cocos2d::CCPoint::operator+(v131, v117); v59(v58, v131); v61 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Windowed Resolution", "goldFont.fnt", v60); *((_QWORD *)this + 85) = v61; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v61); v62 = *((_QWORD *)this + 85); v107 = *(cocos2d::CCNode **)(*(_QWORD *)v62 + 184LL); v118 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 192LL))(*((_QWORD *)this + 86)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v130, 0.0, 25.0); cocos2d::CCPoint::operator+(v131, v118); ((void (__fastcall *)(__int64, __int64 *))v107)(v62, v131); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v58 + 160LL))(v58, 0.8); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 85) + 160LL))(*((_QWORD *)this + 85), 0.8); v64 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v63); v65 = CCMenuItemSpriteExtra::create(v64, 0, (__int64)this, (__int64)VideoOptionsLayer::onResolutionPrev, 0); *((_QWORD *)this + 83) = v65; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v65); v66 = *((_QWORD *)this + 83); v102 = *((cocos2d::CCNode **)this + 69); v108 = *(cocos2d::CCNode **)(*(_QWORD *)v66 + 184LL); v119 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 192LL))(*((_QWORD *)this + 86)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, -70.0, 0.0); cocos2d::CCPoint::operator+(&v130, v119); cocos2d::CCNode::convertToNodeSpace(v131, v102, (const cocos2d::CCPoint *)&v130); ((void (__fastcall *)(__int64, __int64 *))v108)(v66, v131); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 83), 2.0); v68 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v67); v69 = CCMenuItemSpriteExtra::create(v68, 0, (__int64)this, (__int64)VideoOptionsLayer::onResolutionNext, 0); *((_QWORD *)this + 84) = v69; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v69); v103 = *((cocos2d::CCNode **)this + 84); v109 = *(cocos2d::CCNode **)(*(_QWORD *)v103 + 184LL); v101 = *((cocos2d::CCNode **)this + 69); v120 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 192LL))(*((_QWORD *)this + 86)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, 70.0, 0.0); cocos2d::CCPoint::operator+(&v130, v120); cocos2d::CCNode::convertToNodeSpace(v131, v101, (const cocos2d::CCPoint *)&v130); ((void (__fastcall *)(cocos2d::CCNode *, __int64 *))v109)(v103, v131); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 84), 2.0); v71 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v70); v72 = CCMenuItemSpriteExtra::create(v71, 0, (__int64)this, (__int64)VideoOptionsLayer::onTextureQualityPrev, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v72); v110 = *(cocos2d::CCNode **)(*(_QWORD *)v72 + 184LL); v104 = *((cocos2d::CCNode **)this + 69); v121 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 87) + 192LL))(*((_QWORD *)this + 87)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, -70.0, 0.0); cocos2d::CCPoint::operator+(&v130, v121); cocos2d::CCNode::convertToNodeSpace(v131, v104, (const cocos2d::CCPoint *)&v130); ((void (__fastcall *)(__int64, __int64 *))v110)(v72, v131); CCMenuItemSpriteExtra::setSizeMult(v72, 2.0); v74 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v73); v75 = CCMenuItemSpriteExtra::create(v74, 0, (__int64)this, (__int64)VideoOptionsLayer::onTextureQualityNext, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v75); v111 = *((cocos2d::CCNode **)this + 69); v76 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v75 + 184LL); v122 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 87) + 192LL))(*((_QWORD *)this + 87)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, 70.0, 0.0); cocos2d::CCPoint::operator+(&v130, v122); cocos2d::CCNode::convertToNodeSpace(v131, v111, (const cocos2d::CCPoint *)&v130); v76(v75, v131); CCMenuItemSpriteExtra::setSizeMult(v75, 2.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v128, *(float *)&v125 * 0.5, (float)((float)(*((float *)&v125 + 1) * 0.5) + -130.0) + 23.0); v80 = ButtonSprite::create((ButtonSprite *)"Back", (const char *)off_50, 0, 1, 1.0, v77, v78, v79); v81 = CCMenuItemSpriteExtra::create(v80, 0, (__int64)this, (__int64)VideoOptionsLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v81); v85 = ButtonSprite::create((ButtonSprite *)"Apply", (const char *)off_50, 0, 1, 1.0, v82, v83, v84); v86 = CCMenuItemSpriteExtra::create(v85, 0, (__int64)this, (__int64)VideoOptionsLayer::onApply, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v86); v112 = *((cocos2d::CCNode **)this + 69); v123 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v81 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, -55.0, 0.0); cocos2d::CCPoint::operator+(&v130, v128); cocos2d::CCNode::convertToNodeSpace(v131, v112, (const cocos2d::CCPoint *)&v130); v123(v81, v131); v113 = *((cocos2d::CCNode **)this + 69); v124 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v86 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, 55.0, 0.0); cocos2d::CCPoint::operator+(&v130, v128); cocos2d::CCNode::convertToNodeSpace(v131, v113, (const cocos2d::CCPoint *)&v130); v124(v86, v131); v88 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v87); v89 = CCMenuItemSpriteExtra::create(v88, 0, (__int64)this, (__int64)VideoOptionsLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v89, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v89); v90 = *((cocos2d::CCNode **)this + 69); v91 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v89 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v130, (float)((float)(*(float *)&v125 * 0.5) + -180.0) + 5.0, (float)((float)(*((float *)&v125 + 1) * 0.5) + 130.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(v131, v90, (const cocos2d::CCPoint *)&v130); v92 = (GameManager *)v91(v89, v131); v93 = GameManager::sharedState(v92); VideoOptionsLayer::updateTextureQuality(this, *(_DWORD *)(v93 + 1060)); VideoOptionsLayer::updateResolution((cocos2d::CCArray **)this, *((_DWORD *)this + 189)); v95 = ButtonSprite::create( (ButtonSprite *)"Advanced", (const char *)&word_3C, 0, 0, 0.6, "goldFont.fnt", "GJ_button_04.png", v94, 25.0); v96 = CCMenuItemSpriteExtra::create(v95, 0, (__int64)this, (__int64)VideoOptionsLayer::onAdvanced, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v96); v97 = *((cocos2d::CCNode **)this + 69); v98 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v96 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v130, (float)((float)(*(float *)&v125 * 0.5) + 180.0) - 48.0, (float)((float)(*((float *)&v125 + 1) * 0.5) + 130.0) - 20.0); cocos2d::CCNode::convertToNodeSpace(v131, v97, (const cocos2d::CCPoint *)&v130); v98(v96, v131); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source