//
// LevelPage::dialogClosed from 0x100437390 to 0x100437419 (137 bytes)
//
// 1 xrefs:
// > ??> @ 0x100937118
//
// 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::dialogClosed(LevelPage *a1, DialogLayer *a2)
{
GameManager *v2; // rax
cocos2d::CCSprite *m_secretDoor; // rbx
cocos2d::CCSpriteFrameCache *v4; // rax
cocos2d::CCSpriteFrame *v5; // rax
if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 2 )
{
v2 = GameManager::sharedState();
GameManager::setUGV(v2, "8", 1);
m_secretDoor = a1->m_secretDoor;
if ( m_secretDoor )
{
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "secretDoorBtn2_open_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_secretDoor->setDisplayFrame)(
m_secretDoor,
v5);
}
}
else if ( ((unsigned int (__fastcall *)(DialogLayer *))a2->getTag)(a2) == 1 )
{
LevelPage::onTheTower(a1, a2);
}
}