// // LevelPage::addSecretDoor from 0x100436570 to 0x1004366d4 (356 bytes) // // 1 xrefs: // > LevelPage::updateDynamicPage @ 0x100433f31 // // 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 LevelPage::addSecretDoor(LevelPage *a1) { __int64 v1; // rax GameManager *v3; // rax GameManager *v4; // rax bool UGV; // r14 const char *v6; // rdi GameManager *v7; // rax cocos2d::CCMenu *v8; // r14 CCMenuItemSpriteExtra *v9; // r15 __int64 v10; // [rsp+0h] [rbp-20h] BYREF double v11; // 0:xmm0_8.8 v10 = v1; v3 = GameManager::sharedState(); if ( GameManager::getUGV(v3, "6") ) { v4 = GameManager::sharedState(); UGV = GameManager::getUGV(v4, "8"); cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)&v11 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v10); v6 = "secretDoorBtn2_closed_001.png"; if ( UGV ) v6 = "secretDoorBtn2_open_001.png"; a1->m_secretDoor = cocos2d::CCSprite::createWithSpriteFrameName(v6); v7 = GameManager::sharedState(); if ( !GameManager::getUGV(v7, "7") ) ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD, double))a1->m_secretDoor->setOpacity)(a1->m_secretDoor, 0, v11); v8 = cocos2d::CCMenu::create(); ((void (__fastcall *)(LevelPage *, cocos2d::CCMenu *, double))a1->addChild)(a1, v8, v11); v9 = CCMenuItemSpriteExtra::create( a1->m_secretDoor, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)LevelPage::onSecretDoor); *(_WORD *)&v9->m_animationEnabled = 256; ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v8->addChild)(v8, v9); ((void (__fastcall *)(cocos2d::CCMenu *, float, float))v8->setPosition_0)( v8, *(float *)&v10 * 0.5, fminf(128.0, (float)(0.5 * *((float *)&v10 + 1)) + -110.0) + 30.0); CCMenuItemSpriteExtra::setSizeMult(v9, 2.0); sub_10071FCD0(a1->m_dynamicObjects, v9); sub_10071FCD0(a1->m_dynamicObjects, a1->m_secretDoor); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source