//
// LevelSettingsLayer::create from 0x5728e0 to 0x5729fc (284 bytes)
//
// 2 xrefs:
// > EditorUI::onSettings @ 0x37c0e0
// > EditorUI::editObject @ 0x37ffea
//
// 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
//
LevelSettingsLayer *LevelSettingsLayer::create(LevelSettingsObject *a1, LevelEditorLayer *a2)
{
LevelSettingsLayer *v4; // r4
LevelSettingsLayer_vtbl *v5; // r3
int *v6; // r0
v4 = (LevelSettingsLayer *)operator new(0x26Cu);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelSettingsLayer_vtbl *)&off_A8EBB8;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A8EE60;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A8EE98;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A8EEA4;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A8EEB4;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A8EEC4;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A8EED8;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A8EF18;
v4->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&off_A8EF28;
v4->SelectArtDelegate::__vftable = (SelectArtDelegate_vtbl *)&off_A8EF34;
v4->SelectSettingDelegate::__vftable = (SelectSettingDelegate_vtbl *)&off_A8EF40;
v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_A8EF4C;
v4->CustomSongLayerDelegate::__vftable = (CustomSongLayerDelegate_vtbl *)&off_A8EF58;
v4->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A8EF64;
v4->m_songSelectNode = nullptr;
v4->m_speed = Normal;
v4->m_bgColorSprite = nullptr;
v4->m_gColorSprite = nullptr;
v4->m_g2ColorSprite = nullptr;
v4->m_lineColorSprite = nullptr;
v4->m_mgColorSprite = nullptr;
v4->m_mg2ColorSprite = nullptr;
v4->m_moreColorsSprite = nullptr;
v4->m_backgroundSprite = nullptr;
v4->m_groundSprite = nullptr;
v4->m_middlegroundSprite = nullptr;
v4->m_speedSprite = nullptr;
v4->m_modeSprite = nullptr;
v4->m_settingsObject = nullptr;
v4->m_unkPtr = nullptr;
v4->m_modeToggles = nullptr;
v4->m_speedButtons = nullptr;
v4->m_delegate = nullptr;
v4->m_editorLayer = nullptr;
v4->m_orderInput = nullptr;
v4->m_channelInput = nullptr;
v4->m_classicButton = nullptr;
v4->m_platformerButton = nullptr;
v4->m_disableInput = 0;
if ( LevelSettingsLayer::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = (int *)v4;
v4 = nullptr;
v5->~LevelSettingsLayer_0((LevelSettingsLayer *)v6);
}
return v4;
}