// // SetupObjectOptions2Popup::init from 0x50cef4 to 0x50d17c (648 bytes) // // 1 xrefs: // > SetupObjectOptions2Popup::create @ 0x50d2fa // // 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 SetupObjectOptions2Popup::init(SetupObjectOptions2Popup *a1, GameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 cocos2d::CCPoint v6; // r2 int v8; // [sp+Ch] [bp-58h] _BYTE v9[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v10; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v11; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v12; // [sp+4Ch] [bp-18h] BYREF _BYTE v13[8]; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, (EffectGameObject *)a2, a3, 320.0, 200.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); a1->m_disableTextDelegate = 1; sub_776584((int)v13, "Config 2"); SetupTriggerPopup::addTitle(a1, (std::string)v13); sub_774008(v13); sub_776584((int)v13, "OK"); SetupTriggerPopup::addCloseButton(a1, (std::string)v13); sub_774008(v13); sub_776584((int)&v12, "Help"); sub_776584( (int)v13, "Enter Channel is used to set a specific enter effect.\n" "Material is used to link with specific events.\n" "ControlID allows you to reference specific objects when using remapping."); SetupTriggerPopup::addHelpButton(a1, (std::string)&v12, (std::string)v13, 1.0); sub_774008(v13); sub_774008(&v12); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v10, v5); cocos2d::CCPoint::CCPoint(&v11, v10.width * 0.5, (float)(v10.height * 0.5) + 30.0); sub_776584((int)v9, "Enter Channel:"); cocos2d::CCPoint::CCPoint(&v12, -80.0, 0.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 343, (int)v9, (int)v13, 0.7, 1, 3, 6, 1, nullptr, 0.0, 0, 0, 0, 2, 0); sub_774008(v9); cocos2d::CCPoint::CCPoint(&v12, -5.0, 0.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); sub_776584((int)v9, (char *)&unk_939830); LODWORD(v6.x) = v13; v6.y = 0.8; SetupTriggerPopup::createPlusButton(a1, 343, v6, COERCE_FLOAT(v9), 0, 0, v8); sub_774008(v9); sub_776584((int)v9, "Material:"); cocos2d::CCPoint::CCPoint(&v12, 80.0, 0.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 446, (int)v9, (int)v13, 0.7, 1, 3, 6, 1, nullptr, 0.0, 0, 0, 0, 2, 0); sub_774008(v9); if ( a1->m_effectObjects ) { sub_776584((int)v9, "ControlID:"); cocos2d::CCPoint::CCPoint(&v12, 80.0, -55.0); cocos2d::CCPoint::operator+(v13, &v11, &v12); SetupTriggerPopup::createValueControlAdvanced( (int)a1, 534, (int)v9, (int)v13, 0.7, 1, 3, 6, 1, nullptr, 0.0, 0, 0, 0, 2, 0); sub_774008(v9); } SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source