//
// EditorUI::showMaxCoinError from 0x37dcf4 to 0x37dd7a (134 bytes)
//
// 1 xrefs:
// > EditorUI::onCreate @ 0x3a408a
//
// 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::showMaxCoinError(EditorUI *a1)
{
const char *v1; // r1
_BOOL4 m_alertShown; // r7
cocos2d::CCString *v4; // r0
char *CString; // r0
FLAlertLayer *v6; // r5
_BYTE v7[4]; // [sp+10h] [bp-Ch] BYREF
m_alertShown = a1->m_alertShown;
if ( !a1->m_alertShown )
{
a1->m_alertShown = 1;
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"You cannot add more than 3 coins in a single level.",
v1);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_776584((int)v7, CString);
v6 = FLAlertLayer::create((int)&a1->FLAlertLayerProtocol, (int)"Max Coins", (int)v7, (int)"OK", m_alertShown, 300.0);
sub_774008(v7);
v6->setTag(v6, 122);
v6->show(v6);
}
}