// // VideoOptionsLayer::init from 0x530c94 to 0x5317a4 (2832 bytes) // // 1 xrefs: // > VideoOptionsLayer::create @ 0x52cf88 // // 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:04 +0000 // GameManager *__fastcall VideoOptionsLayer::init(VideoOptionsLayer *this) { GameManager *v2; // r0 GameManager *v3; // r0 GameManager *GameVariable; // r0 GameManager *v5; // r0 int v6; // r0 unsigned int v7; // r1 cocos2d::CCObject *v8; // r0 cocos2d::CCDirector *v9; // r0 cocos2d::CCLayer *WinSize; // r0 int v11; // r0 int v12; // r3 GameManager *v13; // r0 GameManager *v14; // r0 GameManager *v15; // r0 GameManager *v16; // r0 GameManager *v17; // r0 GameManager *v18; // r0 int v19; // r6 void (__fastcall *v20)(int, float *); // r7 void (__fastcall *v21)(int, float *); // r7 const char *v22; // r2 int v23; // r6 void (__fastcall *v24)(int, float *); // r7 int v25; // r1 int v26; // r2 int v27; // r3 PlatformToolbox *DisplaySize; // r0 GameManager *v29; // r0 const char *v30; // r7 const char *v31; // r6 int v32; // r0 int v33; // r3 cocos2d::CCArray *v34; // r9 cocos2d::CCObject *v35; // r0 cocos2d::CCMenu *v36; // r0 cocos2d::CCArray *v37; // r6 cocos2d::CCObject *v38; // r0 int v39; // r0 cocos2d::CCArray *v40; // r0 cocos2d::CCArray *v41; // r0 cocos2d::CCArray *v42; // r7 GameManager *v43; // r0 GameManager *v44; // r0 char v45; // r0 const cocos2d::CCPoint *v46; // r10 char v47; // r9 int v48; // r9 GameManager *v49; // r0 GameManager *v50; // r0 GameManager *v51; // r0 GameManager *v52; // r0 const char *v53; // r2 int v54; // r0 int v55; // r7 void (__fastcall *v56)(int, float *); // r8 const char *v57; // r2 int v58; // r0 int v59; // r5 void (__fastcall *v60)(int, float *); // r7 int v61; // r5 void (__fastcall *v62)(int, float *); // r8 int v63; // r9 const char *v64; // r2 int v65; // r0 int v66; // r8 void (__fastcall *v67)(int, float *); // r9 int v68; // r10 const char *v69; // r1 int v70; // r0 int v71; // r0 int v72; // r9 int v73; // r10 const char *v74; // r1 int v75; // r0 int v76; // r0 int v77; // r9 int v78; // r10 const char *v79; // r1 int v80; // r0 int v81; // r9 int v82; // r10 const char *v83; // r1 int v84; // r0 int v85; // r9 int v86; // r10 ButtonSprite *v87; // r0 int v88; // r9 ButtonSprite *v89; // r0 int v90; // r10 void (__fastcall *v91)(int, float *); // r9 const char *v92; // r1 int v93; // r0 int v94; // r7 const cocos2d::CCPoint *v95; // r10 int (__fastcall *v96)(int, float *); // r9 GameManager *v97; // r0 int v98; // r0 ButtonSprite *v99; // r0 int v100; // r5 const cocos2d::CCPoint *v101; // r7 void (__fastcall *v102)(int, _BYTE *); // r6 bool v104; // [sp+4h] [bp-E0h] bool v105; // [sp+4h] [bp-E0h] float v106; // [sp+10h] [bp-D4h] char v107; // [sp+24h] [bp-C0h] char v108; // [sp+24h] [bp-C0h] cocos2d::CCSprite *v109; // [sp+28h] [bp-BCh] cocos2d::CCSprite *v110; // [sp+28h] [bp-BCh] cocos2d::CCSprite *v111; // [sp+28h] [bp-BCh] cocos2d::CCSprite *v112; // [sp+28h] [bp-BCh] GameManager *v113; // [sp+2Ch] [bp-B8h] cocos2d::CCPoint *v114; // [sp+30h] [bp-B4h] cocos2d::CCPoint *v115; // [sp+30h] [bp-B4h] cocos2d::CCPoint *v116; // [sp+30h] [bp-B4h] cocos2d::CCPoint *v117; // [sp+30h] [bp-B4h] cocos2d::CCPoint *v118; // [sp+30h] [bp-B4h] cocos2d::CCPoint *v119; // [sp+30h] [bp-B4h] cocos2d::CCPoint *v120; // [sp+34h] [bp-B0h] cocos2d::CCPoint *v121; // [sp+34h] [bp-B0h] cocos2d::CCPoint *v122; // [sp+34h] [bp-B0h] float v123; // [sp+40h] [bp-A4h] BYREF float v124; // [sp+44h] [bp-A0h] float v125[2]; // [sp+48h] [bp-9Ch] BYREF _BYTE v126[8]; // [sp+50h] [bp-94h] BYREF _BYTE v127[8]; // [sp+58h] [bp-8Ch] BYREF char v128[8]; // [sp+60h] [bp-84h] BYREF _BYTE v129[8]; // [sp+68h] [bp-7Ch] BYREF int (__fastcall *v130)(VideoOptionsLayer *, cocos2d::CCObject *); // [sp+70h] [bp-74h] int v131; // [sp+74h] [bp-70h] int (__fastcall *v132)(VideoOptionsLayer *, cocos2d::CCObject *); // [sp+78h] [bp-6Ch] int v133; // [sp+7Ch] [bp-68h] int (__fastcall *v134)(int, cocos2d::CCObject *); // [sp+80h] [bp-64h] int v135; // [sp+84h] [bp-60h] int (__fastcall *v136)(cocos2d::CCArray **, cocos2d::CCObject *); // [sp+88h] [bp-5Ch] int v137; // [sp+8Ch] [bp-58h] int (__fastcall *v138)(cocos2d::CCArray **, cocos2d::CCObject *); // [sp+90h] [bp-54h] int v139; // [sp+94h] [bp-50h] int (__fastcall *v140)(VideoOptionsLayer *, cocos2d::CCObject *); // [sp+98h] [bp-4Ch] int v141; // [sp+9Ch] [bp-48h] int (__fastcall *v142)(VideoOptionsLayer *, cocos2d::CCObject *); // [sp+A0h] [bp-44h] int v143; // [sp+A4h] [bp-40h] int (__fastcall *v144)(VideoOptionsLayer *, cocos2d::CCObject *); // [sp+A8h] [bp-3Ch] int v145; // [sp+ACh] [bp-38h] _DWORD v146[2]; // [sp+B0h] [bp-34h] BYREF _DWORD v147[2]; // [sp+B8h] [bp-2Ch] BYREF int v148; // [sp+C0h] [bp-24h] BYREF int v149; // [sp+C4h] [bp-20h] int v150; // [sp+C8h] [bp-1Ch] float v151; // [sp+CCh] [bp-18h] BYREF float v152; // [sp+D0h] [bp-14h] v151 = 8388600.0; v2 = (GameManager *)cocos2d::CCLayerColor::initWithColor(this, &v151); v113 = v2; if ( v2 ) { v3 = (GameManager *)GameManager::sharedState(v2); GameVariable = (GameManager *)GameManager::getGameVariable(v3, "0168"); if ( GameVariable ) *((_BYTE *)this + 468) = 1; v5 = (GameManager *)GameManager::sharedState(GameVariable); if ( *((_DWORD *)v5 + 105) ) { v6 = GameManager::sharedState(v5); MenuLayer::videoOptionsOpened(*(_DWORD *)(v6 + 420)); } FLAlertLayer::incrementForcePrio(this); (*(void (__fastcall **)(VideoOptionsLayer *, int))(*(_DWORD *)this + 500))(this, 1); (*(void (__fastcall **)(VideoOptionsLayer *, int))(*(_DWORD *)this + 536))(this, 1); v8 = (cocos2d::CCObject *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)((char *)&dword_0 + 1), v7); *((_DWORD *)this + 136) = v8; v9 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v8); cocos2d::CCDirector::sharedDirector(v9); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v123); v11 = cocos2d::CCLayer::create(WinSize); v12 = *(_DWORD *)this; *((_DWORD *)this + 115) = v11; v13 = (GameManager *)(*(int (__fastcall **)(VideoOptionsLayer *, int))(v12 + 228))(this, v11); v14 = (GameManager *)GameManager::sharedState(v13); v15 = (GameManager *)(GameManager::getGameVariable(v14, "0025") ^ 1); *((_BYTE *)this + 564) = (_BYTE)v15; v16 = (GameManager *)GameManager::sharedState(v15); v17 = (GameManager *)GameManager::getGameVariable(v16, "0170"); *((_BYTE *)this + 565) = (_BYTE)v17; v18 = (GameManager *)GameManager::sharedState(v17); *((_BYTE *)this + 566) = GameManager::getGameVariable(v18, "0175"); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v151, 0.0, 0.0, 80.0, 80.0); v19 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", &v151); v20 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v19 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v151, 360.0, 260.0); v20(v19, &v151); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v19, -1); v21 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, v123 * 0.5, v124 * 0.5); v21(v19, &v151); v23 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Video Options", "goldFont.fnt", v22); v24 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v23 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, v123 * 0.5, (float)((float)(v124 * 0.5) + 130.0) - 14.0); v24(v23, &v151); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v23); (*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 80))(v23, 1060320051); *((_DWORD *)this + 125) = -1; DisplaySize = PlatformToolbox::getDisplaySize((PlatformToolbox *)v125, v25, v26, v27); v29 = (GameManager *)GameManager::sharedState(DisplaySize); v30 = *((const char **)v29 + 211); *((_DWORD *)this + 142) = -1; v31 = (_BYTE *)(&dword_0 + 1); do { v32 = GameManager::sharedState(v29); v29 = GameManager::resolutionForKey((GameManager *)&v151, v32, (int)v31, v33); if ( v151 <= v125[0] && v152 <= v125[1] ) { v34 = *((cocos2d::CCArray **)this + 136); v35 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v31); v29 = (GameManager *)cocos2d::CCArray::addObject(v34, v35); if ( v31 == v30 ) { v29 = (GameManager *)(cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 136)) - 1); *((_DWORD *)this + 142) = v29; } } ++v31; } while ( v31 != (const char *)&dword_1C ); v36 = (cocos2d::CCMenu *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 136)); if ( !v36 ) { v37 = *((cocos2d::CCArray **)this + 136); v38 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)&dword_60 + 3); v36 = (cocos2d::CCMenu *)cocos2d::CCArray::addObject(v37, v38); } if ( *((_DWORD *)this + 142) == -1 ) { v36 = (cocos2d::CCMenu *)(cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 136)) - 1); *((_DWORD *)this + 142) = v36; } v39 = cocos2d::CCMenu::create(v36); *((_DWORD *)this + 111) = v39; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v39, 10); v40 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v126, (float)(v123 * 0.5) - 65.0, (float)(v124 * 0.5) + 85.0); v41 = (cocos2d::CCArray *)cocos2d::CCArray::create(v40); v148 = 0; v149 = 0; v150 = 0; v42 = v41; v43 = (GameManager *)std::string::__init(&v148, "Fullscreen", 0xAu); v131 = 0; v130 = VideoOptionsLayer::onFullscreen; v44 = (GameManager *)GameManager::sharedState(v43); v45 = GameManager::getGameVariable(v44, "0025"); v46 = *((const cocos2d::CCPoint **)this + 111); v47 = v45 ^ 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, (const cocos2d::CCPoint *)v126); VideoOptionsLayer::createToggleButton( (int)this, (int)&v148, (int)v130, v131, v47, v46, (int)&v151, 0.7, 100.0, 0, v42); std::string::~string((int)&v148); v48 = cocos2d::CCArray::objectAtIndex(v42, 0); cocos2d::CCArray::removeAllObjects(v42); v148 = 0; v149 = 0; v150 = 0; v49 = (GameManager *)std::string::__init(&v148, "Borderless", 0xAu); v133 = 0; v132 = VideoOptionsLayer::onBorderless; v50 = (GameManager *)GameManager::sharedState(v49); v107 = GameManager::getGameVariable(v50, "0170"); v109 = *((cocos2d::CCSprite **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v147, -24.0, -37.0); cocos2d::CCPoint::operator+(&v151, v126, v147); *((_DWORD *)this + 137) = VideoOptionsLayer::createToggleButton( (int)this, (int)&v148, (int)v132, v133, v107, v109, (int)&v151, 0.7, 100.0, 0, v42); std::string::~string((int)&v148); *((_DWORD *)this + 138) = cocos2d::CCArray::objectAtIndex(v42, 0); cocos2d::CCArray::removeAllObjects(v42); v148 = 0; v149 = 0; v150 = 0; v51 = (GameManager *)std::string::__init(&v148, "Fix", 3u); v135 = 0; v134 = VideoOptionsLayer::onBorderlessFix; v52 = (GameManager *)GameManager::sharedState(v51); v108 = GameManager::getGameVariable(v52, "0175"); v110 = *((cocos2d::CCSprite **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v147, 116.0, -37.0); cocos2d::CCPoint::operator+(&v151, v126, v147); *((_DWORD *)this + 139) = VideoOptionsLayer::createToggleButton( (int)this, (int)&v148, (int)v134, v135, v108, v110, (int)&v151, 0.7, 100.0, 0, v42); std::string::~string((int)&v148); *((_DWORD *)this + 140) = cocos2d::CCArray::objectAtIndex(v42, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 80))(v48, 1056964608); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 138) + 80))(*((_DWORD *)this + 138), 1056964608); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 140) + 80))(*((_DWORD *)this + 140), 1056964608); v54 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"9999x9999", "bigFont.fnt", v53); *((_DWORD *)this + 133) = v54; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v54); v55 = *((_DWORD *)this + 133); v56 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v55 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, v123 * 0.5, (float)(v124 * 0.5) - 8.0); v56(v55, &v151); v58 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Quality", "bigFont.fnt", v57); *((_DWORD *)this + 134) = v58; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v58); v59 = *((_DWORD *)this + 134); v60 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v59 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v151, v123 * 0.5, (float)(v124 * 0.5) - 66.0); v60(v59, &v151); v61 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Texture Quality", "goldFont.fnt", "goldFont.fnt"); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v61); v62 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v61 + 92); v63 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 134) + 96))(*((_DWORD *)this + 134)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v147, 0.0, 25.0); cocos2d::CCPoint::operator+(&v151, v63, v147); v62(v61, &v151); v65 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Windowed Resolution", "goldFont.fnt", v64); *((_DWORD *)this + 132) = v65; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v65); v66 = *((_DWORD *)this + 132); v67 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v66 + 92); v68 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 133) + 96))(*((_DWORD *)this + 133)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v147, 0.0, 25.0); cocos2d::CCPoint::operator+(&v151, v68, v147); v67(v66, &v151); (*(void (__fastcall **)(int, int))(*(_DWORD *)v61 + 80))(v61, 1061997773); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 132) + 80))(*((_DWORD *)this + 132), 1061997773); v70 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v69); v137 = 0; v136 = VideoOptionsLayer::onResolutionPrev; v71 = CCMenuItemSpriteExtra::create(v70, 0, (int)this, (int)VideoOptionsLayer::onResolutionPrev, 0); *((_DWORD *)this + 130) = v71; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v71); v72 = *((_DWORD *)this + 130); v111 = *(cocos2d::CCSprite **)(*(_DWORD *)v72 + 92); v114 = *((cocos2d::CCPoint **)this + 111); v73 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 133) + 96))(*((_DWORD *)this + 133)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v146, -70.0, 0.0); cocos2d::CCPoint::operator+(v147, v73, v146); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v151, v114); ((void (__fastcall *)(int, float *))v111)(v72, &v151); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 130), 2.0); v75 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v74); v139 = 0; v138 = VideoOptionsLayer::onResolutionNext; v76 = CCMenuItemSpriteExtra::create(v75, 0, (int)this, (int)VideoOptionsLayer::onResolutionNext, 0); *((_DWORD *)this + 131) = v76; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v76); v77 = *((_DWORD *)this + 131); v120 = *(cocos2d::CCPoint **)(*(_DWORD *)v77 + 92); v115 = *((cocos2d::CCPoint **)this + 111); v78 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 133) + 96))(*((_DWORD *)this + 133)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v146, 70.0, 0.0); cocos2d::CCPoint::operator+(v147, v78, v146); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v151, v115); ((void (__fastcall *)(int, float *))v120)(v77, &v151); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 131), 2.0); v80 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v79); v141 = 0; v140 = VideoOptionsLayer::onTextureQualityPrev; v81 = CCMenuItemSpriteExtra::create(v80, 0, (int)this, (int)VideoOptionsLayer::onTextureQualityPrev, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v81); v116 = *(cocos2d::CCPoint **)(*(_DWORD *)v81 + 92); v121 = *((cocos2d::CCPoint **)this + 111); v82 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 134) + 96))(*((_DWORD *)this + 134)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v146, -70.0, 0.0); cocos2d::CCPoint::operator+(v147, v82, v146); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v151, v121); ((void (__fastcall *)(int, float *))v116)(v81, &v151); CCMenuItemSpriteExtra::setSizeMult(v81, 2.0); v84 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v83); v143 = 0; v142 = VideoOptionsLayer::onTextureQualityNext; v85 = CCMenuItemSpriteExtra::create(v84, 0, (int)this, (int)VideoOptionsLayer::onTextureQualityNext, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v85); v112 = *(cocos2d::CCSprite **)(*(_DWORD *)v85 + 92); v117 = *((cocos2d::CCPoint **)this + 111); v86 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 134) + 96))(*((_DWORD *)this + 134)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v146, 70.0, 0.0); cocos2d::CCPoint::operator+(v147, v86, v146); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v151, v117); ((void (__fastcall *)(int, float *))v112)(v85, &v151); CCMenuItemSpriteExtra::setSizeMult(v85, 2.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v127, v123 * 0.5, (float)((float)(v124 * 0.5) - 130.0) + 23.0); v87 = ButtonSprite::create((ButtonSprite *)"Back", (const char *)&dword_50, 0, 1.0, COERCE_FLOAT(1), v104); v145 = 0; v144 = VideoOptionsLayer::onClose; v88 = CCMenuItemSpriteExtra::create((int)v87, 0, (int)this, (int)VideoOptionsLayer::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v88); v89 = ButtonSprite::create((ButtonSprite *)"Apply", (const char *)&dword_50, 0, 1.0, COERCE_FLOAT(1), v105); v146[1] = 0; v146[0] = VideoOptionsLayer::onApply; v90 = CCMenuItemSpriteExtra::create((int)v89, 0, (int)this, (int)VideoOptionsLayer::onApply, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v90); v122 = *(cocos2d::CCPoint **)(*(_DWORD *)v88 + 92); v118 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, -55.0, 0.0); cocos2d::CCPoint::operator+(v147, v127, v129); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v151, v118); ((void (__fastcall *)(int, float *))v122)(v88, &v151); v91 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v90 + 92); v119 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v129, 55.0, 0.0); cocos2d::CCPoint::operator+(v147, v127, v129); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v151, v119); v91(v90, &v151); v93 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v92); v147[0] = VideoOptionsLayer::onClose; v147[1] = 0; v94 = CCMenuItemSpriteExtra::create(v93, 0, (int)this, (int)VideoOptionsLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v94, 1.5); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v94); v95 = *((const cocos2d::CCPoint **)this + 111); v96 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v94 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v129, (float)((float)(v123 * 0.5) - 180.0) + 5.0, (float)((float)(v124 * 0.5) + 130.0) - 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v151, v95); v97 = (GameManager *)v96(v94, &v151); v98 = GameManager::sharedState(v97); VideoOptionsLayer::updateTextureQuality(this, *(_DWORD *)(v98 + 848)); VideoOptionsLayer::updateResolution((cocos2d::CCArray **)this, *((cocos2d::CCArray **)this + 142)); v99 = ButtonSprite::create( (ButtonSprite *)"Advanced", (const char *)off_3C, 0, 0.6, 0, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41C80000, v106); v152 = 0.0; v151 = COERCE_FLOAT(VideoOptionsLayer::onAdvanced); v100 = CCMenuItemSpriteExtra::create((int)v99, 0, (int)this, (int)VideoOptionsLayer::onAdvanced, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v100); v101 = *((const cocos2d::CCPoint **)this + 111); v102 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v100 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v128, (float)((float)(v123 * 0.5) + 180.0) - 48.0, (float)((float)(v124 * 0.5) + 130.0) - 20.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v129, v101); v102(v100, v129); } return v113; }
GD Web Decomp Icon

GD Web Decomp

Raw Source