//
// DialogLayer::updateNavButtonFrame from 0x1400d3df0 to 0x1400d3e6a (122 bytes)
//
// 4 xrefs:
// > DialogLayer::init @ 0x1400d3a01
// > DialogLayer::displayNextObject @ 0x1400d3a8e
// > DialogLayer::handleDialogTap @ 0x1400d3f63
// > ??> @ 0x1406c8664
//
// 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 DialogLayer::updateNavButtonFrame(DialogLayer *a1)
{
cocos2d::CCArray *m_dialogObjects; // rcx
cocos2d::CCSprite_vtbl *v3; // rbx
cocos2d::CCSpriteFrameCache *v4; // rax
const char *v5; // rdx
struct cocos2d::CCSpriteFrame *v6; // rax
m_dialogObjects = a1->m_dialogObjects;
if ( m_dialogObjects && cocos2d::CCArray::count(m_dialogObjects) )
{
v3 = a1->m_navButtonSprite->__vftable;
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = "GJ_chatBtn_01_001.png";
}
else
{
v3 = a1->m_navButtonSprite->__vftable;
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = "GJ_chatBtn_02_001.png";
}
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
v3->setDisplayFrame(a1->m_navButtonSprite, v6);
}