// // UIPOptionsLayer::init from 0xa25b94 to 0xa2609c (1288 bytes) // // 2 xrefs: // > @ 0x586a8 // > @ 0x14855e0 // // 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:59:42 +0000 // __int64 __fastcall UIPOptionsLayer::init(cocos2d::CCNode **this) { unsigned __int8 v2; // w0 unsigned int v3; // w24 void (__fastcall *v5)(cocos2d::CCNode **, __int64 *); // x2 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 cocos2d::CCMenu *WinSize; // x0 __int64 v9; // x0 const char *v10; // x6 __int64 v11; // x0 __int64 v12; // x23 const char *v13; // x6 __int64 v14; // x0 __int64 v15; // x25 __int64 v16; // x0 __int64 (__fastcall *v17)(__int64); // x1 void (__fastcall *v18)(__int64, __int64 *); // x23 __int64 v19; // x26 GameManager *v20; // x0 float *v21; // x0 float v22; // s8 __int64 v23; // x0 const char *v24; // x1 cocos2d::CCObject *v25; // x27 const char *v26; // x1 cocos2d::CCObject *v27; // x26 cocos2d::CCArray *v28; // x0 cocos2d::CCArray *v29; // x23 GameManager *v30; // x0 __int64 v31; // x0 cocos2d::CCDirector *v32; // x0 long double v33; // q0 float v34; // s8 cocos2d::CCDirector *v35; // x0 float v36; // s0 cocos2d::CCNode *v37; // [xsp+B0h] [xbp+80h] void (__fastcall *v38)(__int64, __int64 *); // [xsp+B8h] [xbp+88h] __int64 v39; // [xsp+C0h] [xbp+90h] BYREF _BYTE v40[8]; // [xsp+C8h] [xbp+98h] BYREF float v41; // [xsp+D0h] [xbp+A0h] BYREF float v42; // [xsp+D4h] [xbp+A4h] __int64 v43; // [xsp+D8h] [xbp+A8h] BYREF GameManager *v44[2]; // [xsp+E0h] [xbp+B0h] BYREF void *v45; // [xsp+F0h] [xbp+C0h] v2 = SetupTriggerPopup::init((SetupTriggerPopup *)this, nullptr, nullptr, 400.0, 280.0, 1, 0.0); v3 = v2; if ( v2 ) { SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); v5 = *((void (__fastcall **)(cocos2d::CCNode **, __int64 *))*this + 152); LOWORD(v43) = 17459; BYTE2(v43) = -103; v5(this, &v43); v6 = (cocos2d::CCDirector *)(*((__int64 (__fastcall **)(cocos2d::CCNode **, __int64))*this + 146))( this, 0xFFFFFFFFLL); *((_BYTE *)this + 596) = 1; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v39, v7); v9 = cocos2d::CCMenu::create(WinSize); *(this + 69) = (cocos2d::CCNode *)v9; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v9, 10); v11 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v10, 30.0); v12 = CCMenuItemSpriteExtra::create(v11, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v12); v37 = *(this + 69); v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v41, (float)(*(float *)&v39 * 0.5) + -40.0, *((float *)&v39 + 1) - 30.0); cocos2d::CCNode::convertToNodeSpace(&v43, v37, (const cocos2d::CCPoint *)&v41); v38(v12, &v43); v14 = ButtonSprite::create( (ButtonSprite *)"Reset", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_05.png", v13, 30.0); v15 = CCMenuItemSpriteExtra::create(v14, 0, (__int64)this, (__int64)UIPOptionsLayer::onReset, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v15); v16 = v12; v17 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL); v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); v19 = v17(v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, 80.0, 0.0); cocos2d::CCPoint::operator+(&v43, v19); v18(v15, &v43); SetupTriggerPopup::toggleBG((SetupTriggerPopup *)this, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, *(float *)&v39 * 0.5, *((float *)&v39 + 1) - 70.0); v44[0] = nullptr; v44[1] = nullptr; v45 = nullptr; std::string::__init((__int64 *)v44, "Opacity:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v41, 0.0, -75.0); cocos2d::CCPoint::operator+(&v43, v40); SetupTriggerPopup::createValueControlAdvanced( this, 4294967267LL, v44, &v43, 0, 1, 4, 0, 0.8, 0.0, 1.0, 0, 0, 1, 2, 0); v20 = (GameManager *)LOBYTE(v44[0]); if ( ((__int64)v44[0] & 1) != 0 ) operator delete(v45); v21 = (float *)GameManager::sharedState(v20); v22 = v21[428] * 255.0; v23 = cocos2d::CCNode::create((cocos2d::CCNode *)v21); *(this + 127) = (cocos2d::CCNode *)v23; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v23 + 320LL))(v23, &unk_155D378); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), *(this + 127), 9); v25 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_checkpointBtn_001.png", v24); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v25 + 912LL))( v25, (unsigned __int8)(unsigned int)v22); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 127) + 456LL))(*(this + 127), v25); v27 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_removeCheckBtn_001.png", v26); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v27 + 912LL))( v27, (unsigned __int8)(unsigned int)v22); v28 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 127) + 456LL))( *(this + 127), v27); v29 = (cocos2d::CCArray *)cocos2d::CCArray::create(v28); cocos2d::CCArray::addObject(v29, v25); v30 = (GameManager *)cocos2d::CCArray::addObject(v29, v27); v31 = GameManager::sharedState(v30); v32 = (cocos2d::CCDirector *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v41, (const cocos2d::CCPoint *)(v31 + 1704)); *(float *)&v33 = v41; if ( v41 == 0.0 ) { *(float *)&v33 = v42; if ( v42 == 0.0 ) { v34 = *(float *)&v39 * 0.5; v35 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v32); cocos2d::CCDirector::getScreenBottom(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, v34, v36 + 40.0); *(__n128 *)&v33 = cocos2d::CCPoint::operator=(&v41, &v43); } } (*(void (__fastcall **)(_QWORD, float *, long double))(*(_QWORD *)*(this + 127) + 184LL))(*(this + 127), &v41, v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, (const cocos2d::CCPoint *)&unk_155D380); GameToolbox::alignItemsHorisontally((__int64)v29, (__int64)&v43, 0, 10.0); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source