// // SetupTimeWarpPopup::init from 0x100502db0 to 0x100503199 (1001 bytes) // // 1 xrefs: // > SetupTimeWarpPopup::create @ 0x100502d65 // // 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 __fastcall SetupTimeWarpPopup::init(SetupTimeWarpPopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool result; // al cocos2d::CCLabelBMFont *v4; // r15 ButtonSprite *v5; // rax CCMenuItemSpriteExtra *v6; // rax __int64 v7; // r14 cocos2d::CCMenu *m_buttonMenu; // r15 cocos2d::CCLabelBMFont *v9; // rax cocos2d::CCLabelBMFont *m_timeWarpLabel; // r14 Slider *v11; // rax Slider *m_timeWarpSlider; // r14 unsigned __int64 *v13; // r15 cocos2d::CCLabelBMFont *v14; // r14 double m_timeWarpMod; // xmm0_8 cocos2d::CCString *v16; // rax const char *CString; // rax char v18; // [rsp+0h] [rbp-80h] unsigned __int64 v19; // [rsp+8h] [rbp-78h] BYREF char v20; // [rsp+10h] [rbp-70h] BYREF char v21[15]; // [rsp+11h] [rbp-6Fh] BYREF void *v22; // [rsp+20h] [rbp-60h] _QWORD v23[2]; // [rsp+28h] [rbp-58h] BYREF void *__p; // [rsp+38h] [rbp-48h] double v25; // [rsp+44h] [rbp-3Ch] BYREF float v26; // [rsp+4Ch] [rbp-34h] BYREF float v27; // [rsp+50h] [rbp-30h] bool v28; // [rsp+57h] [rbp-29h] double v29; // 0:xmm0_8.8 double v30; // 0:xmm0_8.8 result = SetupTriggerPopup::init(a1, a2, a3, 340.0, 200.0, 1); if ( result ) { v28 = result; ((void (__fastcall *)(SetupTimeWarpPopup *))a1->determineStartValues)(a1); cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v29 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v26); v4 = cocos2d::CCLabelBMFont::create_3("Setup TimeWarp Effect", "goldFont.fnt"); ((void (__fastcall *)(SetupTimeWarpPopup *, cocos2d::CCLabelBMFont *, double))a1->addChild)(a1, v4, v29); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v4->setScale)(v4, 0.69999999); sub_10028CBE0((float *)&v25, v26 * 0.5, (float)((float)(a1->m_height * 0.5) + (float)(v27 * 0.5)) + -18.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v4->setPosition)(v4, &v25); v5 = ButtonSprite::create_1("OK", 40, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 30.0); v6 = CCMenuItemSpriteExtra::create(v5, nullptr, a1, (cocos2d::SEL_MenuHandler)0x529uLL); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v6); v20 = 8; strcpy(v21, "Help"); __p = operator new(0x70u); v23[0] = 113; v23[1] = 104; strcpy( (char *)__p, "Lets you warp all time a given amount.\nI need to add more options\nbefore you can do Za Warudo..."); v7 = InfoAlertButton::create(&v20, v23, 1.0); if ( (v23[0] & 1) != 0 ) operator delete(__p); if ( (v20 & 1) != 0 ) operator delete(v22); ((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v7); m_buttonMenu = a1->m_buttonMenu; sub_10028CBE0( (float *)&v19, (float)((float)(v26 * 0.5) - (float)(a1->m_width * 0.5)) + 18.0, (float)((float)(a1->m_height * 0.5) + (float)(v27 * 0.5)) + -18.0); *(cocos2d::CCPoint *)&v30 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v25, (const cocos2d::CCPoint *)m_buttonMenu); (*(void (__fastcall **)(__int64, double *, double))(*(_QWORD *)v7 + 184LL))(v7, &v25, v30); v9 = cocos2d::CCLabelBMFont::create_3(" ", "goldFont.fnt"); a1->m_timeWarpLabel = v9; ((void (__fastcall *)(SetupTimeWarpPopup *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v9); m_timeWarpLabel = a1->m_timeWarpLabel; sub_10028CBE0((float *)&v25, v26 * 0.5, (float)(0.5 * v27) + 20.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))m_timeWarpLabel->setPosition)(m_timeWarpLabel, &v25); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_timeWarpLabel->setScale)( a1->m_timeWarpLabel, 0.80000001); v11 = Slider::create_2(a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)SetupTimeWarpPopup::sliderChanged); a1->m_timeWarpSlider = v11; ((void (__fastcall *)(SetupTimeWarpPopup *, Slider *))a1->addChild)(a1, v11); m_timeWarpSlider = a1->m_timeWarpSlider; v13 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_timeWarpLabel->getPosition)(a1->m_timeWarpLabel); sub_10028CBE0((float *)&v19, 0.0, -23.0); sub_10028CCE0(&v25, v13, &v19); ((void (__fastcall *)(Slider *, double *))m_timeWarpSlider->setPosition)(m_timeWarpSlider, &v25); v14 = a1->m_timeWarpLabel; m_timeWarpMod = a1->m_timeWarpMod; v16 = (cocos2d::CCString *)sub_1007AB580("TimeMod: %.02f", v18); CString = cocos2d::CCString::getCString(v16); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, double))v14->setString)(v14, CString, m_timeWarpMod); Slider::setValue(a1->m_timeWarpSlider, (float)(a1->m_timeWarpMod + -0.1) / 1.9); SetupTriggerPopup::createMultiTriggerItemsDefaultVertical(a1); return v28; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source