//
// EditorUI::resetUI from 0x1400e4d70 to 0x1400e4e8c (284 bytes)
//
// 3 xrefs:
// > EditorUI::init @ 0x1400e0917
// > EditorUI::toggleMode @ 0x1400e4ebc
// > ??> @ 0x1406c8ca0
//
// 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 EditorUI::resetUI(EditorUI *a1)
{
cocos2d::CCNode *v2; // rbx
cocos2d::CCNode_vtbl *v3; // rdi
cocos2d::CCSpriteFrameCache *v4; // rax
struct cocos2d::CCSpriteFrame *v5; // rax
cocos2d::CCNode *v6; // rbx
cocos2d::CCNode_vtbl *v7; // rdi
cocos2d::CCSpriteFrameCache *v8; // rax
struct cocos2d::CCSpriteFrame *v9; // rax
cocos2d::CCNode *v10; // rbx
cocos2d::CCNode_vtbl *v11; // rdi
cocos2d::CCSpriteFrameCache *v12; // rax
struct cocos2d::CCSpriteFrame *v13; // rax
_BOOL8 v14; // rdx
_BOOL8 v15; // rdx
v2 = a1->m_deleteModeBtn->getNormalImage(a1->m_deleteModeBtn);
v3 = v2->__vftable;
v4 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "edit_deleteBtn_001.png");
((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v3[1].setScaleX)(v2, v5);
v6 = a1->m_buildModeBtn->getNormalImage(a1->m_buildModeBtn);
v7 = v6->__vftable;
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "edit_buildBtn_001.png");
((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v7[1].setScaleX)(v6, v9);
v10 = a1->m_editModeBtn->getNormalImage(a1->m_editModeBtn);
v11 = v10->__vftable;
v12 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, "edit_editBtn_001.png");
((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v11[1].setScaleX)(v10, v13);
LOBYTE(v14) = a1->m_selectedMode == 1;
a1->m_deleteMenu->setVisible(a1->m_deleteMenu, v14);
EditorUI::updateDeleteButtons(a1);
EditorUI::updateCreateMenu(a1, 0);
if ( a1->m_selectedMode == 3 )
LOBYTE(v15) = 1;
else
v15 = 0;
a1->m_editButtonBar->setVisible(a1->m_editButtonBar, v15);
EditorUI::updateGridNodeSize(a1);
}