//
// EditorUI::onSettings from 0x686880 to 0x6868fc (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x6d5d8
// > EditorUI::init @ 0x6bcf8c
// > ??> @ 0x122b970
//
// 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::onSettings(EditorUI *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_editorLayer; // x1
GJGameLevel *m_level; // x2
LevelSettingsLayer *v5; // x2
LevelEditorLayer *v6; // x0
LevelSettingsDelegate *v7; // x1
LevelSettingsLayer_vtbl *v8; // x3
if ( !a1->m_isPaused )
{
m_editorLayer = a1->m_editorLayer;
m_level = m_editorLayer->m_level;
if ( !m_level || m_level->m_levelType == Editor )
{
v5 = LevelSettingsLayer::create(m_editorLayer->m_levelSettings, m_editorLayer);
v6 = a1->m_editorLayer;
v7 = nullptr;
if ( v6 )
v7 = &v6->LevelSettingsDelegate;
v8 = v5->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v5->m_delegate = v7;
v8->show(v5);
}
}
}