//
// CreateParticlePopup::createParticleSlider from 0x140430930 to 0x1404312ae (2430 bytes)
//
// 60 xrefs:
// > CreateParticlePopup::init @ 0x14042e445
// > CreateParticlePopup::init @ 0x14042e48c
// > CreateParticlePopup::init @ 0x14042e4d6
// > CreateParticlePopup::init @ 0x14042e525
// > CreateParticlePopup::init @ 0x14042e574
// > CreateParticlePopup::init @ 0x14042e5c3
// > CreateParticlePopup::init @ 0x14042e607
// > CreateParticlePopup::init @ 0x14042e65b
// > CreateParticlePopup::init @ 0x14042e6a7
// > CreateParticlePopup::init @ 0x14042e6fb
// > CreateParticlePopup::init @ 0x14042e747
// > CreateParticlePopup::init @ 0x14042e799
// > CreateParticlePopup::init @ 0x14042e7e4
// > CreateParticlePopup::init @ 0x14042e836
// > CreateParticlePopup::init @ 0x14042e881
// > CreateParticlePopup::init @ 0x14042e8d8
// > CreateParticlePopup::init @ 0x14042e927
// > CreateParticlePopup::init @ 0x14042e975
// > CreateParticlePopup::init @ 0x14042e9c4
// > CreateParticlePopup::init @ 0x14042ea12
// > CreateParticlePopup::init @ 0x14042ea61
// > CreateParticlePopup::init @ 0x14042eaae
// > CreateParticlePopup::init @ 0x14042eafc
// > CreateParticlePopup::init @ 0x14042eb4b
// > CreateParticlePopup::init @ 0x14042eb93
// > CreateParticlePopup::init @ 0x14042ebe2
// > CreateParticlePopup::init @ 0x14042ec2a
// > CreateParticlePopup::init @ 0x14042ec79
// > CreateParticlePopup::init @ 0x14042ecc1
// > CreateParticlePopup::init @ 0x14042ed0e
// > CreateParticlePopup::init @ 0x14042ed55
// > CreateParticlePopup::init @ 0x14042eda2
// > CreateParticlePopup::init @ 0x14042ede9
// > CreateParticlePopup::init @ 0x14042ee2f
// > CreateParticlePopup::init @ 0x14042ee77
// > CreateParticlePopup::init @ 0x14042eec4
// > CreateParticlePopup::init @ 0x14042ef0b
// > CreateParticlePopup::init @ 0x14042ef58
// > CreateParticlePopup::init @ 0x14042ef9f
// > CreateParticlePopup::init @ 0x14042efec
// > CreateParticlePopup::init @ 0x14042f033
// > CreateParticlePopup::init @ 0x14042f080
// > CreateParticlePopup::init @ 0x14042f0c7
// > CreateParticlePopup::init @ 0x14042f114
// > CreateParticlePopup::init @ 0x14042f15b
// > CreateParticlePopup::init @ 0x14042f1a1
// > CreateParticlePopup::init @ 0x14042f1e9
// > CreateParticlePopup::init @ 0x14042f233
// > CreateParticlePopup::init @ 0x14042f27b
// > CreateParticlePopup::init @ 0x14042f2c1
// > CreateParticlePopup::init @ 0x14042f309
// > CreateParticlePopup::init @ 0x14042f34f
// > CreateParticlePopup::init @ 0x14042f397
// > CreateParticlePopup::init @ 0x14042f3e4
// > CreateParticlePopup::init @ 0x14042f42b
// > CreateParticlePopup::init @ 0x14042f46d
// > CreateParticlePopup::init @ 0x14042f4b1
// > CreateParticlePopup::init @ 0x14042f4f4
// > CreateParticlePopup::init @ 0x14042f53c
// > ??> @ 0x1406d9a64
//
// 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=5
void CreateParticlePopup::createParticleSlider(
CreateParticlePopup *a1,
gjParticleValue a2,
int a3,
bool a4,
cocos2d::CCPoint a5,
cocos2d::CCArray *a6)
{
float v6; // xmm0_4
struct cocos2d::CCObject *v10; // r12
cocos2d::CCMenu *m_buttonMenu; // r13
__int64 v12; // rcx
const char *v13; // rcx
struct cocos2d::CCLabelBMFont *v14; // rbx
double v15; // xmm0_8
cocos2d::CCLabelBMFont_vtbl *v16; // rdi
float v17; // xmm1_4
const cocos2d::CCPoint *v18; // rax
struct cocos2d::CCRect *v19; // rax
struct cocos2d::extension::CCScale9Sprite *v20; // r14
__int64 v21; // rdx
float v22; // xmm0_4
const char *v23; // r9
CCTextInputNode *v24; // rdi
CCTextInputNode_vtbl *v25; // rbx
__int64 v26; // rax
__int64 v27; // rbx
__int64 v28; // rsi
const char *v29; // r8
Slider *v30; // rdi
float v31; // xmm0_4
__int64 v32; // rax
gjParticleValue v33; // ebx
ButtonSprite *v34; // rsi
float v35; // xmm0_4
cocos2d::CCLabelBMFont *m_label; // rdi
__int64 v37; // rax
double v38; // xmm0_8
CCMenuItemSpriteExtra *v39; // rdi
cocos2d::CCArray *v40; // rax
float v41; // xmm1_4
ButtonSprite *v42; // r14
float v43; // xmm0_4
cocos2d::CCLabelBMFont *v44; // rdi
__int64 v45; // rax
double v46; // xmm0_8
CCMenuItemSpriteExtra *v47; // rdi
cocos2d::CCArray *v48; // rax
CCMenuItemSpriteExtra_vtbl *v49; // rbx
struct cocos2d::CCPoint v50; // rax
ButtonSprite *v51; // r14
float v52; // xmm0_4
cocos2d::CCLabelBMFont *v53; // rdi
__int64 v54; // rax
cocos2d::CCArray *v55; // rax
CCMenuItemSpriteExtra_vtbl *v56; // rbx
struct cocos2d::CCPoint v57; // rax
int v58; // [rsp+28h] [rbp-E0h]
ButtonSprite *v60; // [rsp+60h] [rbp-A8h]
ButtonSprite *v61; // [rsp+60h] [rbp-A8h]
ButtonSprite *v62; // [rsp+60h] [rbp-A8h]
cocos2d::CCDictionary *v63; // [rsp+68h] [rbp-A0h] BYREF
__int16 v64; // [rsp+70h] [rbp-98h]
gjParticleValue v65; // [rsp+74h] [rbp-94h]
cocos2d::CCPoint v66; // [rsp+78h] [rbp-90h]
cocos2d::CCDictionary *v67; // [rsp+80h] [rbp-88h] BYREF
cocos2d::CCPoint v68; // [rsp+88h] [rbp-80h] BYREF
cocos2d::CCDictionary *v69; // [rsp+90h] [rbp-78h] BYREF
char Src[14]; // [rsp+98h] [rbp-70h] BYREF
__int16 Src_14; // [rsp+A6h] [rbp-62h]
__int64 v72; // [rsp+A8h] [rbp-60h]
__int64 v73; // [rsp+B0h] [rbp-58h]
cocos2d::CCSize v74; // [rsp+B8h] [rbp-50h] BYREF
cocos2d::CCDictionary *v75; // [rsp+C0h] [rbp-48h]
cocos2d::CCRect v76; // [rsp+C8h] [rbp-40h] BYREF
_QWORD v77[4]; // [rsp+D8h] [rbp-30h] BYREF
v65 = a2;
v66 = a5;
v69 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex(a1->m_inputDicts, 0);
v63 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex(a1->m_sliderDicts, 0);
v10 = cocos2d::CCArray::objectAtIndex(a1->m_pageNodes, a3 - 1);
m_buttonMenu = a1->m_buttonMenu;
v75 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex(a1->m_inputDicts, a3);
v67 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex(a1->m_sliderDicts, a3);
CreateParticlePopup::titleForParticleValue(v12, v77, (unsigned int)a2);
v13 = (const char *)v77;
if ( v77[3] > 0xFu )
v13 = (const char *)v77[0];
v14 = cocos2d::CCLabelBMFont::create(v13, "chatFont.fnt");
cocos2d::CCPoint::CCPoint(v6, (float)(2 * !a4 + 48));
v15 = ((double (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(a5, &v68);
v14->setPosition_0(v14, &v68);
if ( a6 )
cocos2d::CCArray::addObject(a6, v14);
v16 = v14->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( a4 )
v17 = 0.5;
else
v17 = 1.0;
cocos2d::CCPoint::CCPoint(*(float *)&v15, v17);
v16->setAnchorPoint(v14, v18);
v10->__vftable[6].isEqual(v10, v14);
cocos2d::CCLabelBMFont::limitLabelWidth(v14, 40.0, 0.5, 0.0);
cocos2d::CCSize::CCSize(&v74, 112.5, 40.0);
cocos2d::CCRect::CCRect(&v76, 0.0, 0.0, 40.0, 40.0);
v20 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v19);
LOBYTE(v21) = 100;
v20->setOpacity(&v20->cocos2d::CCRGBAProtocol, v21);
v20->setContentSize(v20, &v74);
v22 = ((float (__fastcall *)(struct cocos2d::CCObject *, struct cocos2d::extension::CCScale9Sprite *, __int64))v10->__vftable[6].~CCObject)(
v10,
v20,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint(v22, 80.199997);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v66, &v68);
v20->setPosition_0(v20, &v68);
((void (__fastcall *)(struct cocos2d::extension::CCScale9Sprite *))v20->setScale_0)(v20);
if ( a6 )
cocos2d::CCArray::addObject(a6, v20);
v24 = CCTextInputNode::create(40.0, 30.0, "0", v23, v58, (const char *)&qword_14052A4D8);
((void (__fastcall *)(struct cocos2d::CCObject *, CCTextInputNode *, __int64))v10->__vftable[6].~CCObject)(
v10,
v24,
20);
v25 = v24->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v26 = (__int64)v20->getPosition_0(v20);
v25->setPosition_0(v24, (const cocos2d::CCPoint *)v26);
v24->m_maxLabelScale = 0.40000001;
CCTextInputNode::refreshLabel(v24);
v24->m_maxLabelWidth = 200.0;
CCTextInputNode::refreshLabel(v24);
v24->m_textField->setVisible(v24->m_textField, 0);
v24->m_maxLabelLength = 5;
v72 = 12;
v73 = 15;
strcpy(Src, "0123456789.-");
Src[13] = 0;
Src_14 = 0;
if ( &v24->m_allowedChars != (std::string *)Src )
sub_14003CCE0((void **)&v24->m_allowedChars, Src, 0xCu);
sub_14003A830((__int64)Src);
v64 = -21896;
*(_WORD *)&v24->m_placeholderColor.r = -21896;
v24->m_placeholderColor.b = -16;
CCTextInputNode::refreshLabel(v24);
v24->m_placeholderScale = 0.40000001;
CCTextInputNode::refreshLabel(v24);
v24->m_delegate = &a1->TextInputDelegate;
v27 = v65;
v24->setTag(v24, v65);
v24->m_numberInput = 1;
v28 = v27;
cocos2d::CCDictionary::setObject(v75, v24, v27);
cocos2d::CCDictionary::setObject(v69, v24, v27);
CreateParticlePopup::updateInputNodeStringForType(a1, (gjParticleValue)v27);
v30 = Slider::create(
a1,
(cocos2d::SEL_MenuHandler *)CreateParticlePopup::sliderChanged,
v29,
"slidergroove.png",
"sliderthumb.png",
"sliderthumbsel.png",
0.60000002);
v30->m_sliderBar->setVisible(v30->m_sliderBar, 0);
v31 = ((float (__fastcall *)(struct cocos2d::CCObject *, Slider *))v10->__vftable[6].isEqual)(v10, v30);
cocos2d::CCPoint::CCPoint(v31, 70.0);
v32 = (__int64)v20->getPosition_0(v20);
cocos2d::CCPoint::operator+(v32, &v69);
v30->setPosition_0(v30, (const cocos2d::CCPoint *)&v69);
Slider::setValue(v30, 0.0);
v33 = v65;
v30->m_touchLogic->m_thumb->setTag(v30->m_touchLogic->m_thumb, v65);
v30->setTag(v30, v65);
Slider::setMaxOffset(v30, 100.0);
((void (__fastcall *)(cocos2d::CCSprite *))v30->m_groove->setScaleX)(v30->m_groove);
cocos2d::CCDictionary::setObject(v67, v30, v28);
cocos2d::CCDictionary::setObject(v63, v30, v28);
v30->m_delegate = &a1->SliderDelegate;
CreateParticlePopup::updateSliderForType(a1, v33);
if ( v33 == Duration )
{
v60 = (ButtonSprite *)operator new(0x2C0u);
v34 = ButtonSprite::ButtonSprite(v60);
if ( v34 )
{
if ( ButtonSprite::init_1(
v34,
"Inf.",
40,
0,
0.80000001,
1,
(const char *)&qword_14052A4D8,
"GJ_button_04.png",
30.0) )
{
cocos2d::CCObject::autorelease(v34);
}
else
{
((void (__fastcall *)(ButtonSprite *, __int64))v34->~ButtonSprite)(v34, 1);
v34 = nullptr;
}
}
v35 = ((float (__fastcall *)(ButtonSprite *))v34->setScale_0)(v34);
m_label = v34->m_label;
cocos2d::CCPoint::CCPoint(v35, 0.5);
v37 = (__int64)m_label->getPosition_0(m_label);
v38 = cocos2d::CCPoint::operator+(v37, &v63);
m_label->setPosition_0(m_label, (const cocos2d::CCPoint *)&v63);
v39 = CCMenuItemSpriteExtra::create(
v34,
nullptr,
a1,
(cocos2d::SEL_MenuHandler *)CreateParticlePopup::onDurationForever);
m_buttonMenu->addChild_1(m_buttonMenu, v39);
v40 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pageObjectArrays, 0);
cocos2d::CCArray::addObject(v40, v39);
v41 = 220.0;
LABEL_28:
cocos2d::CCPoint::CCPoint(*(float *)&v38, v41);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v66, &v63);
v56 = v39->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v57 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, (const struct cocos2d::CCPoint *)&v67);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v56->setPosition_0)(v39, v57);
goto LABEL_29;
}
if ( v33 == Emission )
{
v61 = (ButtonSprite *)operator new(0x2C0u);
v42 = ButtonSprite::ButtonSprite(v61);
if ( v42 )
{
if ( ButtonSprite::init_1(
v42,
"Max",
40,
0,
0.80000001,
1,
(const char *)&qword_14052A4D8,
"GJ_button_04.png",
30.0) )
{
cocos2d::CCObject::autorelease(v42);
}
else
{
((void (__fastcall *)(ButtonSprite *, __int64))v42->~ButtonSprite)(v42, 1);
v42 = nullptr;
}
}
v43 = ((float (__fastcall *)(ButtonSprite *))v42->setScale_0)(v42);
v44 = v42->m_label;
cocos2d::CCPoint::CCPoint(v43, 0.5);
v45 = (__int64)v44->getPosition_0(v44);
v46 = cocos2d::CCPoint::operator+(v45, &v63);
v44->setPosition_0(v44, (const cocos2d::CCPoint *)&v63);
v47 = CCMenuItemSpriteExtra::create(
v42,
nullptr,
a1,
(cocos2d::SEL_MenuHandler *)CreateParticlePopup::onMaxEmission);
m_buttonMenu->addChild_1(m_buttonMenu, v47);
v48 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pageObjectArrays, 0);
cocos2d::CCArray::addObject(v48, v47);
cocos2d::CCPoint::CCPoint(*(float *)&v46, 220.0);
((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v66, &v63);
v49 = v47->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v50 = cocos2d::CCNode::convertToNodeSpace(m_buttonMenu, (const struct cocos2d::CCPoint *)&v67);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v49->setPosition_0)(v47, v50);
v62 = (ButtonSprite *)operator new(0x2C0u);
v51 = ButtonSprite::ButtonSprite(v62);
if ( v51 )
{
if ( ButtonSprite::init_1(
v51,
"Calc",
40,
0,
0.80000001,
1,
(const char *)&qword_14052A4D8,
"GJ_button_04.png",
30.0) )
{
cocos2d::CCObject::autorelease(v51);
}
else
{
((void (__fastcall *)(ButtonSprite *, __int64))v51->~ButtonSprite)(v51, 1);
v51 = nullptr;
}
}
v52 = ((float (__fastcall *)(ButtonSprite *))v51->setScale_0)(v51);
v53 = v51->m_label;
cocos2d::CCPoint::CCPoint(v52, 0.5);
v54 = (__int64)v53->getPosition_0(v53);
v38 = cocos2d::CCPoint::operator+(v54, &v63);
v53->setPosition_0(v53, (const cocos2d::CCPoint *)&v63);
v39 = CCMenuItemSpriteExtra::create(
v51,
nullptr,
a1,
(cocos2d::SEL_MenuHandler *)CreateParticlePopup::onCalcEmission);
m_buttonMenu->addChild_1(m_buttonMenu, v39);
v55 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pageObjectArrays, 0);
cocos2d::CCArray::addObject(v55, v39);
v41 = 255.0;
goto LABEL_28;
}
LABEL_29:
sub_14003A830((__int64)v77);
}