//
// CustomizeObjectLayer::create from 0x463bec to 0x463d20 (308 bytes)
//
// 2 xrefs:
// > EditorUI::editObject @ 0x38078c
// > CustomizeObjectLayer::recreateLayer @ 0x463d5c
//
// 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
//
CustomizeObjectLayer *CustomizeObjectLayer::create(GameObject *a1, cocos2d::CCArray *a2)
{
CustomizeObjectLayer *v4; // r4
CustomizeObjectLayer_vtbl *v5; // r3
CustomizeObjectLayer *v6; // r0
v4 = (CustomizeObjectLayer *)operator new(0x27Cu);
cocos2d::CCLayerColor::CCLayerColor(v4);
v4->m_controlConnected = -1;
v4->m_joystickConnected = -1;
v4->m_buttonMenu = nullptr;
v4->m_alertProtocol = nullptr;
v4->m_scene = nullptr;
v4->m_reverseKeyBack = 0;
v4->m_mainLayer = nullptr;
v4->m_ZOrder = 0;
v4->m_noElasticity = 0;
v4->m_button1 = nullptr;
v4->m_button2 = nullptr;
v4->m_scrollingLayer = nullptr;
v4->m_containsBorder = 0;
v4->m_noAction = 0;
v4->m_forcePrioRegistered = 0;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomizeObjectLayer_vtbl *)&off_A67448;
v4->m_targetObject = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A676F0;
v4->m_targetObjects = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A67728;
v4->m_colorButtons = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A67734;
v4->m_textTabNodes = nullptr;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A67744;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A67754;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A67768;
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A677A8;
v4->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A677B8;
v4->HSVWidgetDelegate::__vftable = (HSVWidgetDelegate_vtbl *)&off_A677DC;
v4->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&off_A677EC;
v4->ColorSetupDelegate::__vftable = (ColorSetupDelegate_vtbl *)&off_A677F8;
v4->m_selectedMode = 1;
v4->m_customColorChannel = 10;
v4->m_hasBaseColor = 0;
v4->m_hasDetailColor = 0;
v4->m_textButton = nullptr;
v4->m_baseColorHSV = nullptr;
v4->m_detailColorHSV = nullptr;
v4->m_textInput = nullptr;
v4->m_kerningAmount = 0;
v4->m_kerningLabel = nullptr;
v4->m_kerningSlider = nullptr;
v4->m_showTextInput = 0;
v4->m_customColorSelected = 0;
v4->m_disableTextDelegate = 0;
if ( CustomizeObjectLayer::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 = v4;
v4 = nullptr;
v5->~CustomizeObjectLayer_0(v6);
}
return v4;
}