// // TouchControlEditLayer::buildHud from 0xd05438 to 0xd05cb0 (2168 bytes) // // 2 xrefs: // > TouchControlEditLayer::init @ 0xd06980 // > @ 0xb2090 // // 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 13:06:56 +0000 // __int64 __fastcall TouchControlEditLayer::buildHud(TouchControlEditLayer *this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCMenu *WinSize; // x0 __int64 v4; // x0 const char *v5; // x6 __int64 v6; // x0 __int64 v7; // x23 cocos2d::CCNode *v8; // x28 void (__fastcall *v9)(__int64, __int64 *); // x27 const char *v10; // x6 __int64 v11; // x0 __int64 v12; // x26 __int64 v13; // x0 __int64 (__fastcall *v14)(__int64); // x1 void (__fastcall *v15)(__int64, __int64 *); // x23 __int64 v16; // x27 const char *v17; // x6 __int64 v18; // x25 TouchControlEditLayer *v19; // x2 __int64 v20; // x0 __int64 (__fastcall *v21)(TouchControlEditLayer *__hidden, cocos2d::CCObject *); // x3 __int64 v22; // x25 cocos2d::CCNode *v23; // x27 void (__fastcall *v24)(__int64, __int64 *); // x26 const char *v25; // x6 __int64 v26; // x25 __int64 v27; // x25 cocos2d::CCNode *v28; // x27 void (__fastcall *v29)(__int64, __int64 *); // x26 const char *v30; // x6 __int64 v31; // x21 __int64 v32; // x21 cocos2d::CCNode *v33; // x23 void (__fastcall *v34)(__int64, __int64 *); // x19 __int64 v36; // x25 __int64 v37; // [xsp+B8h] [xbp+88h] BYREF _BYTE v38[8]; // [xsp+C0h] [xbp+90h] BYREF __int64 v39; // [xsp+C8h] [xbp+98h] BYREF __int64 v40; // [xsp+D0h] [xbp+A0h] BYREF __int64 v41; // [xsp+D8h] [xbp+A8h] void *v42; // [xsp+E0h] [xbp+B0h] v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize(&v37, v2); v4 = cocos2d::CCMenu::create(WinSize); *((_QWORD *)this + 69) = v4; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v4, 10); v6 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v5, 30.0); v7 = CCMenuItemSpriteExtra::create(v6, 0, (__int64)this, (__int64)TouchControlEditLayer::onOK, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v7); v8 = *((cocos2d::CCNode **)this + 69); v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, (float)(*(float *)&v37 * 0.5) + -40.0, *((float *)&v37 + 1) - 30.0); cocos2d::CCNode::convertToNodeSpace(&v39, v8, (const cocos2d::CCPoint *)v38); v9(v7, &v39); v11 = ButtonSprite::create( (ButtonSprite *)"Reset", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_05.png", v10, 30.0); v12 = CCMenuItemSpriteExtra::create(v11, 0, (__int64)this, (__int64)TouchControlEditLayer::onReset, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v12); v13 = v7; v14 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL); v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); v16 = v14(v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 80.0, 0.0); cocos2d::CCPoint::operator+(&v39, v16); v15(v12, &v39); v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "ModeB", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, 88.0, *((float *)&v37 + 1) - 30.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 3u, &v40, (const cocos2d::CCPoint *)&v39, 1, 0, 0, 1.0); if ( (v40 & 1) != 0 ) operator delete(v42); v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "Snap", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, 132.0, *((float *)&v37 + 1) - 30.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 4u, &v40, (const cocos2d::CCPoint *)&v39, 1, 0, 0, 1.0); if ( (v40 & 1) != 0 ) operator delete(v42); v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "Split", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, *(float *)&v37 - 132.0, *((float *)&v37 + 1) - 30.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 5u, &v40, (const cocos2d::CCPoint *)&v39, 1, 0, 0, 1.0); if ( (v40 & 1) != 0 ) operator delete(v42); v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "JumpL", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, *(float *)&v37 - 88.0, *((float *)&v37 + 1) - 30.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 6u, &v40, (const cocos2d::CCPoint *)&v39, 1, 0, 2, 1.0); if ( (v40 & 1) != 0 ) { operator delete(v42); if ( *((_QWORD *)this + 127) ) goto LABEL_9; } else if ( *((_QWORD *)this + 127) ) { goto LABEL_9; } v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "Dual", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, *(float *)&v37 - 40.0, *((float *)&v37 + 1) - 30.0); SetupTriggerPopup::createToggleValueControl((__int64)this, 7u, &v40, (const cocos2d::CCPoint *)&v39, 1, 0, 0, 1.0); if ( (v40 & 1) != 0 ) operator delete(v42); LABEL_9: v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "Opacity:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, *(float *)&v37 * 0.5, *((float *)&v37 + 1) - 70.0); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 1, (char *)&v40, (__int64)&v39, 0, 1, 4, 0, 0.6, 0.0, 1.0, 0, 1, 1, 2, 0); if ( (v40 & 1) != 0 ) operator delete(v42); v40 = 0; v41 = 0; v42 = nullptr; std::string::__init(&v40, "Scale:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, *(float *)&v37 * 0.5, *((float *)&v37 + 1) - 95.0); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 2, (char *)&v40, (__int64)&v39, 0, 1, 4, 0, 0.6, 0.2, 2.0, 0, 1, 1, 2, 0); if ( (v40 & 1) != 0 ) { operator delete(v42); if ( *((_QWORD *)this + 127) ) goto LABEL_13; LABEL_16: v36 = ButtonSprite::create( (ButtonSprite *)"Slots", (const char *)&dword_30 + 2, 0, 1, 0.7, "bigFont.fnt", "GJ_button_01.png", v17, 26.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v36 + 160LL))(v36, 0.8); v19 = this; v20 = v36; v21 = TouchControlEditLayer::onSlots; goto LABEL_14; } if ( !*((_QWORD *)this + 127) ) goto LABEL_16; LABEL_13: v18 = ButtonSprite::create( (ButtonSprite *)"Global", (const char *)&dword_30 + 2, 0, 1, 0.7, "bigFont.fnt", "GJ_button_04.png", v17, 26.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.8); v19 = this; v20 = v18; v21 = TouchControlEditLayer::onApplyGlobal; LABEL_14: v22 = CCMenuItemSpriteExtra::create(v20, 0, (__int64)v19, (__int64)v21, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v22); v23 = *((cocos2d::CCNode **)this + 69); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 40.0, *((float *)&v37 + 1) - 30.0); cocos2d::CCNode::convertToNodeSpace(&v39, v23, (const cocos2d::CCPoint *)v38); v24(v22, &v39); v26 = ButtonSprite::create( (ButtonSprite *)"Copy", (const char *)&dword_30 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_04.png", v25, 26.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.8); v27 = CCMenuItemSpriteExtra::create(v26, 0, (__int64)this, (__int64)TouchControlEditLayer::onCopy, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v27); v28 = *((cocos2d::CCNode **)this + 69); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 40.0, *((float *)&v37 + 1) - 54.0); cocos2d::CCNode::convertToNodeSpace(&v39, v28, (const cocos2d::CCPoint *)v38); v29(v27, &v39); v31 = ButtonSprite::create( (ButtonSprite *)"Paste", (const char *)&dword_30 + 2, 0, 1, 0.5, "bigFont.fnt", "GJ_button_04.png", v30, 26.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.8); v32 = CCMenuItemSpriteExtra::create(v31, 0, (__int64)this, (__int64)TouchControlEditLayer::onPaste, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v32); v33 = *((cocos2d::CCNode **)this + 69); v34 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 40.0, *((float *)&v37 + 1) - 78.0); cocos2d::CCNode::convertToNodeSpace(&v39, v33, (const cocos2d::CCPoint *)v38); v34(v32, &v39); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source