//
// SetupGradientPopup::create from 0x5516cc to 0x55187c (432 bytes)
//
// 1 xrefs:
// > EditorUI::editObjectSpecial @ 0x37f858
//
// 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
//
SetupGradientPopup *SetupGradientPopup::create(GradientTriggerObject *a1, cocos2d::CCArray *a2)
{
SetupGradientPopup *v4; // r4
SetupGradientPopup_vtbl *v5; // r3
int *v6; // r0
v4 = (SetupGradientPopup *)operator new(0x2BCu);
cocos2d::CCLayerColor::CCLayerColor(v4);
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_controlConnected = -1;
v4->m_containsBorder = 0;
v4->m_noAction = 0;
v4->m_joystickConnected = -1;
v4->m_forcePrioRegistered = 0;
v4->m_width = 0.0;
v4->m_height = 0.0;
v4->m_gameObject = nullptr;
v4->m_gameObjects = nullptr;
v4->m_touchTriggered = 0;
v4->m_spawnTriggered = 0;
v4->m_touchToggle = nullptr;
v4->m_spawnToggle = nullptr;
v4->m_multiTriggerContainer = nullptr;
v4->m_multiTriggered = 0;
v4->m_disableTextDelegate = 0;
v4->m_valueToggles = nullptr;
v4->m_inputNodes = nullptr;
v4->m_valueControls = nullptr;
v4->m_customValueToggles = nullptr;
v4->m_disableButtons = nullptr;
v4->m_easingLabel = nullptr;
v4->m_easingRateLabel = nullptr;
v4->m_easingRateButton = nullptr;
v4->m_easingType = 0;
v4->m_easingRate = 0.0;
v4->m_inputLabels = nullptr;
v4->m_triggerValues = nullptr;
v4->m_minSliderValues = nullptr;
v4->m_maxSliderValues = nullptr;
memset(&v4->m_shouldLimitValues.m_header, 0, sizeof(v4->m_shouldLimitValues.m_header));
v4->m_easingControlScale = 1.0;
v4->m_shouldLimitValues.m_nodecount = 0;
v4->m_disableSliderDelegate = 0;
v4->m_effectObjects = 0;
v4->m_pageContainers = nullptr;
v4->m_page = 0;
v4->m_groupContainers = nullptr;
v4->m_customEasingTags = nullptr;
v4->m_customEasingLabels = nullptr;
v4->m_customEasingButtons = nullptr;
v4->m_customEasingScales = nullptr;
v4->m_disabledEasingButtons = nullptr;
v4->m_prevButton = nullptr;
v4->m_nextButton = nullptr;
v4->m_hideAll = 0;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupGradientPopup_vtbl *)&off_A88DE8;
v4->m_blendingMode = 0;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A890D0;
v4->m_layerButtons = nullptr;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A89108;
v4->m_blendingLayer = 0;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A89114;
v4->m_gradientLabels = nullptr;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A89124;
v4->m_shouldLimitValues.m_header.m_left = &v4->m_shouldLimitValues.m_header;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A89134;
v4->m_shouldLimitValues.m_header.m_right = &v4->m_shouldLimitValues.m_header;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A89148;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A89188;
v4->SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A89198;
v4->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&off_A891BC;
v4->SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&off_A891C8;
if ( SetupGradientPopup::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = (int *)v4;
v4 = nullptr;
v5->~SetupGradientPopup_0((SetupGradientPopup *)v6);
}
return v4;
}