//
// GJUINode::updateButtonFrames from 0x10004aedc to 0x10004afa4 (200 bytes)
//
// 3 xrefs:
// > GJUINode::loadFromConfig @ 0x10004999c
// > GJUINode::toggleModeB @ 0x10004ad5c
// > UIOptionsLayer::valueDidChange @ 0x1002e4280
//
// 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 GJUINode::updateButtonFrames(GJUINode *a1)
{
cocos2d::CCSprite *m_firstSprite; // x20
cocos2d::CCSpriteFrameCache *v3; // x0
const char *v4; // x1
cocos2d::CCSpriteFrame *v5; // x0
cocos2d::CCSprite *m_secondSprite; // x20
cocos2d::CCSpriteFrameCache *v7; // x0
const char *v8; // x1
cocos2d::CCSpriteFrame *v9; // x1
m_firstSprite = a1->m_firstSprite;
v3 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( a1->m_modeB )
{
v4 = "PBtn_Arrow_001.png";
}
else
{
v4 = "PBtn_Jump_001.png";
if ( !a1->m_oneButton && !a1->m_split )
v4 = "PBtn_Move_001.png";
}
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v3, v4);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_firstSprite->setDisplayFrame)(
m_firstSprite,
v5);
m_secondSprite = a1->m_secondSprite;
if ( m_secondSprite )
{
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( a1->m_split )
v8 = "PBtn_Jump_001.png";
else
v8 = "PBtn_Move_001.png";
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_secondSprite->setDisplayFrame)(
m_secondSprite,
v9);
}
}