// // TouchControlEditLayer::buildNodes from 0x7a404c to 0x7a4210 (452 bytes) // // 3 xrefs: // > TouchControlEditLayer::init @ 0x7a4292 // > TouchControlEditLayer::reloadNodes @ 0x7a44da // > TouchControlEditLayer::valueDidChange @ 0x7a4f12 // // 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:59:56 +0000 // void __fastcall TouchControlEditLayer::buildNodes(TouchControlEditLayer *this) { int v2; // r5 int v3; // r7 int v4; // r5 int v5; // r1 int v6; // r8 int v7; // r2 const UIButtonConfig *v8; // r0 int v9; // r2 UIButtonConfig *v10; // r1 int *v11; // r0 int v12; // r3 float v13; // s16 int v14; // r0 int *v15; // r8 float v16; // s15 float v17; // r0 const char *v18; // r1 int **v19; // r3 int v20; // r5 cocos2d **v21; // r3 int *v22; // r3 int v23; // [sp+0h] [bp-5Ch] void (__fastcall *v24)(int *, _BYTE *); // [sp+4h] [bp-58h] int *v25; // [sp+8h] [bp-54h] BYREF float v26[2]; // [sp+Ch] [bp-50h] BYREF _BYTE v27[8]; // [sp+14h] [bp-48h] BYREF _DWORD v28[4]; // [sp+1Ch] [bp-40h] cocos2d *v29[10]; // [sp+2Ch] [bp-30h] BYREF cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v26); v2 = *((unsigned __int8 *)this + 712); if ( *((_BYTE *)this + 712) ) { v3 = 4; v28[1] = 2; v2 = 1; v28[3] = 4; v28[2] = 3; } else { v3 = 1; } v28[0] = v2; v4 = 0; do { v5 = *((_DWORD *)this + 179); v6 = v28[v4]; if ( v5 && (v7 = *(_DWORD *)(v5 + 108), -286331153 * ((*(_DWORD *)(v5 + 112) - v7) >> 2) > v4) ) { LevelControlConfig::resolveSlot(v29, v5, (UIButtonConfig *)(v7 + 60 * v4), v26); v9 = 0; } else { v8 = (const UIButtonConfig *)TouchControlEditLayer::globalDpad(this, v28[v4]); UIButtonConfig::UIButtonConfig((UIButtonConfig *)v29, v8); v9 = 1; } v23 = v9; ++v4; UIButtonConfig::operator=((_BYTE *)this + 40 * v6 + 720, (int *)v29); v11 = GJUINode::create((GJUINode *)v29, v10); v25 = v11; v12 = *v11; *((_BYTE *)v11 + 316) = 1; (*(void (__fastcall **)(int *, int))(v12 + 36))(v11, v4); if ( v23 && *((_BYTE *)this + 712) && (v6 == 2 || v6 == 4) ) { v13 = v26[0]; v24 = *(void (__fastcall **)(int *, _BYTE *))(*v25 + 92); v14 = (*(int (__fastcall **)(int *))(*v25 + 112))(v25); v15 = v25; v16 = *(float *)&v14; v17 = (*(float (__fastcall **)(int *))(*v25 + 120))(v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v13 - v16, v17); v24(v15, v27); } (*(void (__fastcall **)(TouchControlEditLayer *, int *, int))(*(_DWORD *)this + 232))(this, v25, 100); v19 = *((int ***)this + 231); if ( v19 == *((int ***)this + 232) ) { std::vector::__push_back_slow_path((int)this + 920, &v25); } else { if ( v19 ) *v19 = v25; *((_DWORD *)this + 231) += 4; } } while ( v4 != v3 ); v20 = 4; do { v29[0] = (cocos2d *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"warpBtn_02_001.png", v18); (*(void (__fastcall **)(cocos2d *, int))(*(_DWORD *)v29[0] + 80))(v29[0], 1060320051); (*(void (__fastcall **)(TouchControlEditLayer *, cocos2d *, int))(*(_DWORD *)this + 232))(this, v29[0], 110); v21 = *((cocos2d ***)this + 235); if ( v21 == *((cocos2d ***)this + 236) ) { std::vector::__push_back_slow_path((int)this + 936, v29); } else { if ( v21 ) *v21 = v29[0]; *((_DWORD *)this + 235) += 4; } --v20; } while ( v20 ); v22 = *((int **)this + 230); if ( v22 != *((int **)this + 231) ) v20 = *v22; *((_DWORD *)this + 233) = v20; }
GD Web Decomp Icon

GD Web Decomp

Raw Source