//
// SetupMGTrigger::init from 0x140427280 to 0x140428250 (4048 bytes)
//
// 2 xrefs:
// > SetupMGTrigger::create @ 0x140427239
// > ??> @ 0x1406d97d0
//
// 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
//
// Hidden C++ exception states: #wind=3
bool SetupMGTrigger::init(SetupMGTrigger *a1, EffectGameObject *a2, cocos2d::CCArray *a3)
{
bool result; // al
__int64 v5; // rcx
cocos2d::CCDirector *v6; // rax
struct cocos2d::CCLabelBMFont *v7; // rdi
cocos2d::CCLabelBMFont_vtbl *v8; // rbx
float v9; // xmm6_4
const cocos2d::CCPoint *v10; // rax
ButtonSprite *v11; // rax
CCMenuItemSpriteExtra *v12; // rax
char *v13; // rdi
__int64 v14; // rbx
struct cocos2d::CCPoint v15; // rax
float v16; // xmm0_4
struct cocos2d::CCLabelBMFont *v17; // rdi
float v18; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v19; // rbx
const cocos2d::CCPoint *v20; // rax
struct cocos2d::CCRect *v21; // rax
struct cocos2d::extension::CCScale9Sprite *v22; // rdi
__int64 v23; // rdx
float v24; // xmm0_4
const char *v25; // r9
const char *v26; // r8
const char *v27; // r12
CCTextInputNode *v28; // rax
CCTextInputNode_vtbl *v29; // rbx
__int64 v30; // rax
CCTextInputNode *m_moveTimeInput; // rcx
CCTextInputNode *v32; // rcx
std::string *p_m_allowedChars; // rcx
CCTextInputNode *v34; // rcx
CCTextInputNode *v35; // rcx
TextInputDelegate *v36; // r15
const char *v37; // r8
Slider *v38; // rax
float v39; // xmm0_4
float v40; // xmm0_4
float v41; // xmm1_4
struct cocos2d::CCLabelBMFont *v42; // rsi
cocos2d::CCLabelBMFont_vtbl *v43; // rbx
const cocos2d::CCPoint *v44; // rax
cocos2d::CCLabelBMFont *v45; // rax
float v46; // xmm0_4
__int64 v47; // rax
struct cocos2d::CCSprite *v48; // rdi
__int64 v49; // rdx
cocos2d::CCLabelBMFont *v50; // rax
float v51; // xmm0_4
struct cocos2d::CCPoint v52; // rax
CCMenuItemSpriteExtra *v53; // rax
float v54; // xmm0_4
__int64 v55; // rax
CCMenuItemSpriteExtra_vtbl *v56; // rbx
struct cocos2d::CCPoint v57; // rax
cocos2d::CCSprite *v58; // rbx
CCMenuItemSpriteExtra *v59; // rdi
float v60; // xmm0_4
const cocos2d::CCPoint *v61; // rax
CCMenuItemSpriteExtra_vtbl *v62; // rbx
struct cocos2d::CCPoint v63; // rax
struct cocos2d::CCSprite *v64; // rbx
CCMenuItemSpriteExtra *v65; // rdi
float v66; // xmm0_4
const cocos2d::CCPoint *v67; // rax
CCMenuItemSpriteExtra_vtbl *v68; // rbx
struct cocos2d::CCPoint v69; // rax
float v70; // xmm0_4
__int64 v71; // rax
struct cocos2d::CCLabelBMFont *v72; // rdi
float v73; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v74; // rbx
const cocos2d::CCPoint *v75; // rax
struct cocos2d::CCRect *v76; // rax
struct cocos2d::extension::CCScale9Sprite *v77; // rdi
__int64 v78; // rdx
float v79; // xmm0_4
const char *v80; // r9
CCTextInputNode *v81; // rax
CCTextInputNode_vtbl *v82; // rbx
__int64 v83; // rax
CCTextInputNode *m_offsetYInput; // rcx
CCTextInputNode *v85; // rcx
std::string *v86; // rcx
CCTextInputNode *v87; // rcx
CCTextInputNode *v88; // rcx
const char *v89; // r8
Slider *v90; // rax
float v91; // xmm0_4
int m_offsetY; // eax
int v93; // [rsp+28h] [rbp-E0h]
int v94; // [rsp+28h] [rbp-E0h]
cocos2d::CCRect *v95; // [rsp+48h] [rbp-C0h] BYREF
__int64 v96; // [rsp+50h] [rbp-B8h] BYREF
cocos2d::CCRect v97; // [rsp+58h] [rbp-B0h] BYREF
cocos2d::CCRect v98; // [rsp+68h] [rbp-A0h] BYREF
__int64 v99; // [rsp+78h] [rbp-90h]
__int64 v100; // [rsp+80h] [rbp-88h]
char Src[12]; // [rsp+88h] [rbp-80h] BYREF
int v102; // [rsp+94h] [rbp-74h]
__int64 v103; // [rsp+98h] [rbp-70h]
__int64 v104; // [rsp+A0h] [rbp-68h]
_DWORD v105[4]; // [rsp+A8h] [rbp-60h] BYREF
__int64 v106; // [rsp+B8h] [rbp-50h]
__int64 v107; // [rsp+C0h] [rbp-48h]
cocos2d::CCSize v108; // [rsp+C8h] [rbp-40h] BYREF
cocos2d::CCSize v109; // [rsp+D0h] [rbp-38h] BYREF
__int128 v110; // [rsp+D8h] [rbp-30h] BYREF
__int64 v111; // [rsp+E8h] [rbp-20h]
__int64 v112; // [rsp+F0h] [rbp-18h]
cocos2d::CCRect v113; // [rsp+F8h] [rbp-10h] BYREF
cocos2d::CCRect v114[10]; // [rsp+108h] [rbp+0h] BYREF
float v115; // [rsp+1F0h] [rbp+E8h]
result = SetupTriggerPopup::init(a1, a2, a3, 430.0, 310.0, 1);
if ( result )
{
v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);
cocos2d::CCDirector::getWinSize(v6);
v7 = cocos2d::CCLabelBMFont::create("Setup MG", (const char *)&qword_14052A4D8);
v8 = v7->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v9 = 0.5;
cocos2d::CCPoint::CCPoint(a1->m_height * 0.5, v115 * 0.5);
v8->setPosition_0(v7, v10);
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v7);
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v7->setScale_0)(v7);
v11 = ButtonSprite::create_1("OK", 0, 0, 1.0, 0, "goldFont.fnt", "GJ_button_01.png", 0.0);
v12 = CCMenuItemSpriteExtra::create(v11, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_14009BEF0);
a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v12);
v95 = &v98;
v98 = 0;
v99 = 0;
v100 = 15;
v98.origin = (cocos2d::CCPoint)sub_14003AA10(0x40u);
v99 = 60;
v100 = 63;
strcpy(*(char **)&v98.origin, "Lets you change the Y position of the middle ground.");
v110 = 0;
v111 = 4;
v112 = 15;
strcpy((char *)&v110, "Help");
v13 = InfoAlertButton::create((__int64)&v110, (__int64)&v98);
a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, (cocos2d::CCNode *)v13);
v14 = *(_QWORD *)v13;
cocos2d::CCPoint::CCPoint(v115 * 0.5, (float)((float)(a1->m_width * 0.5) + (float)(v115 * 0.5)) - 18.0);
v15 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v97.origin);
(*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v14 + 184))(v13, v15);
v16 = ((float (__fastcall *)(SetupMGTrigger *))a1->determineStartValues)(a1);
cocos2d::CCPoint::CCPoint(v16, v115 * 0.5);
v17 = cocos2d::CCLabelBMFont::create("Move Time: ", "goldFont.fnt");
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v17->setScale_0)(v17);
v18 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64 *))v17->setPosition_0)(v17, &v96);
v19 = v17->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v18, 1.0);
v19->setAnchorPoint(v17, v20);
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v17);
cocos2d::CCRect::CCRect(&v113, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect(&v98, &v113);
v22 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v21);
LOBYTE(v23) = 100;
v22->setOpacity(&v22->cocos2d::CCRGBAProtocol, v23);
cocos2d::CCSize::CCSize(&v108, 70.0, 30.0);
v22->setContentSize(v22, &v108);
v24 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v22,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint(v24, 45.0);
cocos2d::CCPoint::operator+(&v96, &v95);
v22->setPosition_0(v22, (const cocos2d::CCPoint *)&v95);
v26 = "Num";
v27 = "Mixed";
if ( a1->m_moveTime == -99999.0 )
v26 = "Mixed";
v28 = CCTextInputNode::create(50.0, 40.0, v26, v25, v93, (const char *)&qword_14052A4D8);
a1->m_moveTimeInput = v28;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v28, 20);
v29 = a1->m_moveTimeInput->__vftable;
v30 = (__int64)v22->getPosition_0(v22);
v29->setPosition_0(a1->m_moveTimeInput, (const cocos2d::CCPoint *)v30);
m_moveTimeInput = a1->m_moveTimeInput;
m_moveTimeInput->m_maxLabelScale = 0.60000002;
CCTextInputNode::refreshLabel(m_moveTimeInput);
v32 = a1->m_moveTimeInput;
v32->m_maxLabelWidth = 200.0;
CCTextInputNode::refreshLabel(v32);
a1->m_moveTimeInput->m_textField->setVisible(a1->m_moveTimeInput->m_textField, 0);
a1->m_moveTimeInput->m_maxLabelLength = 4;
v102 = 0;
v103 = 11;
v104 = 15;
strcpy(Src, "0123456789.");
v97.origin = (cocos2d::CCPoint)Src;
p_m_allowedChars = &a1->m_moveTimeInput->m_allowedChars;
if ( p_m_allowedChars != (std::string *)Src )
sub_14003CCE0((void **)p_m_allowedChars, Src, 0xBu);
sub_14003A830((__int64)Src);
v34 = a1->m_moveTimeInput;
*(_WORD *)&v34->m_placeholderColor.r = -21896;
v34->m_placeholderColor.b = -16;
CCTextInputNode::refreshLabel(v34);
v35 = a1->m_moveTimeInput;
v35->m_placeholderScale = 0.5;
CCTextInputNode::refreshLabel(v35);
a1->m_moveTimeInput->m_numberInput = 1;
v36 = &a1->TextInputDelegate;
if ( !a1 )
v36 = nullptr;
a1->m_moveTimeInput->m_delegate = v36;
a1->m_moveTimeInput->setTag(a1->m_moveTimeInput, 3);
v38 = Slider::create(
a1,
(cocos2d::SEL_MenuHandler *)GJFollowCommandLayer::sliderChanged,
v37,
"slidergroove.png",
"sliderthumb.png",
"sliderthumbsel.png",
0.80000001);
a1->m_moveTimeSlider = v38;
v38->m_sliderBar->setVisible(v38->m_sliderBar, 0);
v39 = ((float (__fastcall *)(cocos2d::CCLayer *, Slider *))a1->m_mainLayer->addChild_1)(
a1->m_mainLayer,
a1->m_moveTimeSlider);
cocos2d::CCPoint::CCPoint(v39, 0.0);
cocos2d::CCPoint::operator+(&v96, &v95);
a1->m_moveTimeSlider->setPosition_0(a1->m_moveTimeSlider, (const cocos2d::CCPoint *)&v95);
v40 = a1->m_moveTime / 10.0;
v41 = fminf(1.0, v40);
if ( v41 < 0.0 )
v41 = 0.0;
Slider::setValue(a1->m_moveTimeSlider, v41);
GJFollowCommandLayer::updateDurLabel((__int64)a1, 0);
v42 = cocos2d::CCLabelBMFont::create((const char *)&dword_14057CC60, "goldFont.fnt");
v43 = v42->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v40, v115 * 0.5);
v43->setPosition_0(v42, v44);
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v42);
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v42->setScale_0)(v42);
v45 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_14052A4D8);
a1->m_mgEasingLabel = v45;
v46 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)(
a1->m_mainLayer,
v45);
cocos2d::CCPoint::CCPoint(v46, 0.0);
v47 = (__int64)v42->getPosition_0(v42);
cocos2d::CCPoint::operator+(v47, &v95);
a1->m_mgEasingLabel->setPosition_0(a1->m_mgEasingLabel, (const cocos2d::CCPoint *)&v95);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_mgEasingLabel->setScale_0)(a1->m_mgEasingLabel);
v48 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
v48->setColor(&v48->cocos2d::CCRGBAProtocol, &stru_140529C40);
LOBYTE(v49) = 100;
v48->setOpacity(&v48->cocos2d::CCRGBAProtocol, v49);
v50 = cocos2d::CCLabelBMFont::create("0", (const char *)&qword_14052A4D8);
a1->m_mgEasingRateLabel = v50;
v48->addChild_1(v48, v50);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_mgEasingRateLabel->setScaleX)(a1->m_mgEasingRateLabel);
v51 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_mgEasingRateLabel->setScaleY)(a1->m_mgEasingRateLabel);
cocos2d::CCPoint::CCPoint(v51, 1.0);
v52 = cocos2d::CCNode::convertToNodeSpace(v48, &v98.origin);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v52, &v95);
a1->m_mgEasingRateLabel->setPosition_0(a1->m_mgEasingRateLabel, (const cocos2d::CCPoint *)&v95);
((void (__fastcall *)(struct cocos2d::CCSprite *))v48->setScaleX)(v48);
((void (__fastcall *)(struct cocos2d::CCSprite *))v48->setScaleY)(v48);
v53 = CCMenuItemSpriteExtra::create(
v48,
nullptr,
a1,
(cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onEasingRate);
a1->m_mgEasingRateButton = v53;
v54 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(
a1->m_buttonMenu,
v53);
cocos2d::CCPoint::CCPoint(v54, 55.0);
v55 = (__int64)v42->getPosition_0(v42);
cocos2d::CCPoint::operator+(v55, &v95);
v56 = a1->m_mgEasingRateButton->__vftable;
v57 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v97.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v56->setPosition_0)(
a1->m_mgEasingRateButton,
v57);
HIDWORD(a1->m_mgEasingRateButton->m_pfnSelector.adj) = 1067030938;
SetupCameraOffsetTrigger::updateEasingRateLabel((__int64)a1);
SetupCameraOffsetTrigger::toggleEasingRateVisibility((__int64)a1);
v58 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
cocos2d::CCSprite::setFlipX(v58, 1);
((void (__fastcall *)(cocos2d::CCSprite *))v58->setScale_0)(v58);
v59 = CCMenuItemSpriteExtra::create(
v58,
nullptr,
a1,
(cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onEasing);
v60 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(
a1->m_buttonMenu,
v59);
cocos2d::CCPoint::CCPoint(v60, 100.0);
v61 = a1->m_mgEasingLabel->getPosition_0(a1->m_mgEasingLabel);
cocos2d::CCPoint::operator+(v61, &v95);
v62 = v59->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v63 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v97.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v62->setPosition_0)(v59, v63);
HIDWORD(v59->m_pfnSelector.adj) = 1068708659;
v59->setTag(v59, 1);
v64 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png");
((void (__fastcall *)(struct cocos2d::CCSprite *))v64->setScale_0)(v64);
v65 = CCMenuItemSpriteExtra::create(
v64,
nullptr,
a1,
(cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onEasing);
v66 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(
a1->m_buttonMenu,
v65);
cocos2d::CCPoint::CCPoint(v66, -100.0);
v67 = a1->m_mgEasingLabel->getPosition_0(a1->m_mgEasingLabel);
cocos2d::CCPoint::operator+(v67, &v95);
v68 = v65->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v69 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v97.origin);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v68->setPosition_0)(v65, v69);
HIDWORD(v65->m_pfnSelector.adj) = 1068708659;
v70 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v65->setTag)(v65, 0);
cocos2d::CCPoint::CCPoint(v70, v115 * 0.5);
cocos2d::CCPoint::operator=(&v96, v71);
v72 = cocos2d::CCLabelBMFont::create("Offset Y:", "goldFont.fnt");
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v72->setScale_0)(v72);
v73 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64 *))v72->setPosition_0)(v72, &v96);
v74 = v72->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v73, 1.0);
v74->setAnchorPoint(v72, v75);
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v72);
cocos2d::CCRect::CCRect(v114, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect(&v97, v114);
v77 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v76);
LOBYTE(v78) = 100;
v77->setOpacity(&v77->cocos2d::CCRGBAProtocol, v78);
cocos2d::CCSize::CCSize(&v109, 70.0, 30.0);
v77->setContentSize(v77, &v109);
v79 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v77,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint(v79, 45.0);
cocos2d::CCPoint::operator+(&v96, &v95);
v77->setPosition_0(v77, (const cocos2d::CCPoint *)&v95);
if ( a1->m_offsetY != -99999 )
v27 = "Num";
v81 = CCTextInputNode::create(60.0, 40.0, v27, v80, v94, (const char *)&qword_14052A4D8);
a1->m_offsetYInput = v81;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v81, 20);
v82 = a1->m_offsetYInput->__vftable;
v83 = (__int64)v77->getPosition_0(v77);
v82->setPosition_0(a1->m_offsetYInput, (const cocos2d::CCPoint *)v83);
m_offsetYInput = a1->m_offsetYInput;
m_offsetYInput->m_maxLabelScale = 0.60000002;
CCTextInputNode::refreshLabel(m_offsetYInput);
v85 = a1->m_offsetYInput;
v85->m_maxLabelWidth = 200.0;
CCTextInputNode::refreshLabel(v85);
a1->m_offsetYInput->m_textField->setVisible(a1->m_offsetYInput->m_textField, 0);
a1->m_offsetYInput->m_maxLabelLength = 5;
v105[3] = 0;
v106 = 11;
v107 = 15;
strcpy((char *)v105, "0123456789-");
v98.origin = (cocos2d::CCPoint)v105;
v86 = &a1->m_offsetYInput->m_allowedChars;
if ( v86 != (std::string *)v105 )
sub_14003CCE0((void **)v86, v105, 0xBu);
sub_14003A830((__int64)v105);
v87 = a1->m_offsetYInput;
*(_WORD *)&v87->m_placeholderColor.r = -21896;
v87->m_placeholderColor.b = -16;
CCTextInputNode::refreshLabel(v87);
v88 = a1->m_offsetYInput;
v88->m_placeholderScale = 0.5;
CCTextInputNode::refreshLabel(v88);
a1->m_offsetYInput->m_delegate = v36;
a1->m_offsetYInput->m_numberInput = 1;
a1->m_offsetYInput->setTag(a1->m_offsetYInput, 1);
v90 = Slider::create(
a1,
(cocos2d::SEL_MenuHandler *)SetupMGTrigger::sliderYChanged,
v89,
"slidergroove.png",
"sliderthumb.png",
"sliderthumbsel.png",
0.80000001);
a1->m_offsetYSlider = v90;
v90->m_sliderBar->setVisible(v90->m_sliderBar, 0);
v91 = ((float (__fastcall *)(cocos2d::CCLayer *, Slider *))a1->m_mainLayer->addChild_1)(
a1->m_mainLayer,
a1->m_offsetYSlider);
cocos2d::CCPoint::CCPoint(v91, 0.0);
cocos2d::CCPoint::operator+(&v96, &v95);
a1->m_offsetYSlider->setPosition_0(a1->m_offsetYSlider, (const cocos2d::CCPoint *)&v95);
m_offsetY = a1->m_offsetY;
if ( m_offsetY != -99999 )
{
v9 = fminf(1.0, (float)(floorf((float)m_offsetY / 3.0) / 200.0) + 0.5);
if ( v9 < 0.0 )
v9 = 0.0;
}
Slider::setValue(a1->m_offsetYSlider, v9);
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
SetupMGTrigger::updateValueYLabel(a1);
SetupCameraOffsetTrigger::updateEasingLabel((__int64)a1);
a1->m_disableTextDelegate = 0;
return 1;
}
return result;
}