//
// EditorUI::showMaxError from 0x37db98 to 0x37dc26 (142 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::createObjectsFromString @ 0x371180
// > EditorUI::onCreate @ 0x3a4068
// > EditorUI::doPasteObjects @ 0x3a5e72
// > EditorUI::onDuplicate @ 0x3a6940
//
// 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::showMaxError(EditorUI *a1)
{
cocos2d::CCString *v2; // r0
char *CString; // r0
FLAlertLayer *v4; // r5
_BYTE v5[4]; // [sp+10h] [bp-8h] BYREF
if ( !a1->m_alertShown )
{
a1->m_alertShown = 1;
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"You have reached the upper max limit of %i objects. This li"
"mit can be removed completely, but it is not recommended. L"
"evels with object count above this limit will display a warning"
" when played online.\n"
"Unoptimized levels that use too many objects have a lower chanc"
"e of being rated and featured.",
(const char *)&stru_1387C.st_value);
CString = (char *)cocos2d::CCString::getCString(v2);
sub_776584((int)v5, CString);
v4 = FLAlertLayer::create(
(int)&a1->FLAlertLayerProtocol,
(int)"Max Objects",
(int)v5,
(int)"Cancel",
(int)"Unlimited",
380.0);
sub_774008(v5);
v4->setTag(v4, 126);
v4->show(v4);
}
}