// // SetupTriggerPopup::createPageButtons from 0x140474020 to 0x1404742cb (683 bytes) // // 16 xrefs: // > SetupRotateCommandPopup::init @ 0x1402a8ea5 // > SetupAdvFollowPopup::init @ 0x140405543 // > SetupAreaMoveTriggerPopup::init @ 0x14040c294 // > SetupAreaTransformTriggerPopup::init @ 0x14040e940 // > SetupAreaRotateTriggerPopup::init @ 0x14040f0a4 // > SetupAreaFadeTriggerPopup::init @ 0x14040f7f2 // > SetupAreaTintTriggerPopup::init @ 0x14041027e // > SetupAreaTriggerPopup::init @ 0x140410e17 // > SetupKeyframeAnimPopup::init @ 0x1404251bd // > SetupOptionsTriggerPopup::init @ 0x14043668b // > SetupSFXPopup::init @ 0x140448447 // > SetupSFXEditPopup::init @ 0x14044a0fe // > SetupSongTriggerPopup::init @ 0x14045d4ea // > SetupSpawnPopup::init @ 0x14045edde // > SelectEventLayer::init @ 0x14046750b // > @ 0x1406db408 // // 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 // // Hidden C++ exception states: #wind=1 void SetupTriggerPopup::createPageButtons(SetupTriggerPopup *a1, float a2, int a3) { cocos2d::CCString *v4; // rax char *CString; // rax size_t v6; // r8 __int64 v7; // rcx cocos2d::CCDirector *v8; // rax void **v9; // rcx struct cocos2d::CCSprite *v10; // rbx CCMenuItemSpriteExtra *v11; // rax float v12; // xmm0_4 void **v13; // rcx cocos2d::CCSprite *v14; // rbx CCMenuItemSpriteExtra *v15; // rax float v16; // xmm0_4 void *v17; // rcx _BYTE v18[8]; // [rsp+20h] [rbp-60h] BYREF float v19; // [rsp+28h] [rbp-58h] struct cocos2d::CCPoint v20; // [rsp+30h] [rbp-50h] BYREF void *Block[2]; // [rsp+40h] [rbp-40h] BYREF __int64 v22; // [rsp+50h] [rbp-30h] unsigned __int64 v23; // [rsp+58h] [rbp-28h] *(_OWORD *)Block = 0; v22 = 0; v23 = 15; LOBYTE(Block[0]) = 0; v4 = cocos2d::CCString::createWithFormat("GJ_arrow_0%i_001.png", 1); CString = (char *)cocos2d::CCString::getCString(v4); v6 = -1; do ++v6; while ( CString[v6] ); sub_14003CCE0(Block, CString, v6); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8); cocos2d::CCPoint::CCPoint(0.0, v19 * 0.5); cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v20); v9 = Block; if ( v23 > 0xF ) v9 = (void **)Block[0]; v10 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v9); ((void (__fastcall *)(struct cocos2d::CCSprite *))v10->setScale_0)(v10); v11 = CCMenuItemSpriteExtra::create(v10, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupTriggerPopup::onPage); a1->m_prevButton = v11; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v11); v12 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_prevButton->setTag)( a1->m_prevButton, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v12, -a2); cocos2d::CCPoint::operator+(&v20, v18); a1->m_prevButton->setPosition_0(a1->m_prevButton, (const cocos2d::CCPoint *)v18); HIDWORD(a1->m_prevButton->m_pfnSelector.adj) = 0x40000000; v13 = Block; if ( v23 > 0xF ) v13 = (void **)Block[0]; v14 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v13); cocos2d::CCSprite::setFlipX(v14, 1); ((void (__fastcall *)(cocos2d::CCSprite *))v14->setScale_0)(v14); v15 = CCMenuItemSpriteExtra::create(v14, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupTriggerPopup::onPage); a1->m_nextButton = v15; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v15); v16 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_nextButton->setTag)(a1->m_nextButton, 1); cocos2d::CCPoint::CCPoint(v16, a2); cocos2d::CCPoint::operator+(&v20, v18); a1->m_nextButton->setPosition_0(a1->m_nextButton, (const cocos2d::CCPoint *)v18); HIDWORD(a1->m_nextButton->m_pfnSelector.adj) = 0x40000000; if ( v23 > 0xF ) { v17 = Block[0]; if ( v23 + 1 >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source