//
// EditorUI::reloadCustomItems from 0x1003e8ab0 to 0x1003e8b1c (108 bytes)
//
// 4 xrefs:
// > EditorUI::onNewCustomItem @ 0x1003e86fc
// > EditorUI::onDeleteCustomItem @ 0x1003e8b54
// > EditorUI::orderUpCustomItem @ 0x1003e8ba0
// > EditorUI::orderDownCustomItem @ 0x1003e8c04
//
// 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 EditorUI::reloadCustomItems(EditorUI *a1)
{
GameManager *v2; // x0
int IntGameVariable; // w20
GameManager *v4; // x0
int v5; // w21
EditButtonBar *m_customTabBar; // x22
cocos2d::CCArray *CustomItems; // x1
v2 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v2, "0049");
v4 = GameManager::sharedState();
v5 = GameManager::getIntGameVariable(v4, "0050");
m_customTabBar = a1->m_customTabBar;
CustomItems = EditorUI::createCustomItems(a1);
EditButtonBar::loadFromItems(m_customTabBar, CustomItems, IntGameVariable, v5, 1);
}