// // SetupSongTriggerPopup::init from 0xaea730 to 0xaeb0a4 (2420 bytes) // // 2 xrefs: // > SetupSongTriggerPopup::create @ 0xaeb314 // > @ 0xde2f8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:01:09 +0000 // __int64 __fastcall SetupSongTriggerPopup::init(SetupSongTriggerPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w24 cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // x0 cocos2d::CCDirector *v8; // x0 float v9; // s9 __int64 v10; // x0 const char *v11; // x1 __int64 v12; // x25 cocos2d::CCObject *v13; // x25 const char *v14; // x1 __int64 v15; // x25 cocos2d::CCObject *v16; // x25 cocos2d::CCNode *v17; // x28 void (__fastcall *v18)(cocos2d::CCObject *, __int64 *); // x27 MusicDownloadManager *v19; // x0 cocos2d::CCArray **v20; // x0 float v21; // s0 int v22; // [xsp+20h] [xbp-10h] int v23; // [xsp+20h] [xbp-10h] cocos2d::CCNode *v24; // [xsp+A0h] [xbp+70h] void (__fastcall *v25)(cocos2d::CCObject *, __int64 *); // [xsp+A8h] [xbp+78h] __int64 v26; // [xsp+B8h] [xbp+88h] BYREF _BYTE v27[8]; // [xsp+C0h] [xbp+90h] BYREF _BYTE v28[8]; // [xsp+C8h] [xbp+98h] BYREF _BYTE v29[8]; // [xsp+D0h] [xbp+A0h] BYREF __int64 v30; // [xsp+D8h] [xbp+A8h] BYREF __int64 v31; // [xsp+E0h] [xbp+B0h] BYREF __int64 v32[2]; // [xsp+E8h] [xbp+B8h] BYREF void *v33; // [xsp+F8h] [xbp+C8h] __int64 v34; // [xsp+100h] [xbp+D0h] BYREF __int64 v35; // [xsp+108h] [xbp+D8h] void *v36; // [xsp+110h] [xbp+E0h] v4 = SetupTriggerPopup::init(this, a2, a3, 440.0, 300.0, 1, 0.0); v5 = v4; if ( v4 ) { SetupTriggerPopup::preSetup(this); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Song Trigger", 0xCu); SetupTriggerPopup::addTitle(this, &v34); if ( (v34 & 1) != 0 ) operator delete(v36); v32[0] = 0; v32[1] = 0; v33 = nullptr; std::string::__init(v32, "Help", 4u); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init( &v34, "Lets you start a specified song.\n" "A single track can be active in each Channel at a time.\n" "Start, End, FadeIn, and FadeOut are in milliseconds.\n" "Prep is used to ensure exact sync to a specified time as there may be some delay loading it normally. Use " "this option on a trigger to prepare the song before you want it to start, and then use Load Prep when you " "want it to start. Note that only one Prep can be active at a time per channel.", 0x1D8u); SetupTriggerPopup::addHelpButton(this, v32, &v34, 1.0); if ( (v34 & 1) != 0 ) operator delete(v36); if ( (v32[0] & 1) != 0 ) operator delete(v33); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v34); if ( (v34 & 1) != 0 ) operator delete(v36); MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal); cocos2d::CCDirector::getWinSize(&v26, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, *(float *)&v26 * 0.5, *((float *)&v26 + 1) * 0.5); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Prep", 4u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v30, (float)(*((float *)this + 183) * 0.5) + -130.0, (float)(*((float *)this + 184) * 0.5) + -20.0); cocos2d::CCPoint::operator+(&v31, v27); SetupTriggerPopup::createToggleValueControl(this, 399, &v34, &v31, 0, 0, 0, 1.0); if ( (v34 & 1) != 0 ) operator delete(v36); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Load\nPrep", 9u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v30, (float)(*((float *)this + 183) * 0.5) + -60.0, (float)(*((float *)this + 184) * 0.5) + -20.0); cocos2d::CCPoint::operator+(&v31, v27); SetupTriggerPopup::createToggleValueControl(this, 400, &v34, &v31, 0, 0, 2, 1.0); if ( (v34 & 1) != 0 ) operator delete(v36); v9 = (*(float (__fastcall **)(SetupSongTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 392); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v31, *(float *)&v26 * 0.5, (float)(*((float *)&v26 + 1) * 0.5) + 55.0); v10 = SongSelectNode::create( (int)v9, 1, 0, 1, (const cocos2d::CCPoint *)&v31, *((_QWORD *)this + 73), *((cocos2d::CCNode **)this + 69), 1); *((_QWORD *)this + 130) = v10; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v10, 5); *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 130) + 416LL) + 520LL) = (char *)this + 1032; SetupSongTriggerPopup::updateLength(this); SetupTriggerPopup::addObjectsToGroup(this, *(cocos2d::CCArray **)(*((_QWORD *)this + 130) + 360LL), 1); SetupTriggerPopup::addObjectsToGroup(this, *(cocos2d::CCArray **)(*((_QWORD *)this + 130) + 376LL), 1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, *(float *)&v26 * 0.5, (float)(*((float *)&v26 + 1) * 0.5) + 10.0); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Volume:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, -91.0, -39.0); cocos2d::CCPoint::operator+(&v31, v28); SetupTriggerPopup::createValueControlAdvanced(this, 406, &v34, &v31, 0, 1, 6, 0, 0.65, 0.0, 2.0, 0, 0, 1, 2, 0); if ( (v34 & 1) != 0 ) operator delete(v36); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Speed:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, 91.0, -39.0); cocos2d::CCPoint::operator+(&v31, v28); LOBYTE(v22) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 404, &v34, &v31, 0, 2, 6, 0, 0.65, -12.0, 12.0, 0, 0, 1, 2, v22); if ( (v34 & 1) != 0 ) operator delete(v36); SetupTriggerPopup::toggleLimitValue(this, 404, 1); SetupTriggerPopup::toggleLimitValue(this, 406, 1); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Loop", 4u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, 38.0, -93.0); cocos2d::CCPoint::operator+(&v31, v28); SetupTriggerPopup::createToggleValueControl(this, 413, &v34, &v31, 0, 0, 0, 1.0); if ( (v34 & 1) != 0 ) operator delete(v36); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Dont\nReset", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, 118.0, -93.0); cocos2d::CCPoint::operator+(&v31, v28); SetupTriggerPopup::createToggleValueControl(this, 595, &v34, &v31, 0, 0, 0, 1.0); if ( (v34 & 1) != 0 ) operator delete(v36); v34 = 0; v35 = 0; v36 = nullptr; std::string::__init(&v34, "Channel:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, -108.0, -93.0); cocos2d::CCPoint::operator+(&v31, v28); LOBYTE(v23) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 432, &v34, &v31, 1, 3, 10, 1, 0.65, 0.0, 4.0, 0, 2, 0, 2, v23); if ( (v34 & 1) != 0 ) operator delete(v36); SetupTriggerPopup::toggleLimitValue(this, 432, 1); SetupAudioTriggerPopup::addTimeControls(this, 1, -25.0); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_pauseEditorBtn_001.png", v11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.6); v13 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v12, 0, (__int64)this, (__int64)SetupSongTriggerPopup::onSavePlaybackPos, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v13 + 72LL))(v13, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v13); v24 = *((cocos2d::CCNode **)this + 69); v25 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v13 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -185.0, -25.0); cocos2d::CCPoint::operator+(&v30, v27); cocos2d::CCNode::convertToNodeSpace(&v31, v24, (const cocos2d::CCPoint *)&v30); v25(v13, &v31); SetupTriggerPopup::addObjectToPage(this, v13, 1); v15 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_pauseEditorBtn_001.png", v14); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, 0.6); v16 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v15, 0, (__int64)this, (__int64)SetupSongTriggerPopup::onSavePlaybackPos, 0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v16 + 72LL))(v16, 1); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v16); v17 = *((cocos2d::CCNode **)this + 69); v18 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, -185.0, -64.0); cocos2d::CCPoint::operator+(&v30, v27); cocos2d::CCNode::convertToNodeSpace(&v31, v17, (const cocos2d::CCPoint *)&v30); v18(v16, &v31); v19 = (MusicDownloadManager *)SetupTriggerPopup::addObjectToPage(this, v16, 1); v20 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(v19); MusicDownloadManager::addMusicDownloadDelegate(v20, (SetupSongTriggerPopup *)((char *)this + 1024)); SetupSongTriggerPopup::updateSongTimeSlider(this); SetupTriggerPopup::createPageButtons(this, (float)(*((float *)this + 183) * 0.5) + 15.0, 1); if ( (*(float (__fastcall **)(SetupSongTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 400) == 0.0 ) { v21 = (*(float (__fastcall **)(SetupSongTriggerPopup *, __int64))(*(_QWORD *)this + 1464LL))(this, 427); SetupTriggerPopup::goToPage(this, (int)v21, 0); } else { SetupSongTriggerPopup::updateApplyPrepare(this, 1); } SetupTriggerPopup::postSetup(this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source