// // SetupAudioTriggerPopup::addProxVolControls from 0x5753bc to 0x575ac0 (1796 bytes) // // 2 xrefs: // > SetupSFXPopup::init @ 0x57695a // > SetupSFXEditPopup::init @ 0x577300 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SetupAudioTriggerPopup::addProxVolControls(SetupAudioTriggerPopup *a1, int a2) { cocos2d::CCDirector *v4; // r0 int v5; // r7 cocos2d::CCArray *v6; // r0 cocos2d::CCArray *v7; // r0 int v8; // s19 cocos2d::CCArray *PageContainer; // r11 char *v10; // r1 int v11; // r6 char *v12; // r1 ButtonSprite *v13; // r8 char *v14; // r2 ButtonSprite *v15; // r0 cocos2d::CCObject *v16; // r6 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10 float v18; // s18 int v19; // r0 cocos2d::CCMenu *m_buttonMenu; // r0 float v21; // s15 cocos2d::CCMenu *v22; // r10 bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // r8 void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // r4 float v25; // r0 bool v26; // [sp+10h] [bp-4Ch] cocos2d::CCSprite *v27; // [sp+50h] [bp-Ch] BYREF cocos2d::CCSize v28; // [sp+54h] [bp-8h] BYREF cocos2d::CCPoint v29; // [sp+5Ch] [bp+0h] BYREF cocos2d::CCPoint v30; // [sp+64h] [bp+8h] BYREF cocos2d::CCPoint v31; // [sp+6Ch] [bp+10h] BYREF cocos2d::CCPoint v32; // [sp+74h] [bp+18h] BYREF cocos2d::CCPoint v33; // [sp+7Ch] [bp+20h] BYREF v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v28, v4); cocos2d::CCPoint::CCPoint(&v29, v28.width * 0.5, v28.height * 0.5); cocos2d::CCPoint::CCPoint(&v30, v28.width * 0.5, (float)(v28.height * 0.5) + 42.0); sub_776584((int)&v31, "Group ID 1:"); cocos2d::CCPoint::CCPoint(&v32, -80.0, 80.0); cocos2d::CCPoint::operator+(&v33, &v29, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 1, Int, 10, 1, nullptr, 9999.0, a2, 0, 0, 0, 0); sub_774008(&v31); sub_776584((int)&v31, "Group ID 2:"); cocos2d::CCPoint::CCPoint(&v32, 80.0, 80.0); cocos2d::CCPoint::operator+(&v33, &v29, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 71, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 1, Uint, 10, 1, nullptr, 9999.0, a2, 9, 0, 0, 0); sub_774008(&v31); sub_776584((int)&v31, "VolNear:"); cocos2d::CCPoint::CCPoint(&v32, -91.0, -0.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 421, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 1.0, a2, 0, 1, 2, 0); sub_774008(&v31); sub_776584((int)&v31, "MinDist:"); cocos2d::CCPoint::CCPoint(&v32, 91.0, -0.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 424, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, a2, 0, 1, 0, 0); sub_774008(&v31); sub_776584((int)&v31, "VolMed:"); cocos2d::CCPoint::CCPoint(&v32, -91.0, -30.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 422, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 1.0, a2, 0, 1, 2, 0); sub_774008(&v31); sub_776584((int)&v31, "Dist2:"); cocos2d::CCPoint::CCPoint(&v32, 91.0, -30.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 425, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, a2, 0, 1, 0, 0); sub_774008(&v31); sub_776584((int)&v31, "VolFar:"); cocos2d::CCPoint::CCPoint(&v32, -91.0, -60.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 423, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 1.0, a2, 0, 1, 2, 0); sub_774008(&v31); sub_776584((int)&v31, "Dist3:"); cocos2d::CCPoint::CCPoint(&v32, 91.0, -60.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 426, (int)&v31, &v33, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, a2, 0, 1, 0, 0); sub_774008(&v31); sub_776584((int)&v31, "P1"); cocos2d::CCPoint::CCPoint(&v32, -170.0, -95.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createToggleValueControl(a1, 138, (int)&v31, &v33, 0, a2, 0, 1.0); sub_774008(&v31); sub_776584((int)&v31, "P2"); cocos2d::CCPoint::CCPoint(&v32, -110.0, -95.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createToggleValueControl(a1, 200, (int)&v31, &v33, 0, a2, 0, 1.0); sub_774008(&v31); sub_776584((int)&v31, "Cam"); cocos2d::CCPoint::CCPoint(&v32, -50.0, -95.0); cocos2d::CCPoint::operator+(&v33, &v30, &v32); SetupTriggerPopup::createToggleValueControl(a1, 428, (int)&v31, &v33, 0, a2, 0, 1.0); v5 = 0; v6 = (cocos2d::CCArray *)sub_774008(&v31); v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); a1->m_proximityButtons = v7; cocos2d::CCObject::retain(v7); v8 = (int)a1->getValue(a1, 458); PageContainer = SetupTriggerPopup::getPageContainer(a1, a2); do { v27 = (cocos2d::CCSprite *)&unk_ACDDA8; switch ( v5 ) { case 1: v10 = "edit_areaModeBtn01_001.png"; goto LABEL_4; case 2: sub_7753D4((int)&v27, "edit_areaModeBtn03_001.png"); v11 = 1127481344; break; case 3: v10 = "edit_areaModeBtn03_001.png"; goto LABEL_4; case 4: v12 = "edit_areaModeBtn01_001.png"; goto LABEL_9; case 5: v12 = "edit_areaModeBtn03_001.png"; LABEL_9: sub_7753D4((int)&v27, v12); v11 = 1119092736; break; case 6: sub_7753D4((int)&v27, "edit_areaModeBtn03_001.png"); v11 = -1028390912; break; default: v10 = "edit_areaModeBtn04_001.png"; LABEL_4: sub_7753D4((int)&v27, v10); v11 = 0; break; } v13 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((const char *)v27); ((void (__fastcall *)(ButtonSprite *, int))v13->setRotation)(v13, v11); if ( v8 == v5 ) 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, v26); v33.y = 0.0; LODWORD(v33.x) = SetupAudioTriggerPopup::onProxMode; v16 = CCMenuItemSpriteExtra::create( v15, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupAudioTriggerPopup::onProxMode, (unsigned int)a1)); v16->setTag(v16, v5); cocos2d::CCArray::addObject(PageContainer, v16); cocos2d::CCArray::addObject(a1->m_proximityButtons, v16); ((void (__fastcall *)(ButtonSprite *, int))v13->setScale)(v13, 1072064102); setPosition = v13->setPosition; v18 = *(float *)((int (__fastcall *)(cocos2d::CCObject *))v16->__vftable[3].setTag)(v16); v19 = ((int (__fastcall *)(cocos2d::CCObject *))v16->__vftable[3].setTag)(v16); cocos2d::CCPoint::CCPoint(&v32, v18 * 0.5, *(float *)(v19 + 4) * 0.5); setPosition(v13, &v32); v16->__vftable[2].copyWithZone(v16, (cocos2d::CCZone *)1058642330); m_buttonMenu = a1->m_buttonMenu; v16[6].m_uID = 1058642330; m_buttonMenu->addChild(m_buttonMenu, (cocos2d::CCNode *)v16); v21 = 0.0; v22 = a1->m_buttonMenu; isEqual = v16->__vftable[2].isEqual; if ( v5 >= 4 ) v21 = -30.0; cocos2d::CCPoint::CCPoint( &v31, (float)((float)(v28.width * 0.5) + 60.0) + (float)((float)(v5 & 3) * 30.0), (float)((float)(v28.height * 0.5) - 54.0) + v21); cocos2d::CCNode::convertToNodeSpace(&v32, v22, &v31); isEqual(v16, (const cocos2d::CCObject *)&v32); ++v5; sub_774008(&v27); } while ( v5 != 7 ); toggleGroup = a1->toggleGroup; v25 = COERCE_FLOAT(((int (__fastcall *)(SetupAudioTriggerPopup *, int))a1->getValue)(a1, 428)); toggleGroup(a1, 428, v25 != 0.0); SetupAudioTriggerPopup::updateSpecialGroup(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source