//
// EditorUI::showMaxBasicError from 0x1003eb124 to 0x1003eb1e8 (196 bytes)
//
// 3 xrefs:
// > EditorUI::onDuplicate @ 0x1003e471c
// > EditorUI::onCreate @ 0x1003e6c68
// > EditorUI::doPasteObjects @ 0x1003eec84
//
// 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::showMaxBasicError(EditorUI *a1)
{
cocos2d::CCString *v2; // x0
char *CString; // x0
FLAlertLayer *v4; // x19
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v6; // [xsp+2Fh] [xbp-11h]
if ( !a1->m_alertShown )
{
a1->m_alertShown = 1;
v2 = (cocos2d::CCString *)sub_100268F4C(
"You have reached the max limit of %i objects. You can increase it to %i,"
" but your level may become unstable on some devices, so it is recommended to stay below "
"this limit. Levels with object count above this limit will display a warning whe"
"n played online.",
40000,
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)"Increase",
380.0);
if ( v6 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(FLAlertLayer *, __int64))v4->setTag)(v4, 125);
((void (__fastcall *)(FLAlertLayer *))v4->show)(v4);
}
}