//
// EditorUI::showMaxError from 0x1003eb048 to 0x1003eb108 (192 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::createObjectsFromString @ 0x100359ab4
// > EditorUI::onDuplicate @ 0x1003e46d8
// > EditorUI::onCreate @ 0x1003e6bd4
// > EditorUI::doPasteObjects @ 0x1003eec2c
//
// 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::showMaxError(EditorUI *a1)
{
cocos2d::CCString *v2; // x0
char *CString; // x0
FLAlertLayer *v4; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_alertShown )
{
a1->m_alertShown = 1;
v2 = (cocos2d::CCString *)sub_100268F4C(
"You have reached the upper max limit of %i objects. This limit can be removed co"
"mpletely, but it is not recommended. Levels with object count above this limit w"
"ill display a warning when played online.\n"
"Unoptimized levels that use too many objects have a lower chance of being rated and featured.",
80000);
CString = (char *)cocos2d::CCString::getCString(v2);
sub_100009900(__p, CString);
v4 = FLAlertLayer::create_1(
(__int64)&a1->FLAlertLayerProtocol,
(__int64)"Max Objects",
(__int64)__p,
(__int64)"Cancel",
(__int64)"Unlimited",
380.0);
if ( v6 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(FLAlertLayer *, __int64))v4->setTag)(v4, 126);
((void (__fastcall *)(FLAlertLayer *))v4->show)(v4);
}
}