// // SetupCameraModePopup::init from 0xb461bc to 0xb469f8 (2108 bytes) // // 2 xrefs: // > SetupCameraModePopup::create @ 0xb46c40 // > @ 0xf98c8 // // 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:54 +0000 // __int64 __fastcall SetupCameraModePopup::init(SetupCameraModePopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCArray *v4; // x0 unsigned int v5; // w24 cocos2d::CCObject *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x0 const char *v11; // x2 __int64 v12; // x21 void (__fastcall *v13)(__int64, __int64 *); // x27 const char *v14; // x6 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x26 cocos2d::CCNode *v18; // x28 void (__fastcall *v19)(__int64, __int64 *); // x27 __int64 v20; // kr00_8 cocos2d::CCNode *v21; // x28 __int64 v22; // x27 cocos2d::CCNode *v23; // x28 __int64 v24; // x27 const char *v25; // x2 __int64 v26; // x0 __int64 v27; // x25 void (__fastcall *v28)(__int64, __int64 *); // x27 __int64 v29; // x0 __int64 v30; // x25 void (__fastcall *v31)(__int64, __int64 *); // x27 __int64 Thumb; // x0 const char *v33; // x2 __int64 v34; // x0 __int64 v35; // x23 void (__fastcall *v36)(__int64, __int64 *); // x25 __int64 v37; // x27 __int64 v38; // x0 __int64 v39; // x23 void (__fastcall *v40)(__int64, __int64 *); // x25 __int64 v41; // x26 __int64 v42; // x0 unsigned __int8 v43; // [xsp+A8h] [xbp+78h] unsigned __int8 v44; // [xsp+A8h] [xbp+78h] __int64 v45; // [xsp+A8h] [xbp+78h] __int64 v46; // [xsp+B0h] [xbp+80h] BYREF _BYTE v47[8]; // [xsp+B8h] [xbp+88h] BYREF _BYTE v48[8]; // [xsp+C0h] [xbp+90h] BYREF __int64 v49; // [xsp+C8h] [xbp+98h] BYREF __int64 v50; // [xsp+D0h] [xbp+A0h] BYREF __int64 v51[2]; // [xsp+D8h] [xbp+A8h] BYREF void *v52; // [xsp+E8h] [xbp+B8h] __int64 v53; // [xsp+F0h] [xbp+C0h] BYREF __int64 v54; // [xsp+F8h] [xbp+C8h] void *v55; // [xsp+100h] [xbp+D0h] v4 = (cocos2d::CCArray *)(unsigned __int8)SetupTriggerPopup::init(this, a2, a3, 400.0, 280.0, 1u, 0.0); v5 = (unsigned __int8)v4; if ( (_BYTE)v4 ) { v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v4); *((_QWORD *)this + 127) = v7; cocos2d::CCObject::retain(v7); v8 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)"Path of Light Rank 1"); *((_QWORD *)this + 128) = v8; cocos2d::CCObject::retain(v8); v9 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SetupCameraModePopup *))(*(_QWORD *)this + 1360LL))(this); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(&v46, v10); v12 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Camera Mode", "goldFont.fnt", v11); (*(void (__fastcall **)(SetupCameraModePopup *, __int64))(*(_QWORD *)this + 456LL))(this, v12); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.7); v13 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v50, *(float *)&v46 * 0.5, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v46 + 1) * 0.5)) - 18.0); v13(v12, &v50); v15 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v14, 30.0); v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16); v51[0] = 0; v51[1] = 0; v52 = nullptr; std::string::__init(v51, "Help", 4u); v53 = 0; v54 = 0; v55 = nullptr; std::string::__init( &v53, "Toggles Free Mode. This removes the borders for certain game modes.\n" "Edit Camera Settings allows you to edit camera movement in Free Mode. Padding is how close the pla" "yer has to be to the top or bottom for the camera to follow.\n" "Disable GridSnap removes default snapping to nearest grid space for the camera center.", 0x159u); v17 = InfoAlertButton::create((char *)v51, (char *)&v53, 1.0); if ( (v53 & 1) != 0 ) operator delete(v55); if ( (v51[0] & 1) != 0 ) operator delete(v52); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v17); v18 = *((cocos2d::CCNode **)this + 69); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v49, 18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v46 * 0.5)), (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v46 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(&v50, v18, (const cocos2d::CCPoint *)&v49); v19(v17, &v50); v20 = v46; *((_DWORD *)this + 160) = -1; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v47, (float)(*(float *)&v20 * 0.5) + -120.0, (float)(*((float *)&v20 + 1) * 0.5) + 70.0); v53 = 0; v54 = 0; v55 = nullptr; std::string::__init(&v53, "Free Mode", 9u); v43 = *((_BYTE *)this + 1076); v21 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, (const cocos2d::CCPoint *)v47); v22 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 8.0, 0.0); GameToolbox::createToggleButton( (__int64)&v53, (const char *)SetupCameraModePopup::onUnboundMode, 0, v43, v21, (const cocos2d::CCPoint *)&v50, (__int64)this, v22, 0.8, 0.45, 0.0, (float *)&v49, "bigFont.fnt", 0, 0, nullptr); if ( (v53 & 1) != 0 ) operator delete(v55); v53 = 0; v54 = 0; v55 = nullptr; std::string::__init(&v53, "Edit Camera\nSettings", 0x14u); v44 = *((_BYTE *)this + 1077); v23 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, 150.0, 0.0); cocos2d::CCPoint::operator+(&v49, v47); v24 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, 8.0, 0.0); GameToolbox::createToggleButton( (__int64)&v53, (const char *)SetupCameraModePopup::onEditCameraSettings, 0, v44, v23, (const cocos2d::CCPoint *)&v49, (__int64)this, v24, 0.8, 0.45, 0.0, (float *)&v50, "bigFont.fnt", 0, 0, *((cocos2d::CCArray **)this + 127)); if ( (v53 & 1) != 0 ) operator delete(v55); v53 = 0; v54 = 0; v55 = nullptr; std::string::__init(&v53, "Disable\nGridSnap", 0x10u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v50, (float)((float)(*((float *)this + 183) * 0.5) + (float)(*(float *)&v46 * 0.5)) - 90.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v46 + 1) * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl( (__int64)this, 0x172u, &v53, (const cocos2d::CCPoint *)&v50, 0, 0, 1, 1.0); if ( (v53 & 1) != 0 ) operator delete(v55); v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v25); *((_QWORD *)this + 130) = v26; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v26); v27 = *((_QWORD *)this + 130); v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v50, *(float *)&v46 * 0.5, (float)(*((float *)&v46 + 1) * 0.5) + 20.0); v28(v27, &v50); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 130) + 160LL))(*((_QWORD *)this + 130), 0.8); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 128), *((cocos2d::CCObject **)this + 130)); v29 = Slider::create((int)this, (int)SetupCameraModePopup::sliderChanged, 0); *((_QWORD *)this + 129) = v29; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v29); v30 = *((_QWORD *)this + 129); v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v30 + 184LL); v45 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 130) + 192LL))(*((_QWORD *)this + 130)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 0.0, -30.0); cocos2d::CCPoint::operator+(&v50, v45); v31(v30, &v50); Thumb = Slider::getThumb(*((Slider **)this + 129)); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)Thumb + 72LL))(Thumb, 0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 128), *((cocos2d::CCObject **)this + 129)); SetupCameraModePopup::updateCameraEasingLabel(this); Slider::setValue(*((Slider **)this + 129), (float)((float)*((int *)this + 262) - 1.0) / 39.0); v34 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v33); *((_QWORD *)this + 133) = v34; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v34); v35 = *((_QWORD *)this + 133); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); v37 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 130) + 192LL))(*((_QWORD *)this + 130)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 0.0, -60.0); cocos2d::CCPoint::operator+(&v50, v37); v36(v35, &v50); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 133) + 160LL))(*((_QWORD *)this + 133), 0.8); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 128), *((cocos2d::CCObject **)this + 133)); v38 = Slider::create((int)this, (int)SetupCameraModePopup::sliderChanged, 0); *((_QWORD *)this + 132) = v38; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v38); v39 = *((_QWORD *)this + 132); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); v41 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 133) + 192LL))(*((_QWORD *)this + 133)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, 0.0, -30.0); cocos2d::CCPoint::operator+(&v50, v41); v40(v39, &v50); v42 = Slider::getThumb(*((Slider **)this + 132)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v42 + 72LL))(v42, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 128), *((cocos2d::CCObject **)this + 132)); SetupCameraModePopup::updateCameraPaddingLabel(this); Slider::setValue(*((Slider **)this + 132), *((float *)this + 268)); SetupCameraModePopup::updateItemVisibility((cocos2d::CCArray **)this); (*(void (__fastcall **)(SetupCameraModePopup *))(*(_QWORD *)this + 1432LL))(this); if ( *((_BYTE *)this + 1078) ) SetupTriggerPopup::createMultiTriggerItemsDefaultVertical(this); *((_BYTE *)this + 744) = 0; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source