//
// EditorUI::reloadCustomItems from 0x6978e4 to 0x697950 (108 bytes)
//
// 5 xrefs:
// > EditorUI::onDeleteCustomItem @ 0x697990
// > EditorUI::orderUpCustomItem @ 0x6979dc
// > EditorUI::orderDownCustomItem @ 0x697a40
// > EditorUI::onNewCustomItem @ 0x6c4b40
// > ??> @ 0x824b8
//
// 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::reloadCustomItems(EditorUI *a1)
{
GameManager *v2; // x0
GameManager *v3; // x0
int v4; // w0
EditButtonBar *m_customTabBar; // x20
cocos2d::CCArray *CustomItems; // x0
int IntGameVariable; // [xsp+20h] [xbp+20h]
int v8; // [xsp+28h] [xbp+28h]
v2 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v2, "0049");
v3 = GameManager::sharedState();
v4 = GameManager::getIntGameVariable(v3, "0050");
m_customTabBar = a1->m_customTabBar;
v8 = v4;
CustomItems = EditorUI::createCustomItems(a1);
EditButtonBar::loadFromItems(m_customTabBar, CustomItems, IntGameVariable, v8, 1);
}