// // UIPOptionsLayer::init from 0x100380b28 to 0x100380f88 (1120 bytes) // // 1 xrefs: // > @ 0x10093b2c8 // // 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 11:03:30 +0000 // __int64 __fastcall UIPOptionsLayer::init(__int64 a1) { __int64 v2; // x20 __int64 v3; // x0 __int64 v4; // x0 void *v5; // x0 void *v6; // x22 __int64 v7; // x23 void *v8; // x0 void *v9; // x21 float32x2_t *v10; // x22 double v11; // d0 __int64 v12; // x0 float v13; // s8 void *v14; // x0 void *v15; // x22 void *v16; // x23 _QWORD *v17; // x21 __int64 v18; // x0 __int64 v19; // x0 __n128 v20; // q0 float v21; // s8 __int64 v22; // x0 float v23; // s0 float32x2_t v25; // [xsp+18h] [xbp-78h] BYREF std::string __p; // [xsp+20h] [xbp-70h] BYREF float32x2_t v27; // [xsp+38h] [xbp-58h] BYREF float32x2_t v28; // [xsp+40h] [xbp-50h] BYREF __int64 v29; // [xsp+48h] [xbp-48h] BYREF v2 = SetupTriggerPopup::init(a1, 0, 0, 1, 400.0, 280.0, 0.0); if ( (_DWORD)v2 ) { SetupTriggerPopup::preSetup((_BYTE *)a1); BYTE2(v29) = -103; LOWORD(v29) = 17459; (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 1216LL))(a1, &v29); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 255); *(_BYTE *)(a1 + 596) = 1; v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v3, &v29); v4 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v4; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v4, 10); v5 = ButtonSprite::create_1( (__int64)"OK", 40, 0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0.8, 30.0); v6 = CCMenuItemSpriteExtra::create((__int64)v5, 0, a1, 1368, 1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v6); v7 = *(_QWORD *)(a1 + 552); sub_1000262BC((float *)&v27, (float)(*(float *)&v29 * 0.5) + -40.0, *((float *)&v29 + 1) + -30.0); cocos2d::CCNode::convertToNodeSpace(v7, (__int64)&v27, &v28); (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v6 + 184LL))(v6, &v28); v8 = ButtonSprite::create_1( (__int64)"Reset", 40, 0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_05.png", 0.8, 30.0); v9 = CCMenuItemSpriteExtra::create((__int64)v8, 0, a1, (__int64)sub_100380FA4, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v9); v10 = (float32x2_t *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v6 + 192LL))(v6); sub_1000262BC((float *)&v27, 80.0, 0.0); *(float32x2_t *)&v11 = sub_100026318(v10, &v27, &v28); (*(void (__fastcall **)(void *, float32x2_t *, double))(*(_QWORD *)v9 + 184LL))(v9, &v28, v11); sub_1001AC0E4(a1, 0); sub_1000262BC((float *)&v28, *(float *)&v29 * 0.5, *((float *)&v29 + 1) + -70.0); sub_100009900(&__p, "Opacity:"); sub_1000262BC((float *)&v25, 0.0, -75.0); sub_100026318(&v28, &v25, &v27); v12 = SetupTriggerPopup::createValueControlAdvanced( a1, -29, &__p, (double *)&v27, 0, 1, 4, 0, 0.8, 0.0, 1.0, 0, 0, 1, 2, 0); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v13 = *(float *)(GameManager::sharedState(v12) + 1712) * 255.0; v14 = cocos2d::CCNode::create(); *(_QWORD *)(a1 + 1016) = v14; (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v14 + 320LL))(v14, &unk_1009F6918); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1016), 9); v15 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkpointBtn_001.png"); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v15 + 912LL))(v15, (unsigned int)(int)v13); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1016) + 456LL))(*(_QWORD *)(a1 + 1016), v15); v16 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_removeCheckBtn_001.png"); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v16 + 912LL))(v16, (unsigned int)(int)v13); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1016) + 456LL))(*(_QWORD *)(a1 + 1016), v16); v17 = sub_1002E736C(); sub_1002E74E0((__int64)v17); v18 = sub_1002E74E0((__int64)v17); v19 = GameManager::sharedState(v18); v20.n128_f64[0] = sub_1000262F4(&v27, (double *)(v19 + 1704)); v20.n128_u32[0] = v27.i32[0]; if ( v27.f32[0] == 0.0 ) { v20.n128_u32[0] = v27.u32[1]; if ( v27.f32[1] == 0.0 ) { v21 = *(float *)&v29 * 0.5; v22 = cocos2d::CCDirector::sharedDirector(); v23 = sub_100207EA0(v22); sub_1000262BC((float *)&v25, v21, v23 + 40.0); v20.n128_f64[0] = sub_10002630C(&v27, (double *)&v25); } } (*(void (__fastcall **)(_QWORD, float32x2_t *, __n128))(**(_QWORD **)(a1 + 1016) + 184LL))( *(_QWORD *)(a1 + 1016), &v27, v20); sub_1000262F4(&v25, &dbl_1009F6910); GameToolbox::alignItemsHorisontally((__int64)v17, &v25, 0, 10.0); SetupTriggerPopup::postSetup((_BYTE *)a1); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source