//
// CreatorLayer::dialogClosed from 0x6ca8f8 to 0x6ca980 (136 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CreatorLayer::dialogClosed @ 0x6ca984
// > ??> @ 0xa3c98
// > ??> @ 0x1159498
//
// 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 CreatorLayer::dialogClosed(CreatorLayer *a1, DialogLayer *a2)
{
int v3; // w0
GameManager *v4; // x0
cocos2d::CCSprite *m_secretDoorSprite; // x19
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x20
cocos2d::CCSpriteFrameCache *v7; // x0
cocos2d::CCSpriteFrame *v8; // x0
v3 = a2->getTag(a2);
if ( v3 )
{
if ( v3 == 1 )
CreatorLayer::onAdventureMap(a1, nullptr);
}
else
{
v4 = GameManager::sharedState();
GameManager::setUGV(v4, "5", 1);
m_secretDoorSprite = a1->m_secretDoorSprite;
setDisplayFrame = m_secretDoorSprite->setDisplayFrame;
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "secretDoorBtn_open_001.png");
setDisplayFrame(m_secretDoorSprite, v8);
}
}