//
// SetupRandTriggerPopup::create from 0x50567c to 0x505838 (444 bytes)
//
// 1 xrefs:
// > EditorUI::editObject @ 0x380648
//
// 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
//
SetupRandTriggerPopup *SetupRandTriggerPopup::create(EffectGameObject *a1, cocos2d::CCArray *a2)
{
SetupRandTriggerPopup *v4; // r4
SetupRandTriggerPopup_vtbl *v5; // r3
int *v6; // r0
v4 = (SetupRandTriggerPopup *)operator new(0x2C4u);
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->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_width = 0.0;
v4->m_height = 0.0;
v4->m_easingRateButton = nullptr;
v4->m_easingType = 0;
v4->m_inputLabels = nullptr;
v4->m_triggerValues = nullptr;
v4->m_minSliderValues = nullptr;
v4->m_maxSliderValues = nullptr;
v4->m_easingRate = 0.0;
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 = (SetupRandTriggerPopup_vtbl *)&off_A80FE0;
v4->m_chanceInput = nullptr;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A812C8;
v4->m_chanceSlider = nullptr;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A81300;
v4->m_groupID1Input = nullptr;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A8130C;
v4->m_shouldLimitValues.m_header.m_left = &v4->m_shouldLimitValues.m_header;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A8131C;
v4->m_shouldLimitValues.m_header.m_right = &v4->m_shouldLimitValues.m_header;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A8132C;
v4->m_chancePercent = 0.0;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A81340;
v4->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A81380;
v4->SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A81390;
v4->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&off_A813B4;
v4->SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&off_A813C0;
v4->m_groupID2Input = nullptr;
v4->m_groupID1 = 0;
v4->m_groupID2 = 0;
if ( SetupRandTriggerPopup::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->~SetupRandTriggerPopup_0((SetupRandTriggerPopup *)v6);
}
return v4;
}