// // TouchControlEditLayer::buildHud from 0x7a3540 to 0x7a3ba0 (1632 bytes) // // 1 xrefs: // > TouchControlEditLayer::init @ 0x7a4298 // // 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:55 +0000 // int __fastcall TouchControlEditLayer::buildHud(cocos2d::CCPoint **this) { cocos2d::CCMenu *WinSize; // r0 cocos2d::CCPoint *v3; // r0 ButtonSprite *v4; // r0 int v5; // r10 ButtonSprite *v6; // r0 int v7; // r11 int v8; // r10 ButtonSprite *v9; // r9 int v10; // r0 ButtonSprite *v11; // r6 int v12; // r6 const cocos2d::CCPoint *v13; // r10 void (__fastcall *v14)(int, _DWORD *); // r9 ButtonSprite *v15; // r6 int v16; // r8 ButtonSprite *v17; // r8 int v18; // r5 const cocos2d::CCPoint *v19; // r8 int (__fastcall *v20)(int, _BYTE *); // r7 float v22; // [sp+10h] [bp-8Ch] float v23; // [sp+10h] [bp-8Ch] float v24; // [sp+10h] [bp-8Ch] float v25; // [sp+10h] [bp-8Ch] float v26; // [sp+10h] [bp-8Ch] void (__fastcall *v27)(int, _DWORD *); // [sp+30h] [bp-6Ch] void (__fastcall *v28)(int, _DWORD *); // [sp+34h] [bp-68h] void (__fastcall *v29)(int, _DWORD *); // [sp+34h] [bp-68h] cocos2d::CCPoint *v30; // [sp+38h] [bp-64h] cocos2d::CCPoint *v31; // [sp+3Ch] [bp-60h] float v32; // [sp+40h] [bp-5Ch] BYREF float v33; // [sp+44h] [bp-58h] char v34[8]; // [sp+48h] [bp-54h] BYREF _BYTE v35[8]; // [sp+50h] [bp-4Ch] BYREF _DWORD (__fastcall *v36)(TouchControlEditLayer *__hidden, cocos2d::CCObject *); // [sp+58h] [bp-44h] int v37; // [sp+5Ch] [bp-40h] _DWORD (*v38)(TouchControlEditLayer *__hidden, cocos2d::CCObject *); // [sp+60h] [bp-3Ch] int v39; // [sp+64h] [bp-38h] _DWORD (*v40)(TouchControlEditLayer *__hidden, cocos2d::CCObject *); // [sp+68h] [bp-34h] int v41; // [sp+6Ch] [bp-30h] _DWORD (*v42)(TouchControlEditLayer *__hidden, cocos2d::CCObject *); // [sp+70h] [bp-2Ch] int v43; // [sp+74h] [bp-28h] _DWORD v44[2]; // [sp+78h] [bp-24h] BYREF _DWORD v45[2]; // [sp+80h] [bp-1Ch] BYREF int v46; // [sp+88h] [bp-14h] BYREF int v47; // [sp+8Ch] [bp-10h] int v48; // [sp+90h] [bp-Ch] cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v32); v3 = (cocos2d::CCPoint *)cocos2d::CCMenu::create(WinSize); *(this + 111) = v3; (*(void (__fastcall **)(_DWORD, cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v3, 10); v4 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), v22); v37 = 0; v36 = TouchControlEditLayer::onOK; v5 = CCMenuItemSpriteExtra::create((int)v4, 0, (int)this, (int)TouchControlEditLayer::onOK, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v5); v28 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v5 + 92); v30 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, (float)(v32 * 0.5) - 40.0, v33 - 30.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v30); v28(v5, v45); v6 = ButtonSprite::create( (ButtonSprite *)"Reset", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_05.png", COERCE_CONST_CHAR_(30.0), v23); v39 = 0; v38 = TouchControlEditLayer::onReset; v7 = CCMenuItemSpriteExtra::create((int)v6, 0, (int)this, (int)TouchControlEditLayer::onReset, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v7); v29 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 92); v8 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 80.0, 0.0); cocos2d::CCPoint::operator+(v45, v8, v44); v29(v7, v45); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "ModeB", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, 88.0, v33 - 30.0); SetupTriggerPopup::createToggleValueControl((int)this, 3, (int)&v46, (const cocos2d::CCPoint *)v45, 1, 0, 0, 1.0); std::string::~string((int)&v46); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "Snap", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, 132.0, v33 - 30.0); SetupTriggerPopup::createToggleValueControl((int)this, 4, (int)&v46, (const cocos2d::CCPoint *)v45, 1, 0, 0, 1.0); std::string::~string((int)&v46); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "Split", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v32 - 132.0, v33 - 30.0); SetupTriggerPopup::createToggleValueControl((int)this, 5, (int)&v46, (const cocos2d::CCPoint *)v45, 1, 0, 0, 1.0); std::string::~string((int)&v46); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "JumpL", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v32 - 88.0, v33 - 30.0); SetupTriggerPopup::createToggleValueControl((int)this, 6, (int)&v46, (const cocos2d::CCPoint *)v45, 1, 0, 2, 1.0); std::string::~string((int)&v46); if ( !*(this + 179) ) { v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "Dual", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v32 - 40.0, v33 - 30.0); SetupTriggerPopup::createToggleValueControl((int)this, 7, (int)&v46, (const cocos2d::CCPoint *)v45, 1, 0, 0, 1.0); std::string::~string((int)&v46); } v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "Opacity:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v32 * 0.5, v33 - 70.0); SetupTriggerPopup::createValueControlAdvanced( this, 1, (unsigned __int8 *)&v46, (int)v45, 1058642330, 0, 1, 4, 0, 0, 1065353216, 0, 1, 1, 2, 0); std::string::~string((int)&v46); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, "Scale:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, v32 * 0.5, v33 - 95.0); SetupTriggerPopup::createValueControlAdvanced( this, 2, (unsigned __int8 *)&v46, (int)v45, 1058642330, 0, 1, 4, 0, 1045220557, 0x40000000, 0, 1, 1, 2, 0); std::string::~string((int)&v46); if ( *(this + 179) ) { v11 = ButtonSprite::create( (ButtonSprite *)"Global", (const char *)&word_32, 0, 0.7, 1, "bigFont.fnt", "GJ_button_04.png", (const char *)0x41D00000, v24); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v11 + 80))(v11, 1061997773); v43 = 0; v42 = TouchControlEditLayer::onApplyGlobal; v10 = CCMenuItemSpriteExtra::create((int)v11, 0, (int)this, (int)TouchControlEditLayer::onApplyGlobal, 0); } else { v9 = ButtonSprite::create( (ButtonSprite *)"Slots", (const char *)&word_32, 0, 0.7, 1, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41D00000, v24); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v9 + 80))(v9, 1061997773); v41 = 0; v40 = TouchControlEditLayer::onSlots; v10 = CCMenuItemSpriteExtra::create((int)v9, 0, (int)this, (int)TouchControlEditLayer::onSlots, 0); } v12 = v10; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v10); v13 = *(this + 111); v14 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, 40.0, v33 - 30.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v13); v14(v12, v45); v15 = ButtonSprite::create( (ButtonSprite *)"Copy", (const char *)&word_32, 0, 0.5, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(26.0), v25); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v15 + 80))(v15, 1061997773); v44[1] = 0; v44[0] = TouchControlEditLayer::onCopy; v16 = CCMenuItemSpriteExtra::create((int)v15, 0, (int)this, (int)TouchControlEditLayer::onCopy, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v16); v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v16 + 92); v31 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, 40.0, v33 - 54.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v45, v31); v27(v16, v45); v17 = ButtonSprite::create( (ButtonSprite *)"Paste", (const char *)&word_32, 0, 0.5, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(26.0), v26); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v17 + 80))(v17, 1061997773); v45[1] = 0; v45[0] = TouchControlEditLayer::onPaste; v18 = CCMenuItemSpriteExtra::create((int)v17, 0, (int)this, (int)TouchControlEditLayer::onPaste, 0); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v18); v19 = *(this + 111); v20 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 40.0, v33 - 78.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v35, v19); return v20(v18, v35); }
GD Web Decomp Icon

GD Web Decomp

Raw Source