//
// EditorUI::showMaxBasicError from 0x37dc44 to 0x37dcd6 (146 bytes)
//
// 3 xrefs:
// > EditorUI::onCreate @ 0x3a405e
// > EditorUI::doPasteObjects @ 0x3a5e6a
// > EditorUI::onDuplicate @ 0x3a6938
//
// 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::showMaxBasicError(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 max limit of %i objects. You can incre"
"ase it to %i, but your level may become unstable on some de"
"vices, so it is recommended to stay below this limit. Levels with o"
"bject count above this limit will display a warning when played online.",
(const char *)&stru_9C3C.st_value,
80000);
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)"Increase",
380.0);
sub_774008(v5);
v4->setTag(v4, 125);
v4->show(v4);
}
}