// // UIPOptionsLayer::init from 0x1002a5170 to 0x1002a560b (1179 bytes) // // 1 xrefs: // > @ 0x100b0a188 // // This function is hookable on this platform (idp: pc, 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:27:56 +0000 // __int64 __fastcall UIPOptionsLayer::init(std::string::pointer data) { std::string::pointer v1; // rbx __int64 result; // rax __int64 v3; // rax __int64 v4; // rax char *v5; // rax void *v6; // r15 __int64 v7; // r12 char *v8; // rax void *v9; // r14 unsigned __int64 *v10; // r15 __int64 v11; // rdx __int64 v12; // rax void *v13; // rax double v14; // xmm0_8 char *v15; // r15 unsigned int v16; // r14d double v17; // xmm0_8 char *v18; // r12 __int64 v19; // rdi __int64 v20; // r14 __int64 v21; // rdx __int64 v22; // rax __int64 v23; // rsi __int64 v24; // rax double v25; // xmm0_8 std::string v26; // [rsp+38h] [rbp-68h] BYREF unsigned __int64 v27; // [rsp+50h] [rbp-50h] BYREF unsigned __int64 v28; // [rsp+58h] [rbp-48h] BYREF float v29; // [rsp+60h] [rbp-40h] float v30; // [rsp+64h] [rbp-3Ch] BYREF float v31; // [rsp+68h] [rbp-38h] unsigned __int64 v32; // [rsp+6Ch] [rbp-34h] BYREF unsigned __int8 v33; // [rsp+77h] [rbp-29h] v1 = data; result = SetupTriggerPopup::init((__int64)data, 0, 0, 1, 400.0, 280.0, 0.0); if ( (_BYTE)result ) { v33 = result; SetupTriggerPopup::preSetup(data); BYTE2(v30) = -103; LOWORD(v30) = 17459; (*(void (__fastcall **)(std::string::pointer, float *))(*(_QWORD *)data + 1216LL))(data, &v30); (*(void (__fastcall **)(std::string::pointer, __int64))(*(_QWORD *)data + 1168LL))(data, 255); data[596] = 1; v3 = cocos2d::CCDirector::sharedDirector(data, 255); cocos2d::CCDirector::getWinSize(&v30, v3); v4 = cocos2d::CCMenu::create(); *((_QWORD *)data + 69) = v4; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)data + 73) + 464LL))( *((_QWORD *)data + 73), v4, 10); v5 = ButtonSprite::create_1( (__int64)"OK", 0x28u, 0, 1u, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0.80000001, 30.0); v6 = CCMenuItemSpriteExtra::create((__int64)v5, 0, (__int64)data, 1369, 0); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)data + 69) + 456LL))(*((_QWORD *)data + 69), v6); v7 = *((_QWORD *)data + 69); sub_100278250((float *)&v32, (float)(v30 * 0.5) + -40.0, v31 + -30.0); cocos2d::CCNode::convertToNodeSpace((double *)&v27, v7, (unsigned int *)&v32); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v6 + 184LL))(v6, &v27); v8 = ButtonSprite::create_1( (__int64)"Reset", 0x28u, 0, 1u, (__int64)"goldFont.fnt", (__int64)"GJ_button_05.png", 0.80000001, 30.0); v9 = CCMenuItemSpriteExtra::create((__int64)v8, 0, (__int64)data, (__int64)UIPOptionsLayer::onReset, 0); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)data + 69) + 456LL))(*((_QWORD *)data + 69), v9); v10 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v6 + 192LL))(v6); sub_100278250((float *)&v32, 80.0, 0.0); sub_100278350((double *)&v27, v10, &v32); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v9 + 184LL))(v9, &v27); SetupTriggerPopup::toggleBG((__int64)data, 0); sub_100278250((float *)&v27, 0.5 * v30, v31 + -70.0); v26.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16; strcpy(v26.__r_.__value_.__s.__data_, "Opacity:"); sub_100278250((float *)&v28, 0.0, -75.0); sub_100278350((double *)&v32, &v27, &v28); SetupTriggerPopup::createValueControlAdvanced( (__int64)data, -29, &v26, (__int64)&v32, 0, 1u, 0.80000001, 0.0, 1.0, 4u, 0, 0, 0, 1u, 2u, 0); if ( (*(_BYTE *)&v26.__r_.__value_.__s.0 & 1) != 0 ) { data = v26.__r_.__value_.__l.__data_; operator delete(v26.__r_.__value_.__l.__data_); } GameManager::sharedState(data, 4294967267LL, v11); v29 = *(float *)(v12 + 1712) * 255.0; v13 = cocos2d::CCNode::create(); *((_QWORD *)v1 + 127) = v13; (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v13 + 320LL))(v13, &unk_100BE24D8); v14 = (*(double (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)v1 + 73) + 464LL))( *((_QWORD *)v1 + 73), *((_QWORD *)v1 + 127), 9); v15 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkpointBtn_001.png", v14); v16 = (unsigned __int8)(int)v29; (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v15 + 912LL))(v15, (unsigned __int8)(int)v29); v17 = (*(double (__fastcall **)(_QWORD, char *))(**((_QWORD **)v1 + 127) + 456LL))(*((_QWORD *)v1 + 127), v15); v18 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_removeCheckBtn_001.png", v17); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v18 + 912LL))(v18, v16); v19 = *((_QWORD *)v1 + 127); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v19 + 456LL))(v19, v18); v20 = sub_1007FE900(v19); sub_1007FEBF0(v20, v15); sub_1007FEBF0(v20, v18); GameManager::sharedState(v20, v18, v21); v23 = v22 + 1704; sub_1002782D0(&v32, (_QWORD *)(v22 + 1704)); if ( *(float *)&v32 == 0.0 && *((float *)&v32 + 1) == 0.0 ) { v29 = v30 * 0.5; v24 = cocos2d::CCDirector::sharedDirector(&v32, v23); v25 = sub_100479750(v24); sub_100278250((float *)&v28, v29, *(float *)&v25 + 40.0); sub_100278300(&v32, &v28); } (*(void (__fastcall **)(_QWORD, unsigned __int64 *))(**((_QWORD **)v1 + 127) + 184LL))(*((_QWORD *)v1 + 127), &v32); sub_1002782D0(&v28, &qword_100BE24D0); GameToolbox::alignItemsHorisontally(v20, &v28, 0, 10.0); SetupTriggerPopup::postSetup(v1); return v33; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source