// // SetupTriggerPopup::createPageButtons from 0x10012e5d0 to 0x10012e834 (612 bytes) // // 15 xrefs: // > SetupAreaMoveTriggerPopup::init @ 0x100034b30 // > SetupAreaTransformTriggerPopup::init @ 0x100036a64 // > SetupAreaRotateTriggerPopup::init @ 0x100037164 // > SetupAreaFadeTriggerPopup::init @ 0x10003782c // > SetupAreaTintTriggerPopup::init @ 0x100038098 // > SetupAreaTriggerPopup::init @ 0x100038b1c // > SetupAdvFollowPopup::init @ 0x1000624a4 // > SetupSpawnPopup::init @ 0x1000f838c // > SetupSFXPopup::init @ 0x1001806e0 // > SetupSFXEditPopup::init @ 0x10018195c // > SetupKeyframeAnimPopup::init @ 0x1001b4464 // > SetupSongTriggerPopup::init @ 0x1001c306c // > SetupRotateCommandPopup::init @ 0x1004069c4 // > SelectEventLayer::init @ 0x100408610 // > SetupOptionsTriggerPopup::init @ 0x100413b00 // // 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 __fastcall SetupTriggerPopup::createPageButtons(SetupTriggerPopup *a1, float a2, int a3) { int v6; // w8 cocos2d::CCString *v7; // x0 const char *CString; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCMenu *m_buttonMenu; // x21 __n128 v11; // q0 __n128 v12; // q1 float v13; // s9 std::string *v14; // x0 cocos2d::CCSprite *v15; // x20 __n128 v16; // q0 CCMenuItemSpriteExtra *m_prevButton; // x20 __n128 v18; // q1 double v19; // d0 std::string *v20; // x0 cocos2d::CCSprite *v21; // x20 __n128 v22; // q0 CCMenuItemSpriteExtra *m_nextButton; // x20 __n128 v24; // q1 double v25; // d0 float32x2_t v26; // [xsp+8h] [xbp-68h] BYREF float32x2_t v27; // [xsp+10h] [xbp-60h] BYREF float32x2_t v28; // [xsp+18h] [xbp-58h] BYREF float v29; // [xsp+20h] [xbp-50h] float v30; // [xsp+24h] [xbp-4Ch] std::string v31; // [xsp+28h] [xbp-48h] BYREF cocos2d::SEL_MenuHandler v32; // 0:x3.16 cocos2d::SEL_MenuHandler v33; // 0:x3.16 memset(&v31, 0, sizeof(v31)); if ( a3 <= 0 ) { std::string::assign(&v31, "edit_leftBtn_001.png"); } else { if ( (unsigned int)a3 >= 3 ) v6 = 3; else v6 = a3; v7 = (cocos2d::CCString *)sub_100268F4C("GJ_arrow_0%i_001.png", v6); CString = cocos2d::CCString::getCString(v7); std::string::assign(&v31, CString); } v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v9); m_buttonMenu = a1->m_buttonMenu; v11.n128_f32[0] = v29 * 0.5; v12.n128_f32[0] = v30 * 0.5; sub_100022980(v11, v12, &v27); cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, (const cocos2d::CCPoint *)&v27); if ( a3 >= 1 ) v13 = 0.7; else v13 = 1.0; if ( (v31.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &v31; else v14 = (std::string *)v31.__r_.__value_.__r.__words[0]; v15 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v14); ((void (__fastcall *)(cocos2d::CCSprite *, float))v15->setScale)(v15, v13); v32.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetupTriggerPopup::onPage; v32.adj = 0; a1->m_prevButton = CCMenuItemSpriteExtra::create(v15, nullptr, a1, v32); ((void (__fastcall *)(cocos2d::CCMenu *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu); v16 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_prevButton->setTag)( a1->m_prevButton, 0xFFFFFFFFLL); m_prevButton = a1->m_prevButton; v16.n128_f32[0] = -a2; v18.n128_u32[0] = 0; sub_100022980(v16, v18, &v26); *(float32x2_t *)&v19 = sub_1000229DC(&v28, &v26, &v27); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_prevButton->setPosition)( m_prevButton, &v27, v19); CCMenuItemSpriteExtra::setSizeMult(a1->m_prevButton, 2.0); if ( (v31.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v20 = &v31; else v20 = (std::string *)v31.__r_.__value_.__r.__words[0]; v21 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v20); cocos2d::CCSprite::setFlipX(v21, 1); ((void (__fastcall *)(cocos2d::CCSprite *, float))v21->setScale)(v21, v13); v33.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetupTriggerPopup::onPage; v33.adj = 0; a1->m_nextButton = CCMenuItemSpriteExtra::create(v21, nullptr, a1, v33); ((void (__fastcall *)(cocos2d::CCMenu *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu); v22 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_nextButton->setTag)(a1->m_nextButton, 1); m_nextButton = a1->m_nextButton; v24.n128_u32[0] = 0; v22.n128_f32[0] = a2; sub_100022980(v22, v24, &v26); *(float32x2_t *)&v25 = sub_1000229DC(&v28, &v26, &v27); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_nextButton->setPosition)( m_nextButton, &v27, v25); CCMenuItemSpriteExtra::setSizeMult(a1->m_nextButton, 2.0); if ( SHIBYTE(v31.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v31.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source