// // SetupReverbPopup::init from 0x575bc8 to 0x575fa2 (986 bytes) // // 1 xrefs: // > SetupReverbPopup::create @ 0x57601a // // 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 // bool SetupReverbPopup::init(SetupReverbPopup *a1, SFXTriggerGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r10 cocos2d::CCDirector *v5; // r0 cocos2d::CCLabelBMFont *v6; // r0 cocos2d::CCLabelBMFont *m_reverbLabel; // r5 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSprite *v9; // r7 CCMenuItemSpriteExtra *v10; // r9 cocos2d::CCSprite *v11; // r9 CCMenuItemSpriteExtra *v12; // r8 const cocos2d::CCPoint *v13; // r11 cocos2d::CCSprite *v14; // r6 CCMenuItemSpriteExtra *v15; // r11 cocos2d::CCMenu *v16; // r8 void (__fastcall *v17)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 void (__fastcall *v19)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+14h] [bp-60h] void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+14h] [bp-60h] cocos2d::CCMenu *m_buttonMenu; // [sp+18h] [bp-5Ch] cocos2d::CCMenu *v22; // [sp+18h] [bp-5Ch] const cocos2d::CCPoint *v23; // [sp+20h] [bp-54h] cocos2d::CCSize v24; // [sp+2Ch] [bp-48h] BYREF cocos2d::CCPoint v25; // [sp+34h] [bp-40h] BYREF cocos2d::CCPoint v26; // [sp+3Ch] [bp-38h] BYREF cocos2d::CCPoint v27; // [sp+44h] [bp-30h] BYREF cocos2d::CCPoint v28; // [sp+4Ch] [bp-28h] BYREF _DWORD v29[2]; // [sp+54h] [bp-20h] BYREF cocos2d::CCPoint v30; // [sp+5Ch] [bp-18h] BYREF cocos2d::CCPoint v31; // [sp+64h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 320.0, 140.0, 2); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v31, "Edit Global Reverb"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v31); sub_776584((int)&v31, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v31); sub_774008(&v31); sub_776584((int)&v30, "Help"); sub_776584( (int)&v31, "Lets you change the Reverb settings.\n" "The sound engine has one global reverb channel. This means that two sounds with different reverb settings cannot b" "e played simultaneously."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v30, (int)&v31, 1065353216); sub_774008(&v31); sub_774008(&v30); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v24, v5); cocos2d::CCPoint::CCPoint(&v25, v24.width * 0.5, v24.height * 0.5); sub_776584((int)v29, "Enable"); cocos2d::CCPoint::CCPoint(&v30, (float)(a1->m_width * 0.5) - 78.0, 24.0 - (float)(a1->m_height * 0.5)); cocos2d::CCPoint::operator+(&v31, &v25, &v30); SetupTriggerPopup::createToggleValueControl(a1, 503, (int)v29, &v31, 0, 0, 0, 1.0); sub_774008(v29); v6 = cocos2d::CCLabelBMFont::create(); a1->m_reverbLabel = v6; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 1); m_reverbLabel = a1->m_reverbLabel; setPosition = m_reverbLabel->setPosition; cocos2d::CCPoint::CCPoint(&v30, 0.0, 5.0); cocos2d::CCPoint::operator+(&v31, &v25, &v30); setPosition(m_reverbLabel, &v31); v9 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v9, 1); ((void (__fastcall *)(cocos2d::CCSprite *, int))v9->setScale)(v9, 1061997773); v29[0] = SetupReverbPopup::onReverb; v29[1] = 0; v10 = CCMenuItemSpriteExtra::create( v9, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupReverbPopup::onReverb, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v10); v19 = v10->setPosition; m_buttonMenu = a1->m_buttonMenu; v23 = a1->m_reverbLabel->getPosition(a1->m_reverbLabel); cocos2d::CCPoint::CCPoint(&v28, 100.0, 0.0); cocos2d::CCPoint::operator+(&v30, v23, &v28); cocos2d::CCNode::convertToNodeSpace(&v31, m_buttonMenu, &v30); v19(v10, &v31); CCMenuItemSpriteExtra::setSizeMult(v10, 1.4); v10->setTag(v10, 1); v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v11->setScale)(v11, 1061997773); LODWORD(v30.x) = SetupReverbPopup::onReverb; v30.y = 0.0; v12 = CCMenuItemSpriteExtra::create( v11, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupReverbPopup::onReverb, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v12); v20 = v12->setPosition; v22 = a1->m_buttonMenu; v13 = a1->m_reverbLabel->getPosition(a1->m_reverbLabel); cocos2d::CCPoint::CCPoint(&v27, -100.0, 0.0); cocos2d::CCPoint::operator+(&v28, v13, &v27); cocos2d::CCNode::convertToNodeSpace(&v31, v22, &v28); v20(v12, &v31); CCMenuItemSpriteExtra::setSizeMult(v12, 1.4); v12->setTag(v12, 0); SetupReverbPopup::updateReverbLabel(a1); v14 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playMusicBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v14->setScale)(v14, 1063675494); LODWORD(v31.x) = SetupReverbPopup::onPlay; v31.y = 0.0; v15 = CCMenuItemSpriteExtra::create( v14, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupReverbPopup::onPlay, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v15); v16 = a1->m_buttonMenu; v17 = v15->setPosition; cocos2d::CCPoint::CCPoint(&v26, (float)(a1->m_width * 0.5) - 24.0, (float)(a1->m_height * 0.5) - 24.0); cocos2d::CCPoint::operator+(&v27, &v25, &v26); cocos2d::CCNode::convertToNodeSpace(&v28, v16, &v27); v17(v15, &v28); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source