// // SetupCameraEdgePopup::init from 0xb25610 to 0xb25ea0 (2192 bytes) // // 2 xrefs: // > SetupCameraEdgePopup::create @ 0xb260ec // > @ 0xb51b0 // // 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:01:38 +0000 // __int64 __fastcall SetupCameraEdgePopup::init( cocos2d::CCArray **this, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 const char *v9; // x6 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x26 cocos2d::CCNode *v13; // x28 void (__fastcall *v14)(__int64, __int64 *); // x27 __int64 v15; // x23 cocos2d::CCArray *v16; // x1 cocos2d::CCArray *updated; // x0 cocos2d::CCObject *v18; // x0 cocos2d::CCNode *v19; // x27 __int64 v20; // x28 cocos2d::CCObject *ToggleButton; // x28 cocos2d::CCNode *v22; // x27 cocos2d::CCObject *v23; // x27 cocos2d::CCObject *v24; // x26 __int64 v25; // x23 cocos2d::CCObject *v26; // x21 const char *v27; // x6 __int64 v28; // x0 __int64 v29; // x21 cocos2d::CCNode *v30; // x25 void (__fastcall *v31)(__int64, __int64 *); // x23 __int64 v32; // [xsp+B8h] [xbp+88h] __int64 v33; // [xsp+C0h] [xbp+90h] cocos2d::CCNode *v34; // [xsp+C0h] [xbp+90h] cocos2d::CCNode *v35; // [xsp+C0h] [xbp+90h] unsigned __int8 v36; // [xsp+CCh] [xbp+9Ch] unsigned __int8 v37; // [xsp+CCh] [xbp+9Ch] unsigned __int8 v38; // [xsp+CCh] [xbp+9Ch] unsigned __int8 v39; // [xsp+CCh] [xbp+9Ch] __int64 v40; // [xsp+D8h] [xbp+A8h] BYREF _BYTE v41[8]; // [xsp+E0h] [xbp+B0h] BYREF _BYTE v42[8]; // [xsp+E8h] [xbp+B8h] BYREF _BYTE v43[8]; // [xsp+F0h] [xbp+C0h] BYREF __int64 v44; // [xsp+F8h] [xbp+C8h] BYREF __int64 v45; // [xsp+100h] [xbp+D0h] BYREF __int64 v46[2]; // [xsp+108h] [xbp+D8h] BYREF void *v47; // [xsp+118h] [xbp+E8h] __int64 v48; // [xsp+120h] [xbp+F0h] BYREF __int64 v49; // [xsp+128h] [xbp+F8h] void *v50; // [xsp+130h] [xbp+100h] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 300.0, 240.0, 1u, 0.0); v5 = v4; if ( v4 ) { v7 = (cocos2d::CCDirector *)(*((__int64 (__fastcall **)(cocos2d::CCArray **))*this + 170))(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v40, v8); v48 = 0; v49 = 0; v50 = nullptr; std::string::__init(&v48, "Setup Camera Edge", 0x11u); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v48); if ( (v48 & 1) != 0 ) operator delete(v50); v10 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v9, 30.0); v11 = CCMenuItemSpriteExtra::create(v10, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v11); v46[0] = 0; v46[1] = 0; v47 = nullptr; std::string::__init(v46, "Help", 4u); v48 = 0; v49 = 0; v50 = nullptr; std::string::__init( &v48, "Makes one of the camera's edges a specified target object.\n" "Use another trigger with Unlock (Target ID 0) to reset.", 0x82u); v12 = InfoAlertButton::create((char *)v46, (char *)&v48, 1.0); if ( (v48 & 1) != 0 ) operator delete(v50); if ( (v46[0] & 1) != 0 ) operator delete(v47); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v12); v13 = *(this + 69); v14 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v44, 18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v40 * 0.5)), (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v40 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(&v45, v13, (const cocos2d::CCPoint *)&v44); v14(v12, &v45); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v41, (float)(*(float *)&v40 * 0.5) + -30.0, (float)(*((float *)&v40 + 1) * 0.5) + -20.0); v48 = 0; v49 = 0; v50 = nullptr; std::string::__init(&v48, "Target ID", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, (const cocos2d::CCPoint *)v41); v15 = IDNameInput::create(this, this + 68, 1, 51, &v48, &v45, 6, 0, 1.0, 0, 0); if ( (v48 & 1) != 0 ) operator delete(v50); if ( v15 ) v16 = *(cocos2d::CCArray **)(v15 + 384); else v16 = nullptr; *(this + 127) = v16; updated = (cocos2d::CCArray *)SetupCameraEdgePopup::updateTextInputLabel((SetupCameraEdgePopup *)this); v18 = (cocos2d::CCObject *)cocos2d::CCArray::create(updated); *(this + 129) = v18; cocos2d::CCObject::retain(v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, *(float *)&v40 * 0.5, (float)(*((float *)&v40 + 1) * 0.5) + 50.0); v48 = 0; v49 = 0; v50 = nullptr; std::string::__init(&v48, "Left", 4u); v19 = *(this + 69); v36 = *((_DWORD *)this + 257) == 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, -75.0, 0.0); cocos2d::CCPoint::operator+(&v44, v42); v20 = (__int64)*(this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 0.0, 2.0); ToggleButton = GameToolbox::createToggleButton( (__int64)&v48, (const char *)SetupCameraEdgePopup::onCameraEdge, 0, v36, v19, (const cocos2d::CCPoint *)&v44, (__int64)this, v20, 0.6, 0.35, 0.0, (float *)&v45, "bigFont.fnt", 1, 0, nullptr); if ( (v48 & 1) != 0 ) operator delete(v50); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)ToggleButton + 72LL))(ToggleButton, 1); *((_BYTE *)ToggleButton + 393) = 1; v48 = 0; v49 = 0; v50 = nullptr; std::string::__init(&v48, "Right", 5u); v22 = *(this + 69); v37 = *((_DWORD *)this + 257) == 2; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, -25.0, 0.0); cocos2d::CCPoint::operator+(&v44, v42); v33 = (__int64)*(this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 0.0, 2.0); v23 = GameToolbox::createToggleButton( (__int64)&v48, (const char *)SetupCameraEdgePopup::onCameraEdge, 0, v37, v22, (const cocos2d::CCPoint *)&v44, (__int64)this, v33, 0.6, 0.35, 0.0, (float *)&v45, "bigFont.fnt", 1, 0, nullptr); if ( (v48 & 1) != 0 ) operator delete(v50); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v23 + 72LL))(v23, 2); *((_BYTE *)v23 + 393) = 1; v48 = 0; v49 = 0; v50 = nullptr; std::string::__init(&v48, "Up", 2u); v34 = *(this + 69); v38 = *((_DWORD *)this + 257) == 3; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 25.0, 0.0); cocos2d::CCPoint::operator+(&v44, v42); v32 = (__int64)*(this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 0.0, 2.0); v24 = GameToolbox::createToggleButton( (__int64)&v48, (const char *)SetupCameraEdgePopup::onCameraEdge, 0, v38, v34, (const cocos2d::CCPoint *)&v44, (__int64)this, v32, 0.6, 0.35, 0.0, (float *)&v45, "bigFont.fnt", 1, 0, nullptr); if ( (v48 & 1) != 0 ) operator delete(v50); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v24 + 72LL))(v24, 3); *((_BYTE *)v24 + 393) = 1; v48 = 0; v49 = 0; v50 = nullptr; std::string::__init(&v48, "Down", 4u); v35 = *(this + 69); v39 = *((_DWORD *)this + 257) == 4; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 75.0, 0.0); cocos2d::CCPoint::operator+(&v44, v42); v25 = (__int64)*(this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, 0.0, 2.0); v26 = GameToolbox::createToggleButton( (__int64)&v48, (const char *)SetupCameraEdgePopup::onCameraEdge, 0, v39, v35, (const cocos2d::CCPoint *)&v44, (__int64)this, v25, 0.6, 0.35, 0.0, (float *)&v45, "bigFont.fnt", 1, 0, nullptr); if ( (v48 & 1) != 0 ) operator delete(v50); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v26 + 72LL))(v26, 4); *((_BYTE *)v26 + 393) = 1; cocos2d::CCArray::addObject(*(this + 129), ToggleButton); cocos2d::CCArray::addObject(*(this + 129), v23); cocos2d::CCArray::addObject(*(this + 129), v24); cocos2d::CCArray::addObject(*(this + 129), v26); v28 = ButtonSprite::create( (ButtonSprite *)"Unlock", (const char *)&qword_20 + 3, 0, 1, 0.8, "goldFont.fnt", "GJ_button_05.png", v27, 30.0); v29 = CCMenuItemSpriteExtra::create(v28, 0, (__int64)this, (__int64)SetupCameraEdgePopup::onUnlockEdge, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v29); v30 = *(this + 69); v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v44, (float)(*(float *)&v40 * 0.5) + 100.0, (float)(*((float *)&v40 + 1) * 0.5) + -20.0); cocos2d::CCNode::convertToNodeSpace(&v45, v30, (const cocos2d::CCPoint *)&v44); v31(v29, &v45); SetupTriggerPopup::createMultiTriggerItemsDefault((SetupTriggerPopup *)this); *((_BYTE *)this + 744) = 0; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source