// // GridSettingsLayer::onBuildWindowContent from 0x1402c8d40 to 0x1402c9468 (1832 bytes) // // 2 xrefs: // > @ 0x1407669d8 // > @ 0x14091dc48 // // 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 11:29:23 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GridSettingsLayer::onBuildWindowContent(__int64 a1) { __int64 v2; // rax __int64 *v3; // rsi __int64 v4; // rdi __int64 v5; // rbx __int64 v6; // rax __int64 v7; // rax float v8; // xmm9_4 float v9; // xmm7_4 __int64 v10; // rax __int64 v11; // rdi __int64 v12; // rbx __int64 v13; // rax __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rdx int v17; // eax __int64 v18; // rax cocos2d::CCDictionary *v19; // rcx struct cocos2d::CCObject *v20; // rax cocos2d::CCDictionary *v21; // rcx struct cocos2d::CCObject *v22; // rax __int64 v23; // rbx __int64 v24; // rax struct cocos2d::CCSprite *v25; // rax cocos2d::CCObject *v26; // rbx __int64 v27; // rax struct cocos2d::CCSprite *v28; // rax cocos2d::CCObject *v29; // rbx __int64 v30; // rax struct cocos2d::CCSprite *v31; // rax cocos2d::CCObject *v32; // rbx __int64 v33; // rax __int128 *v34; // [rsp+48h] [rbp-C0h] BYREF int v35[2]; // [rsp+50h] [rbp-B8h] BYREF __int128 v36; // [rsp+58h] [rbp-B0h] BYREF __int64 v37; // [rsp+68h] [rbp-A0h] __int64 v38; // [rsp+70h] [rbp-98h] float v39; // [rsp+78h] [rbp-90h] BYREF float v40; // [rsp+7Ch] [rbp-8Ch] _QWORD v41[5]; // [rsp+80h] [rbp-88h] BYREF int v42; // [rsp+A8h] [rbp-60h] BYREF void *v43[4]; // [rsp+B0h] [rbp-58h] BYREF _BYTE v44[8]; // [rsp+D0h] [rbp-38h] BYREF int v45; // [rsp+D8h] [rbp-30h] char v46; // [rsp+DCh] [rbp-2Ch] int v47; // [rsp+E0h] [rbp-28h] int v48; // [rsp+E4h] [rbp-24h] char v49; // [rsp+E8h] [rbp-20h] int v50; // [rsp+ECh] [rbp-1Ch] int v51; // [rsp+F0h] [rbp-18h] int v52; // [rsp+100h] [rbp-8h] char v53; // [rsp+105h] [rbp-3h] _BYTE v54[32]; // [rsp+110h] [rbp+8h] BYREF int v55; // [rsp+130h] [rbp+28h] _BYTE v56[32]; // [rsp+138h] [rbp+30h] BYREF v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, *(float *)v35 * 0.5, *(float *)&v35[1] * 0.5); *((_QWORD *)&v36 + 1) = 101; v37 = 9; v38 = 15; *(_QWORD *)&v36 = 0x7A69532064697247LL; SetupTriggerPopup::addTitle(a1, &v36); v34 = &v36; v36 = 0; v37 = 0; v38 = 0; *(_QWORD *)&v36 = sub_14003D460(0xA0u); v37 = 153; v38 = 159; strcpy( (char *)v36, "Enable to override the editor grid with a custom size.\n" "Shift+G toggles it. Ctrl+G cycles the preset sizes (7.5, 15, 30, 60, 120)."); v41[1] = 101; v41[2] = 9; v41[3] = 15; v41[0] = 0x7A69532064697247LL; v3 = (__int64 *)InfoAlertButton::create(v41, &v36); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v3); v4 = *v3; v5 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v34, (float)((float)(*(float *)(a1 + 1040) * 0.5) + v39) - 13.0, (float)((float)(*(float *)(a1 + 1044) * 0.5) + v40) - 13.0); cocos2d::CCNode::convertToNodeSpace(v5, v35, v6); (*(void (__fastcall **)(__int64 *, __int64))(v4 + 184))(v3, v7); v8 = v39; v9 = v40 - 15.0; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v36, 0.0, 0.0, 40.0, 40.0); v11 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v10); v12 = *(_QWORD *)v11; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v34, *(float *)(a1 + 732) - 30.0, 64.0); (*(void (__fastcall **)(__int64, __int64))(v12 + 312))(v11, v13); v14 = *(_QWORD *)v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, v8, v9 + 5.0); (*(void (__fastcall **)(__int64, __int64))(v14 + 184))(v11, v15); (**(void (__fastcall ***)(__int64, void *))(v11 + 320))(v11 + 320, &unk_140703434); LOBYTE(v16) = 50; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v11 + 320) + 40LL))(v11 + 320, v16); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v11, 0xFFFFFFFFLL); v34 = &v36; v37 = 7; v38 = 15; v36 = 0x64656C62616E45uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v8 - 100.0, v9); SetupTriggerPopup::createToggleValueControl(a1, -1, (unsigned int)&v36, v17, 1, 0, 0, 1065353216); sub_14009BE60((__int64)&v42); v42 = -2; sub_1400405A0(v43, "Size:", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v34, v8 + 15.0, v9 + 5.0); cocos2d::CCPoint::operator=(v44, v18); v45 = 1058642330; v46 = 0; v49 = 1; v53 = 1; v55 = 1057803469; v47 = 1; v52 = 1; v48 = 5; v50 = 1084227584; v51 = 1123024896; SetupTriggerPopup::createValueControlAdvanced_1(a1, &v42); v35[0] = -2; *(_BYTE *)sub_14016EE40((__int64 *)(a1 + 872), v35) = 1; v19 = *(cocos2d::CCDictionary **)(a1 + 768); if ( v19 ) { v20 = cocos2d::CCDictionary::objectForKey(v19, -2); if ( v20 ) *(_DWORD *)(*(_QWORD *)(*((_QWORD *)v20 + 51) + 456LL) + 416LL) = 999192629; } v21 = *(cocos2d::CCDictionary **)(a1 + 760); if ( v21 ) { v22 = cocos2d::CCDictionary::objectForKey(v21, -2); if ( v22 ) { v23 = *(_QWORD *)(a1 + 552); v24 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v22 + 200LL))(v22); cocos2d::CCNode::convertToNodeSpace(v23, v35, v24); v25 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn2_001.png"); LODWORD(v23) = (_DWORD)v25; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v25 + 160LL))(v25); v26 = CCMenuItemSpriteExtra::create(v23, 0, a1, (__int64)GridSettingsLayer::onCycleDown); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, -64.800011, 0.0); cocos2d::CCPoint::operator+(v35, &v34, v27); (*(void (__fastcall **)(cocos2d::CCObject *, __int128 **))(*(_QWORD *)v26 + 184LL))(v26, &v34); *((_DWORD *)v26 + 93) = 0x40000000; v28 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn2_001.png"); LODWORD(v26) = (_DWORD)v28; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v28 + 160LL))(v28); v29 = CCMenuItemSpriteExtra::create((int)v26, 0, a1, (__int64)GridSettingsLayer::onCycleUp); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 64.800011, 0.0); cocos2d::CCPoint::operator+(v35, &v34, v30); (*(void (__fastcall **)(cocos2d::CCObject *, __int128 **))(*(_QWORD *)v29 + 184LL))(v29, &v34); *((_DWORD *)v29 + 93) = 0x40000000; v31 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png"); LODWORD(v29) = (_DWORD)v31; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v31 + 160LL))(v31); v32 = CCMenuItemSpriteExtra::create((int)v29, 0, a1, (__int64)GridSettingsLayer::onReset); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 96.800011, 0.0); cocos2d::CCPoint::operator+(v35, &v34, v33); (*(void (__fastcall **)(cocos2d::CCObject *, __int128 **))(*(_QWORD *)v32 + 184LL))(v32, &v34); } } sub_14003D310((__int64)v56); sub_14003D310((__int64)v54); sub_14003D310((__int64)v43); }
GD Web Decomp Icon

GD Web Decomp

Raw Source