//
// CreatorLayer::dialogClosed from 0x1000b6b38 to 0x1000b6bc0 (136 bytes)
//
// 2 xrefs:
// > sub_1000B6BC0 @ 0x1000b6bc4
// > ??> @ 0x100781a98
//
// 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 CreatorLayer::dialogClosed(CreatorLayer *a1, DialogLayer *a2)
{
CreatorLayer *v3; // x0
cocos2d::CCObject *v4; // x1
GameManager *v5; // x0
cocos2d::CCSprite *m_secretDoorSprite; // x19
cocos2d::CCSpriteFrameCache *v7; // x0
cocos2d::CCSpriteFrame *v8; // x1
v3 = (CreatorLayer *)((__int64 (__fastcall *)(DialogLayer *))a2->getTag)(a2);
if ( (_DWORD)v3 == 1 )
{
CreatorLayer::onAdventureMap(v3, v4);
}
else if ( !(_DWORD)v3 )
{
v5 = GameManager::sharedState();
GameManager::setUGV(v5, "5", 1);
m_secretDoorSprite = a1->m_secretDoorSprite;
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "secretDoorBtn_open_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_secretDoorSprite->setDisplayFrame)(
m_secretDoorSprite,
v8);
}
}