//
// EditorUI::showTextAlert from 0x100163ac8 to 0x100163bf8 (304 bytes)
//
// 21 xrefs:
// > EditorUI::handleEditorAction @ 0x100162b4c
// > EditorUI::handleEditorAction @ 0x100162bd8
// > EditorUI::handleEditorAction @ 0x100162ea8
// > EditorUI::handleEditorAction @ 0x100163028
// > EditorUI::handleEditorAction @ 0x100163284
// > EditorUI::handleEditorAction @ 0x100163350
// > EditorUI::handleEditorAction @ 0x1001633c0
// > EditorUI::handleEditorAction @ 0x100163484
// > EditorUI::handleEditorAction @ 0x1001634ec
// > EditorUI::handleEditorAction @ 0x1001635a4
// > EditorUI::handleEditorAction @ 0x100163900
// > EditorUI::handleEditorAction @ 0x100163960
// > EditorUI::handleEditorAction @ 0x1001639a0
// > EditorUI::showLockedLayerAlert @ 0x100163c9c
// > EditorUI::toggleViewOption @ 0x100189410
// > EditorUI::findObject @ 0x1001a69a8
// > LevelEditorLayer::doAutoSave @ 0x10040b4b8
// > LevelEditorLayer::doAutoBackup @ 0x10040b8a8
// > EditorUI::showGridSizeAlert @ 0x100475390
// > EditorUI::createGradientFromSelection @ 0x10047b538
// > EditorUI::createGradientFromSelection @ 0x10047b570
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:59:47 +0000
//
__int64 __fastcall EditorUI::showTextAlert(__int64 a1, std::string *__s, int a3, char a4, __int64 a5)
{
const std::string::value_type *v8; // x1
__int64 v9; // x21
float v11; // [xsp+0h] [xbp-60h] BYREF
float v12; // [xsp+8h] [xbp-58h] BYREF
void *__p[2]; // [xsp+10h] [xbp-50h] BYREF
char v14; // [xsp+27h] [xbp-39h]
void *v15[2]; // [xsp+28h] [xbp-38h] BYREF
char v16; // [xsp+3Fh] [xbp-21h]
if ( (a4 & 1) == 0 )
{
if ( a3 )
v8 = "On";
else
v8 = "Off";
std::string::append(__s, v8);
}
if ( SHIBYTE(__s->__r_.__value_.__r.__words[2]) < 0 )
__s = (std::string *)__s->__r_.__value_.__r.__words[0];
sub_100009900(v15, (char *)__s);
sub_100009900(__p, "chatFont.fnt");
v9 = TextAlertPopup::create(v15, 100, __p, 0.6, 0.6);
if ( v14 < 0 )
operator delete(__p[0]);
if ( v16 < 0 )
operator delete(v15[0]);
sub_10037E130(v9, 65280);
sub_1000262BC(&v12, 0.0, 1.0);
sub_1000262BC(&v11, 20.0, -20.0);
sub_10037E16C(v9, &v12, &v11);
if ( (_DWORD)a5 )
return sub_10037DFF0(a1, a5, v9, 100);
else
return (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v9, 100);
}