// // SetupAudioTriggerPopup::addProxVolControls from 0x6afe6c to 0x6b063a (1998 bytes) // // 2 xrefs: // > SetupSFXEditPopup::init @ 0x6b1224 // > SetupSFXPopup::init @ 0x6b1f42 // // 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:39 +0000 // int __fastcall SetupAudioTriggerPopup::addProxVolControls(cocos2d::CCArray **this, unsigned int a2) { int v4; // r6 cocos2d::CCArray *v5; // r0 cocos2d::CCObject *v6; // r0 int v7; // s19 char *v8; // r1 const char *v9; // r1 int v10; // r10 char *v11; // r1 cocos2d::CCSprite *v12; // r0 ButtonSprite *v13; // r9 char *v14; // r2 ButtonSprite *v15; // r0 cocos2d::CCObject *v16; // r5 void (__fastcall *v17)(ButtonSprite *, _BYTE *); // r7 float v18; // s18 int v19; // r0 float v20; // s15 const cocos2d::CCPoint *v21; // r10 void (__fastcall *v22)(cocos2d::CCObject *, _BYTE *); // r9 void (__fastcall *v23)(cocos2d::CCArray **, int, bool); // r4 float v24; // r0 float v26; // [sp+14h] [bp-80h] cocos2d::CCArray *PageContainer; // [sp+34h] [bp-60h] float v28; // [sp+50h] [bp-44h] BYREF float v29; // [sp+54h] [bp-40h] _BYTE v30[8]; // [sp+58h] [bp-3Ch] BYREF _BYTE v31[8]; // [sp+60h] [bp-34h] BYREF _BYTE v32[8]; // [sp+68h] [bp-2Ch] BYREF _BYTE v33[8]; // [sp+70h] [bp-24h] BYREF _DWORD v34[2]; // [sp+78h] [bp-1Ch] BYREF int v35; // [sp+80h] [bp-14h] BYREF int v36; // [sp+84h] [bp-10h] cocos2d::CCSprite *v37; // [sp+88h] [bp-Ch] cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, v28 * 0.5, v29 * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v28 * 0.5, (float)(v29 * 0.5) + 42.0); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "Group ID 1:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -80.0, 80.0); cocos2d::CCPoint::operator+(v34, v30, v33); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v35, (int)v34, 0.65, 6, 0, a2, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "Group ID 2:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 80.0, 80.0); cocos2d::CCPoint::operator+(v34, v30, v33); IDNameInput::create((int)this, (int)(this + 110), 1, 71, (int)&v35, (int)v34, 0.65, 6, 9, a2, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "VolNear:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -91.0, -0.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createValueControlAdvanced( this, 421, (unsigned __int8 *)&v35, (int)v34, 1059481190, 0, 1, 6, 0, 0, 1065353216, a2, 0, 1, 2, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "MinDist:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 91.0, -0.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createValueControlAdvanced( this, 424, (unsigned __int8 *)&v35, (int)v34, 1059481190, 0, 2, 6, 0, 0, 1120403456, a2, 0, 1, 0, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "VolMed:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -91.0, -30.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createValueControlAdvanced( this, 422, (unsigned __int8 *)&v35, (int)v34, 1059481190, 0, 1, 6, 0, 0, 1065353216, a2, 0, 1, 2, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "Dist2:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 91.0, -30.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createValueControlAdvanced( this, 425, (unsigned __int8 *)&v35, (int)v34, 1059481190, 0, 2, 6, 0, 0, 1120403456, a2, 0, 1, 0, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "VolFar:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -91.0, -60.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createValueControlAdvanced( this, 423, (unsigned __int8 *)&v35, (int)v34, 1059481190, 0, 1, 6, 0, 0, 1065353216, a2, 0, 1, 2, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "Dist3:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, 91.0, -60.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createValueControlAdvanced( this, 426, (unsigned __int8 *)&v35, (int)v34, 1059481190, 0, 2, 6, 0, 0, 1120403456, a2, 0, 1, 0, 0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -170.0, -95.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v35, (const cocos2d::CCPoint *)v34, 0, a2, 0, 1.0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -110.0, -95.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v35, (const cocos2d::CCPoint *)v34, 0, a2, 0, 1.0); std::string::~string((int)&v35); v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "Cam", 3u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, -50.0, -95.0); cocos2d::CCPoint::operator+(v34, v31, v33); SetupTriggerPopup::createToggleValueControl((int)this, 428, (int)&v35, (const cocos2d::CCPoint *)v34, 0, a2, 0, 1.0); v4 = 0; v5 = (cocos2d::CCArray *)std::string::~string((int)&v35); v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(v5); *(this + 178) = v6; cocos2d::CCObject::retain(v6); v7 = (int)(*((float (__fastcall **)(cocos2d::CCArray **, int))*this + 183))(this, 458); PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(this, a2); do { v35 = 0; v36 = 0; v37 = nullptr; switch ( v4 ) { case 1: v8 = "edit_areaModeBtn01_001.png"; goto LABEL_4; case 2: std::string::assign(&v35, "edit_areaModeBtn03_001.png"); v10 = 1127481344; break; case 3: v8 = "edit_areaModeBtn03_001.png"; goto LABEL_4; case 4: v11 = "edit_areaModeBtn01_001.png"; goto LABEL_9; case 5: v11 = "edit_areaModeBtn03_001.png"; LABEL_9: std::string::assign(&v35, v11); v10 = 1119092736; break; case 6: std::string::assign(&v35, "edit_areaModeBtn03_001.png"); v10 = -1028390912; break; default: v8 = "edit_areaModeBtn04_001.png"; LABEL_4: std::string::assign(&v35, v8); v10 = 0; break; } if ( (v35 & 1) != 0 ) v12 = v37; else v12 = (cocos2d::CCSprite *)((char *)&v35 + 1); v13 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v12, v9); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v13 + 180))(v13, v10); if ( v7 == v4 ) v14 = "GJ_button_02.png"; else v14 = "GJ_button_04.png"; v15 = ButtonSprite::create( v13, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, (_BOOL4)&dword_0 + 1, v14, (const char *)&dword_0 + 1, 0.0, v26); v34[1] = 0; v34[0] = SetupAudioTriggerPopup::onProxMode; v16 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v15, 0, (int)this, (int)SetupAudioTriggerPopup::onProxMode, 0); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v16 + 36))(v16, v4); cocos2d::CCArray::addObject(PageContainer, v16); cocos2d::CCArray::addObject(*(this + 178), v16); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v13 + 80))(v13, 1072064102); v17 = *(void (__fastcall **)(ButtonSprite *, _BYTE *))(*(_DWORD *)v13 + 92); v18 = *(float *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v16 + 164))(v16); v19 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v16 + 164))(v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33, v18 * 0.5, *(float *)(v19 + 4) * 0.5); v17(v13, v33); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v16 + 80))(v16, 1058642330); *((_DWORD *)v16 + 79) = 1058642330; (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v16); v20 = 0.0; v21 = *(this + 111); v22 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v16 + 92); if ( v4 >= 4 ) v20 = -30.0; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v32, (float)((float)(v28 * 0.5) + 60.0) + (float)((float)(v4 & 3) * 30.0), (float)((float)(v29 * 0.5) - 54.0) + v20); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v33, v21); v22(v16, v33); ++v4; std::string::~string((int)&v35); } while ( v4 != 7 ); v23 = *((void (__fastcall **)(cocos2d::CCArray **, int, bool))*this + 169); v24 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCArray **, int))*this + 183))(this, 428)); v23(this, 428, v24 != 0.0); return SetupAudioTriggerPopup::updateSpecialGroup((SetupAudioTriggerPopup *)this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source