//
// CreateParticlePopup::createParticleSlider from 0x100473bb0 to 0x100474455 (2213 bytes)
//
// 59 xrefs:
// > CreateParticlePopup::init @ 0x100470930
// > CreateParticlePopup::init @ 0x10047096b
// > CreateParticlePopup::init @ 0x1004709a6
// > CreateParticlePopup::init @ 0x1004709e9
// > CreateParticlePopup::init @ 0x100470a24
// > CreateParticlePopup::init @ 0x100470a5f
// > CreateParticlePopup::init @ 0x100470aa2
// > CreateParticlePopup::init @ 0x100470ae1
// > CreateParticlePopup::init @ 0x100470b28
// > CreateParticlePopup::init @ 0x100470b67
// > CreateParticlePopup::init @ 0x100470bae
// > CreateParticlePopup::init @ 0x100470bed
// > CreateParticlePopup::init @ 0x100470c34
// > CreateParticlePopup::init @ 0x100470c73
// > CreateParticlePopup::init @ 0x100470cba
// > CreateParticlePopup::init @ 0x100470cf9
// > CreateParticlePopup::init @ 0x100470d40
// > CreateParticlePopup::init @ 0x100470d7f
// > CreateParticlePopup::init @ 0x100470dc6
// > CreateParticlePopup::init @ 0x100470e05
// > CreateParticlePopup::init @ 0x100470e4c
// > CreateParticlePopup::init @ 0x100470e8b
// > CreateParticlePopup::init @ 0x100470ed2
// > CreateParticlePopup::init @ 0x100470f0d
// > CreateParticlePopup::init @ 0x100470f50
// > CreateParticlePopup::init @ 0x100470f8b
// > CreateParticlePopup::init @ 0x100470fce
// > CreateParticlePopup::init @ 0x100471009
// > CreateParticlePopup::init @ 0x10047104c
// > CreateParticlePopup::init @ 0x100471087
// > CreateParticlePopup::init @ 0x1004710ca
// > CreateParticlePopup::init @ 0x100471105
// > CreateParticlePopup::init @ 0x100471148
// > CreateParticlePopup::init @ 0x100471183
// > CreateParticlePopup::init @ 0x1004711c6
// > CreateParticlePopup::init @ 0x100471201
// > CreateParticlePopup::init @ 0x100471244
// > CreateParticlePopup::init @ 0x10047127f
// > CreateParticlePopup::init @ 0x1004712c2
// > CreateParticlePopup::init @ 0x1004712fd
// > CreateParticlePopup::init @ 0x100471340
// > CreateParticlePopup::init @ 0x10047137b
// > CreateParticlePopup::init @ 0x1004713be
// > CreateParticlePopup::init @ 0x1004713f9
// > CreateParticlePopup::init @ 0x10047143c
// > CreateParticlePopup::init @ 0x100471477
// > CreateParticlePopup::init @ 0x1004714ba
// > CreateParticlePopup::init @ 0x1004714f5
// > CreateParticlePopup::init @ 0x100471538
// > CreateParticlePopup::init @ 0x100471573
// > CreateParticlePopup::init @ 0x1004715b6
// > CreateParticlePopup::init @ 0x1004715f1
// > CreateParticlePopup::init @ 0x100471634
// > CreateParticlePopup::init @ 0x10047166f
// > CreateParticlePopup::init @ 0x1004716b2
// > CreateParticlePopup::init @ 0x1004716ed
// > CreateParticlePopup::init @ 0x100471730
// > CreateParticlePopup::init @ 0x10047176b
// > CreateParticlePopup::init @ 0x1004717ae
//
// 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
//
void __fastcall CreateParticlePopup::createParticleSlider(
CreateParticlePopup *a1,
gjParticleValue a2,
int a3,
bool a4,
cocos2d::CCPoint a5,
cocos2d::CCArray *a6)
{
__int64 v6; // r9
__int64 v9; // r12
const char *v10; // rdi
cocos2d::CCLabelBMFont *v11; // r14
float v12; // xmm0_4
cocos2d::extension::CCScale9Sprite *v13; // r14
CCTextInputNode *v14; // r15
__int64 v15; // rax
intptr_t v16; // rbx
Slider *v17; // r15
unsigned __int64 *v18; // r14
SliderThumb *Thumb; // rax
CreateParticlePopup *v20; // rdi
ButtonSprite *v21; // rbx
cocos2d::CCLabelBMFont *v22; // r14
__int64 v23; // rax
const cocos2d::CCPoint *v24; // r12
unsigned __int64 *v25; // r15
CCMenuItemSpriteExtra *v26; // rbx
__int64 v27; // rax
ButtonSprite *v28; // rbx
cocos2d::CCLabelBMFont *m_label; // r14
__int64 v30; // rax
const cocos2d::CCPoint *v31; // r12
unsigned __int64 *v32; // r15
CCMenuItemSpriteExtra *v33; // rbx
__int64 v34; // rax
ButtonSprite *v35; // rbx
cocos2d::CCLabelBMFont *v36; // r14
unsigned __int64 *v37; // r15
CCMenuItemSpriteExtra *v38; // rbx
__int64 v39; // rax
__int64 v40; // [rsp+8h] [rbp-C8h]
cocos2d::CCDictionary *v41; // [rsp+10h] [rbp-C0h]
cocos2d::CCDictionary *v42; // [rsp+18h] [rbp-B8h]
cocos2d::CCDictionary *v43; // [rsp+20h] [rbp-B0h]
cocos2d::CCDictionary *v44; // [rsp+28h] [rbp-A8h]
char v45; // [rsp+30h] [rbp-A0h] BYREF
char v46; // [rsp+31h] [rbp-9Fh] BYREF
void *v47; // [rsp+40h] [rbp-90h]
std::string v48; // [rsp+48h] [rbp-88h] BYREF
cocos2d::CCMenu *m_buttonMenu; // [rsp+60h] [rbp-70h]
unsigned __int64 v50; // [rsp+68h] [rbp-68h] BYREF
unsigned __int64 v51; // [rsp+70h] [rbp-60h] BYREF
unsigned __int64 *v52; // [rsp+78h] [rbp-58h]
CreateParticlePopup *v53; // [rsp+80h] [rbp-50h]
double v54[2]; // [rsp+8Ch] [rbp-44h] BYREF
unsigned __int64 v55; // [rsp+9Ch] [rbp-34h] BYREF
gjParticleValue v56; // [rsp+A4h] [rbp-2Ch]
double v57; // 0:xmm0_8.8
double v58; // 0:xmm0_8.8
double v59; // 0:xmm0_8.8
cocos2d::CCRect v60; // 0:xmm0_8.8,8:xmm1_8.8
v40 = v6;
v52 = (unsigned __int64 *)a6;
v42 = (cocos2d::CCDictionary *)sub_1007200C0(a1->m_inputDicts, 0);
v44 = (cocos2d::CCDictionary *)sub_1007200C0(a1->m_sliderDicts, 0);
v9 = sub_1007200C0(a1->m_pageNodes, (unsigned int)(a3 - 1));
m_buttonMenu = a1->m_buttonMenu;
v41 = (cocos2d::CCDictionary *)sub_1007200C0(a1->m_inputDicts, (unsigned int)a3);
v53 = a1;
v43 = (cocos2d::CCDictionary *)sub_1007200C0(a1->m_sliderDicts, (unsigned int)a3);
v56 = a2;
CreateParticlePopup::titleForParticleValue(&v45, (unsigned int)a3, (unsigned int)a2, *(double *)&a5);
if ( (v45 & 1) != 0 )
v10 = (const char *)v47;
else
v10 = &v46;
v11 = cocos2d::CCLabelBMFont::create_3(v10, "chatFont.fnt");
if ( a4 )
v12 = 48.0;
else
v12 = 50.0;
sub_10028CBE0((float *)&v50, v12, 0.0);
sub_10028CCE0(v54, v52, &v50);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v11->setPosition)(v11, v54);
if ( v40 )
sub_10071FCD0(v40, v11);
if ( a4 )
sub_10028CBE0((float *)v54, 0.5, 0.5);
else
sub_10028CBE0((float *)v54, 1.0, 0.5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v11->setAnchorPoint)(v11, v54);
(*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *))(*(_QWORD *)v9 + 440LL))(v9, v11);
cocos2d::CCLabelBMFont::limitLabelWidth(v11, 40.0, 0.5, 0.0);
sub_10028CBF0((float *)&v50, 112.5, 40.0);
v60.origin = 0;
v60.size = 0;
sub_10028CC00((__int64)v54, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
v13 = cocos2d::extension::CCScale9Sprite::create_2("square02_small.png", v60);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v13->setOpacity)(v13, 100);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, unsigned __int64 *))v13->setContentSize)(v13, &v50);
(*(void (__fastcall **)(__int64, cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v9 + 448LL))(
v9,
v13,
0xFFFFFFFFLL);
sub_10028CBE0((float *)&v55, 80.199997, 0.0);
sub_10028CCE0(v54, v52, &v55);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, double *))v13->setPosition)(v13, v54);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float))v13->setScale)(v13, 0.40000001);
if ( v40 )
sub_10071FCD0(v40, v13);
v14 = CCTextInputNode::create(40.0, 30.0, "0", "Thonburi", 24, "bigFont.fnt");
(*(void (__fastcall **)(__int64, CCTextInputNode *, __int64))(*(_QWORD *)v9 + 448LL))(v9, v14, 20);
v15 = ((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v13->getPosition)(v13);
((void (__fastcall *)(CCTextInputNode *, __int64))v14->setPosition)(v14, v15);
CCTextInputNode::setMaxLabelScale(v14, 0.40000001);
CCTextInputNode::setMaxLabelWidth(v14, 200.0);
((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))v14->m_textField->setVisible)(v14->m_textField, 0);
v14->m_maxLabelLength = 5;
v48.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24;
strcpy(v48.__r_.__value_.__s.__data_, "0123456789.-");
CCTextInputNode::setAllowedChars((std::string *)v14, &v48);
if ( (*(_BYTE *)&v48.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v48.__r_.__value_.__l.__data_);
CCTextInputNode::setLabelPlaceholderColor(v14, (cocos2d::ccColor3B)-1004936);
CCTextInputNode::setLabelPlaceholderScale(v14, 0.40000001);
v14->m_delegate = &v53->TextInputDelegate;
((void (__fastcall *)(CCTextInputNode *, _QWORD))v14->setTag)(v14, (unsigned int)v56);
v14->m_numberInput = 1;
v16 = (unsigned int)v56;
cocos2d::CCDictionary::setObject(v41, v14, (unsigned int)v56);
cocos2d::CCDictionary::setObject(v42, v14, v16);
CreateParticlePopup::updateInputNodeStringForType(v53, v56);
v17 = Slider::create_1(
v53,
(cocos2d::SEL_MenuHandler)(unsigned __int64)CreateParticlePopup::sliderChanged,
0.60000002);
Slider::setBarVisibility(v17, 0);
(*(void (__fastcall **)(__int64, Slider *))(*(_QWORD *)v9 + 440LL))(v9, v17);
v18 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::extension::CCScale9Sprite *))v13->getPosition)(v13);
sub_10028CBE0((float *)&v55, 70.0, 0.0);
sub_10028CCE0(v54, v18, &v55);
((void (__fastcall *)(Slider *, double *))v17->setPosition)(v17, v54);
Slider::setValue(v17, 0.0);
Thumb = Slider::getThumb(v17);
((void (__fastcall *)(SliderThumb *, _QWORD))Thumb->setTag)(Thumb, (unsigned int)v56);
((void (__fastcall *)(Slider *, _QWORD))v17->setTag)(v17, (unsigned int)v56);
Slider::setMaxOffset(v17, 100.0);
((void (__fastcall *)(cocos2d::CCSprite *, float))v17->m_groove->setScaleX)(v17->m_groove, 0.30000001);
cocos2d::CCDictionary::setObject(v43, v17, v16);
cocos2d::CCDictionary::setObject(v44, v17, v16);
v20 = v53;
v17->m_delegate = &v53->SliderDelegate;
CreateParticlePopup::updateSliderForType(v20, v56);
if ( v56 == Emission )
{
v28 = ButtonSprite::create_1("Max", 40, 0, 0.80000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0);
((void (__fastcall *)(ButtonSprite *, float))v28->setScale)(v28, 0.5);
m_label = v28->m_label;
v30 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))m_label->getPosition)(m_label);
v31 = (const cocos2d::CCPoint *)m_buttonMenu;
v32 = (unsigned __int64 *)v30;
sub_10028CBE0((float *)&v55, 0.5, 0.5);
sub_10028CCE0(v54, v32, &v55);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))m_label->setPosition)(m_label, v54);
v33 = CCMenuItemSpriteExtra::create(
v28,
nullptr,
v53,
(cocos2d::SEL_MenuHandler)(unsigned __int64)CreateParticlePopup::onMaxEmission);
(*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v31 + 440LL))(v31, v33);
v34 = sub_1007200C0(v53->m_pageObjectArrays, 0);
sub_10071FCD0(v34, v33);
sub_10028CBE0((float *)&v51, 220.0, 0.0);
sub_10028CCE0((double *)&v55, v52, &v51);
*(cocos2d::CCPoint *)&v58 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v54, v31);
((void (__fastcall *)(CCMenuItemSpriteExtra *, double *, double))v33->setPosition)(v33, v54, v58);
v35 = ButtonSprite::create_1("Calc", 40, 0, 0.80000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0);
((void (__fastcall *)(ButtonSprite *, float))v35->setScale)(v35, 0.5);
v36 = v35->m_label;
v37 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v36->getPosition)(v36);
sub_10028CBE0((float *)&v55, 0.5, 0.5);
sub_10028CCE0(v54, v37, &v55);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v36->setPosition)(v36, v54);
v38 = CCMenuItemSpriteExtra::create(
v35,
nullptr,
v53,
(cocos2d::SEL_MenuHandler)(unsigned __int64)CreateParticlePopup::onCalcEmission);
(*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v31 + 440LL))(v31, v38);
v39 = sub_1007200C0(v53->m_pageObjectArrays, 0);
sub_10071FCD0(v39, v38);
sub_10028CBE0((float *)&v51, 255.0, 0.0);
sub_10028CCE0((double *)&v55, v52, &v51);
*(cocos2d::CCPoint *)&v59 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v54, v31);
((void (__fastcall *)(CCMenuItemSpriteExtra *, double *, double))v38->setPosition)(v38, v54, v59);
}
else if ( v56 == Duration )
{
v21 = ButtonSprite::create_1("Inf.", 40, 0, 0.80000001, 1, "bigFont.fnt", "GJ_button_04.png", 30.0);
((void (__fastcall *)(ButtonSprite *, float))v21->setScale)(v21, 0.5);
v22 = v21->m_label;
v23 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v22->getPosition)(v22);
v24 = (const cocos2d::CCPoint *)m_buttonMenu;
v25 = (unsigned __int64 *)v23;
sub_10028CBE0((float *)&v55, 0.5, 0.5);
sub_10028CCE0(v54, v25, &v55);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v22->setPosition)(v22, v54);
v26 = CCMenuItemSpriteExtra::create(
v21,
nullptr,
v53,
(cocos2d::SEL_MenuHandler)(unsigned __int64)CreateParticlePopup::onDurationForever);
(*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v24 + 440LL))(v24, v26);
v27 = sub_1007200C0(v53->m_pageObjectArrays, 0);
sub_10071FCD0(v27, v26);
sub_10028CBE0((float *)&v51, 220.0, 0.0);
sub_10028CCE0((double *)&v55, v52, &v51);
*(cocos2d::CCPoint *)&v57 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v54, v24);
((void (__fastcall *)(CCMenuItemSpriteExtra *, double *, double))v26->setPosition)(v26, v54, v57);
}
if ( (v45 & 1) != 0 )
operator delete(v47);
}