// // SetupCameraModePopup::init from 0x6958a8 to 0x695f0c (1636 bytes) // // 1 xrefs: // > SetupCameraModePopup::create @ 0x69611c // // 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:56:14 +0000 // GameManager *__fastcall SetupCameraModePopup::init( SetupCameraModePopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { GameManager *v4; // r0 cocos2d::CCObject *v5; // r0 cocos2d::CCArray *v6; // r0 cocos2d::CCObject *v7; // r0 cocos2d::CCDirector *v8; // r0 const char *v9; // r2 int v10; // r5 void (__fastcall *v11)(int, _DWORD *); // r8 ButtonSprite *v12; // r0 int v13; // r0 int v14; // r9 const cocos2d::CCPoint *v15; // r11 void (__fastcall *v16)(int, _DWORD *); // r10 float v17; // s14 int v18; // r9 const cocos2d::CCPoint *v19; // r11 int v20; // r10 int v21; // r10 const cocos2d::CCPoint *v22; // r11 int v23; // r9 const char *v24; // r2 int v25; // r0 int v26; // r6 void (__fastcall *v27)(int, _DWORD *); // r7 int v28; // r0 int v29; // r11 int Thumb; // r0 const char *v31; // r2 int v32; // r0 int v33; // r9 void (__fastcall *v34)(int, _DWORD *); // r10 int v35; // r11 int v36; // r0 int v37; // r5 void (__fastcall *v38)(int, _BYTE *); // r9 int v39; // r10 int v40; // r0 const char *v41; // r1 float v43; // [sp+10h] [bp-9Ch] GameManager *v44; // [sp+30h] [bp-7Ch] int v45; // [sp+38h] [bp-74h] void (__fastcall *v46)(int, _DWORD *); // [sp+3Ch] [bp-70h] float v47; // [sp+44h] [bp-68h] BYREF float v48; // [sp+48h] [bp-64h] _BYTE v49[8]; // [sp+4Ch] [bp-60h] BYREF _BYTE v50[8]; // [sp+54h] [bp-58h] BYREF _BYTE v51[8]; // [sp+5Ch] [bp-50h] BYREF int v52; // [sp+64h] [bp-48h] int v53; // [sp+68h] [bp-44h] unsigned int (__fastcall *v54)(SetupCameraModePopup *, cocos2d::CCObject *); // [sp+6Ch] [bp-40h] int v55; // [sp+70h] [bp-3Ch] unsigned int (__fastcall *v56)(SetupCameraModePopup *, cocos2d::CCObject *); // [sp+74h] [bp-38h] int v57; // [sp+78h] [bp-34h] _DWORD v58[2]; // [sp+7Ch] [bp-30h] BYREF _DWORD v59[2]; // [sp+84h] [bp-28h] BYREF int v60[3]; // [sp+8Ch] [bp-20h] BYREF int v61; // [sp+98h] [bp-14h] BYREF int v62; // [sp+9Ch] [bp-10h] int v63; // [sp+A0h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 400.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0); v44 = v4; if ( v4 ) { v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v4); *((_DWORD *)this + 178) = v5; v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v5); v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6); *((_DWORD *)this + 179) = v7; cocos2d::CCObject::retain(v7); v8 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SetupCameraModePopup *))(*(_DWORD *)this + 680))(this); cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v47); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Camera Mode", "goldFont.fnt", v9); (*(void (__fastcall **)(SetupCameraModePopup *, int))(*(_DWORD *)this + 228))(this, v10); (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1060320051); v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v59, v47 * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v48 * 0.5)) - 18.0); v11(v10, v59); v12 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v43); v52 = 684; v53 = 1; v13 = CCMenuItemSpriteExtra::create((int)v12, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v13); memset(v60, 0, sizeof(v60)); std::string::__init(v60, "Help", 4u); v61 = 0; v62 = 0; v63 = 0; std::string::__init( &v61, "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); v14 = InfoAlertButton::create((char *)v60, (int)&v61, 1065353216); std::string::~string((int)&v61); std::string::~string((int)v60); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v14); v15 = *((const cocos2d::CCPoint **)this + 111); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v58, (float)((float)(v47 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v48 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v59, v15); v16(v14, v59); v17 = v47; *((_DWORD *)this + 125) = -1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, (float)(v17 * 0.5) - 120.0, (float)(v48 * 0.5) + 70.0); v61 = 0; v62 = 0; v63 = 0; std::string::__init(&v61, "Free Mode", 9u); v55 = 0; v18 = *((unsigned __int8 *)this + 744); v54 = SetupCameraModePopup::onUnboundMode; v19 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, (const cocos2d::CCPoint *)v49); v20 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 8.0, 0.0); GameToolbox::createToggleButton( (int)&v61, (int)v54, v55, v18, v19, (int)v59, (int)this, v20, 0.8, 0.45, 0.0, (int)v58, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)&v61); v61 = 0; v62 = 0; v63 = 0; std::string::__init(&v61, "Edit Camera\nSettings", 0x14u); v57 = 0; v56 = SetupCameraModePopup::onEditCameraSettings; v21 = *((unsigned __int8 *)this + 745); v22 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, 150.0, 0.0); cocos2d::CCPoint::operator+(v58, v49, v51); v23 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, 8.0, 0.0); GameToolbox::createToggleButton( (int)&v61, (int)v56, v57, v21, v22, (int)v58, (int)this, v23, 0.8, 0.45, 0.0, (int)v59, "bigFont.fnt", 0, 0, *((cocos2d::CCArray **)this + 178)); std::string::~string((int)&v61); v61 = 0; v62 = 0; v63 = 0; std::string::__init(&v61, "Disable\nGridSnap", 0x10u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v59, (float)((float)(*((float *)this + 139) * 0.5) + (float)(v47 * 0.5)) - 90.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v48 * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 370, (int)&v61, (const cocos2d::CCPoint *)v59, 0, 0, 1, 1.0); std::string::~string((int)&v61); v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v24); *((_DWORD *)this + 181) = v25; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v25); v26 = *((_DWORD *)this + 181); v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v47 * 0.5, (float)(v48 * 0.5) + 20.0); v27(v26, v59); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 181) + 80))(*((_DWORD *)this + 181), 1061997773); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 179), *((cocos2d::CCObject **)this + 181)); v58[1] = 0; v58[0] = SetupCameraModePopup::sliderChanged; v28 = Slider::create((int)this); *((_DWORD *)this + 180) = v28; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v28); v29 = *((_DWORD *)this + 180); v46 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v29 + 92); v45 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 181) + 96))(*((_DWORD *)this + 181)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, 0.0, -30.0); cocos2d::CCPoint::operator+(v59, v45, v51); v46(v29, v59); Thumb = Slider::getThumb(*((Slider **)this + 180)); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)Thumb + 36))(Thumb, 0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 179), *((cocos2d::CCObject **)this + 180)); SetupCameraModePopup::updateCameraEasingLabel(this); Slider::setValue(*((Slider **)this + 180), (float)((float)*((int *)this + 182) - 1.0) / 39.0); v32 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v31); *((_DWORD *)this + 184) = v32; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v32); v33 = *((_DWORD *)this + 184); v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92); v35 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 181) + 96))(*((_DWORD *)this + 181)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, 0.0, -60.0); cocos2d::CCPoint::operator+(v59, v35, v51); v34(v33, v59); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 184) + 80))(*((_DWORD *)this + 184), 1061997773); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 179), *((cocos2d::CCObject **)this + 184)); v59[0] = SetupCameraModePopup::sliderChanged; v59[1] = 0; v36 = Slider::create((int)this); *((_DWORD *)this + 183) = v36; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v36); v37 = *((_DWORD *)this + 183); v38 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v37 + 92); v39 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 184) + 96))(*((_DWORD *)this + 184)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, 0.0, -30.0); cocos2d::CCPoint::operator+(v51, v39, v50); v38(v37, v51); v40 = Slider::getThumb(*((Slider **)this + 183)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 36))(v40, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 179), *((cocos2d::CCObject **)this + 183)); SetupCameraModePopup::updateCameraPaddingLabel(this, v41); Slider::setValue(*((Slider **)this + 183), *((float *)this + 185)); SetupCameraModePopup::updateItemVisibility((cocos2d::CCArray **)this); (*(void (__fastcall **)(SetupCameraModePopup *))(*(_DWORD *)this + 716))(this); if ( *((_BYTE *)this + 746) ) SetupTriggerPopup::createMultiTriggerItemsDefaultVertical(this); *((_BYTE *)this + 568) = 0; } return v44; }
GD Web Decomp Icon

GD Web Decomp

Raw Source