//
// LevelOptionsLayer2::init from 0x100271da0 to 0x100271e9e (254 bytes)
//
// 1 xrefs:
// > LevelOptionsLayer2::create @ 0x100271b55
//
// 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
//
bool __fastcall LevelOptionsLayer2::init(LevelOptionsLayer2 *a1, LevelSettingsObject *a2)
{
bool result; // al
bool v3; // r12
cocos2d::CCLabelBMFont *v4; // r14
_BYTE v5[8]; // [rsp+0h] [rbp-30h] BYREF
float v6[10]; // [rsp+8h] [rbp-28h] BYREF
a1->m_gap = 40.0;
a1->m_maxLabelScale = 0.40000001;
a1->m_settingsObject = a2;
result = GJOptionsLayer::init(a1, 1);
if ( result )
{
v3 = result;
SetupTriggerPopup::preSetup(a1);
SetupTriggerPopup::postSetup(a1);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v6);
v4 = cocos2d::CCLabelBMFont::create_3("Legacy Options", "goldFont.fnt");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v4->setScale)(v4, 0.69999999);
sub_10028CBE0(v5, v6[0] * 0.5, (float)((float)(0.5 * a1->m_height) + (float)(v6[1] * 0.5)) + -20.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v4->setPosition)(v4, v5);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v4,
1);
return v3;
}
return result;
}