// // CreateParticlePopup::createParticleSlider from 0x9c36fc to 0x9c4070 (2420 bytes) // // 60 xrefs: // > CreateParticlePopup::init @ 0x9c6b34 // > CreateParticlePopup::init @ 0x9c6b70 // > CreateParticlePopup::init @ 0x9c6bb0 // > CreateParticlePopup::init @ 0x9c6bf0 // > CreateParticlePopup::init @ 0x9c6c30 // > CreateParticlePopup::init @ 0x9c6c70 // > CreateParticlePopup::init @ 0x9c6cac // > CreateParticlePopup::init @ 0x9c6cec // > CreateParticlePopup::init @ 0x9c6d28 // > CreateParticlePopup::init @ 0x9c6d68 // > CreateParticlePopup::init @ 0x9c6da4 // > CreateParticlePopup::init @ 0x9c6de4 // > CreateParticlePopup::init @ 0x9c6e20 // > CreateParticlePopup::init @ 0x9c6e64 // > CreateParticlePopup::init @ 0x9c6ea4 // > CreateParticlePopup::init @ 0x9c6ee4 // > CreateParticlePopup::init @ 0x9c6f20 // > CreateParticlePopup::init @ 0x9c6f5c // > CreateParticlePopup::init @ 0x9c6f98 // > CreateParticlePopup::init @ 0x9c6fd4 // > CreateParticlePopup::init @ 0x9c7010 // > CreateParticlePopup::init @ 0x9c704c // > CreateParticlePopup::init @ 0x9c7088 // > CreateParticlePopup::init @ 0x9c70c4 // > CreateParticlePopup::init @ 0x9c7100 // > CreateParticlePopup::init @ 0x9c7140 // > CreateParticlePopup::init @ 0x9c717c // > CreateParticlePopup::init @ 0x9c71bc // > CreateParticlePopup::init @ 0x9c71f8 // > CreateParticlePopup::init @ 0x9c7234 // > CreateParticlePopup::init @ 0x9c7270 // > CreateParticlePopup::init @ 0x9c72b0 // > CreateParticlePopup::init @ 0x9c72ec // > CreateParticlePopup::init @ 0x9c7328 // > CreateParticlePopup::init @ 0x9c7364 // > CreateParticlePopup::init @ 0x9c73a8 // > CreateParticlePopup::init @ 0x9c73e8 // > CreateParticlePopup::init @ 0x9c742c // > CreateParticlePopup::init @ 0x9c746c // > CreateParticlePopup::init @ 0x9c74b0 // > CreateParticlePopup::init @ 0x9c74f0 // > CreateParticlePopup::init @ 0x9c7534 // > CreateParticlePopup::init @ 0x9c7574 // > CreateParticlePopup::init @ 0x9c75b8 // > CreateParticlePopup::init @ 0x9c75f8 // > CreateParticlePopup::init @ 0x9c7634 // > CreateParticlePopup::init @ 0x9c7674 // > CreateParticlePopup::init @ 0x9c76b0 // > CreateParticlePopup::init @ 0x9c76ec // > CreateParticlePopup::init @ 0x9c7728 // > CreateParticlePopup::init @ 0x9c7764 // > CreateParticlePopup::init @ 0x9c77a0 // > CreateParticlePopup::init @ 0x9c77dc // > CreateParticlePopup::init @ 0x9c7818 // > CreateParticlePopup::init @ 0x9c7854 // > CreateParticlePopup::init @ 0x9c7890 // > CreateParticlePopup::init @ 0x9c78cc // > CreateParticlePopup::init @ 0x9c7908 // > CreateParticlePopup::init @ 0x9c7944 // > @ 0x2d9a8 // // 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 CreateParticlePopup::createParticleSlider( CreateParticlePopup *a1, gjParticleValue a2, int a3, bool a4, cocos2d::CCPoint a5, cocos2d::CCArray *a6) { cocos2d::CCArray *v6; // x5 _BOOL4 v10; // w22 cocos2d::CCArray *v12; // x28 cocos2d::CCNode *Page; // x25 cocos2d::CCLabelBMFont *v14; // x20 float v15; // s0 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x22 cocos2d::CCObject *v17; // x22 bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // x20 CCTextInputNode *v19; // x20 void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x28 __int64 v21; // x0 void *v22; // x0 CCTextInputNode_vtbl *v23; // x2 Slider *v24; // x20 void (__fastcall *v25)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 __int64 v26; // x22 SliderThumb *Thumb; // x0 const char *v28; // x6 cocos2d::CCLabelBMFont *v29; // x1 cocos2d::CCArray **p_m_pTargetArray; // x0 cocos2d::CCNode *v31; // x20 cocos2d::CCComponentContainer *m_pComponentContainer; // x22 void (__fastcall *visit)(cocos2d::CCComponentContainer *__hidden, float); // x25 __int64 v34; // x24 cocos2d::CCNode *v35; // x24 CCMenuItemSpriteExtra *v36; // x20 cocos2d::CCArray *PageContainer; // x0 float v38; // s0 void (__fastcall *v39)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 unsigned int *p_m_nExtraKerning; // x1 int m_nExtraKerning; // w2 cocos2d::CCNode *v42; // x22 cocos2d::CCComponentContainer *v43; // x20 void (__fastcall *v44)(cocos2d::CCComponentContainer *__hidden, float); // x28 __int64 v45; // x24 CCMenuItemSpriteExtra *v46; // x22 cocos2d::CCArray *v47; // x0 void (__fastcall *v48)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x20 const char *v49; // x6 cocos2d::CCNode *v50; // x20 cocos2d::CCComponentContainer *v51; // x22 void (__fastcall *v52)(cocos2d::CCComponentContainer *__hidden, float); // x25 __int64 v53; // x24 cocos2d::CCArray *v54; // x0 unsigned int *v55; // x1 int v56; // w2 cocos2d::CCMenu *PageMenu; // [xsp+70h] [xbp+70h] cocos2d::CCPoint *setPosition; // [xsp+78h] [xbp+78h] cocos2d::CCDictionary *v59; // [xsp+80h] [xbp+80h] cocos2d::CCDictionary *v60; // [xsp+88h] [xbp+88h] cocos2d::CCDictionary *PageSliders; // [xsp+90h] [xbp+90h] cocos2d::CCDictionary *PageInputNodes; // [xsp+98h] [xbp+98h] cocos2d::ccColor3B v63; // [xsp+A0h] [xbp+A0h] cocos2d::CCLabelBMFont *v64; // [xsp+A8h] [xbp+A8h] BYREF cocos2d::CCSize v65; // [xsp+B0h] [xbp+B0h] BYREF cocos2d::CCPoint v66; // [xsp+B8h] [xbp+B8h] BYREF cocos2d::CCPoint v67; // [xsp+C0h] [xbp+C0h] BYREF cocos2d::CCRect v68; // [xsp+C8h] [xbp+C8h] BYREF cocos2d::CCPoint v69; // 0:kr00_8.8 cocos2d::CCPoint v70; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v71; // 0:x2.16 cocos2d::SEL_MenuHandler v72; // 0:x2.16 cocos2d::SEL_MenuHandler v73; // 0:x2.16 cocos2d::CCRect v74; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v10 = a4; v12 = v6; PageInputNodes = CreateParticlePopup::getPageInputNodes(a1, 0); PageSliders = CreateParticlePopup::getPageSliders(a1, 0); Page = CreateParticlePopup::getPage(a1, a3); PageMenu = CreateParticlePopup::getPageMenu(a1, a3); v60 = CreateParticlePopup::getPageInputNodes(a1, a3); v59 = CreateParticlePopup::getPageSliders(a1, a3); CreateParticlePopup::titleForParticleValue(a2, (__int64)&v64); v14 = cocos2d::CCLabelBMFont::create(); setPosition = (cocos2d::CCPoint *)v14->setPosition; if ( v10 ) v15 = 48.0; else v15 = 50.0; cocos2d::CCPoint::CCPoint(&v67, v15, 0.0); cocos2d::CCPoint::operator+(&v68, a6, &v67); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCRect *))setPosition)(v14, &v68); if ( v12 ) cocos2d::CCArray::addObject(v12, v14); if ( v10 ) { setAnchorPoint = v14->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v68.origin, 0.5, 0.5); } else { setAnchorPoint = v14->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v68.origin, 1.0, 0.5); } setAnchorPoint(v14, &v68.origin); Page->addChild(Page, v14); cocos2d::CCLabelBMFont::limitLabelWidth(v14, 40.0, 0.5, 0.0); cocos2d::CCSize::CCSize(&v65, 112.5, 40.0); cocos2d::CCRect::CCRect(&v68, 0.0, 0.0, 40.0, 40.0); v17 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v68, v74); ((void (__fastcall *)(cocos2d::CCObject *, __int64))v17->__vftable[11].~CCObject_0)(v17, 100); ((void (__fastcall *)(cocos2d::CCObject *, cocos2d::CCSize *))v17->__vftable[3].getTag)(v17, &v65); Page->addChild_0(Page, (cocos2d::CCNode *)v17, -1); isEqual = v17->__vftable[2].isEqual; cocos2d::CCPoint::CCPoint(&v67, 80.2, 0.0); cocos2d::CCPoint::operator+(&v68, a6, &v67); isEqual(v17, (const cocos2d::CCObject *)&v68); ((void (__fastcall *)(cocos2d::CCObject *, float))v17->__vftable[2].copyWithZone)(v17, 0.4); if ( v12 ) cocos2d::CCArray::addObject(v12, v17); v19 = CCTextInputNode::create(40.0, 30.0, "0", "Thonburi"); Page->addChild_0(Page, v19, 20); v20 = v19->setPosition; v21 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v17->__vftable[2].acceptVisitor)(v17); v20(v19, (const cocos2d::CCPoint *)v21); CCTextInputNode::setMaxLabelScale(v19, 0.4); CCTextInputNode::setMaxLabelWidth(v19, 200.0); v19->m_textField->setVisible(v19->m_textField, 0); v19->m_maxLabelLength = 5; sub_D153B8((int)&v68, "0123456789.-"); CCTextInputNode::setAllowedChars((__int64)v19, (__int64)&v68); v22 = (void *)(*(_QWORD *)&v68.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v68.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(*(_QWORD *)&v68.origin - 8LL); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *(_DWORD *)(*(_QWORD *)&v68.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v68.origin - 8LL) = v56 - 1; } if ( v56 <= 0 ) operator delete(v22); } v63.r = 120; *(_WORD *)&v63.g = -3926; CCTextInputNode::setLabelPlaceholderColor(v19, v63); CCTextInputNode::setLabelPlaceholderScale(v19, 0.4); v23 = v19->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v19->m_delegate = &a1->TextInputDelegate; v23->setTag(v19, a2); v19->m_numberInput = 1; cocos2d::CCDictionary::setObject(v60, v19, (unsigned int)a2); cocos2d::CCDictionary::setObject(PageInputNodes, v19, (unsigned int)a2); CreateParticlePopup::updateInputNodeStringForType(a1, a2); v24 = (Slider *)Slider::create(a1, (void (__cdecl *)(cocos2d::CCObject *))CreateParticlePopup::sliderChanged, 0, 0.6); Slider::setBarVisibility(v24, 0); Page->addChild(Page, v24); v25 = v24->setPosition; v26 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v17->__vftable[2].acceptVisitor)(v17); cocos2d::CCPoint::CCPoint(&v67, 70.0, 0.0); cocos2d::CCPoint::operator+(&v68, v26, &v67); v25(v24, &v68.origin); Slider::setValue(v24, 0.0); Thumb = Slider::getThumb(v24); Thumb->setTag(Thumb, a2); v24->setTag(v24, a2); Slider::setMaxOffset(v24, 100.0); v24->m_groove->setScaleX(v24->m_groove, 0.3); cocos2d::CCDictionary::setObject(v59, v24, (unsigned int)a2); cocos2d::CCDictionary::setObject(PageSliders, v24, (unsigned int)a2); v24->m_delegate = &a1->SliderDelegate; CreateParticlePopup::updateSliderForType(a1, a2); if ( a2 == Duration ) { v31 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Inf.", (const char *)&qword_28, 0, 1, 0.8, "bigFont.fnt", "GJ_button_04.png", v28, 30.0); v31->setScale(v31, 0.5); m_pComponentContainer = v31[1].m_pComponentContainer; visit = m_pComponentContainer->__vftable[2].visit; v34 = ((__int64 (__fastcall *)(cocos2d::CCComponentContainer *))m_pComponentContainer->__vftable[3].~CCComponentContainer)(m_pComponentContainer); cocos2d::CCPoint::CCPoint(&v67, 0.5, 0.5); cocos2d::CCPoint::operator+(&v68, v34, &v67); ((void (__fastcall *)(cocos2d::CCComponentContainer *, cocos2d::CCRect *))visit)(m_pComponentContainer, &v68); v71.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v71.adj = (size_t)CreateParticlePopup::onDurationForever; v35 = PageMenu; v36 = CCMenuItemSpriteExtra::create(v31, nullptr, v71); PageMenu->addChild(PageMenu, v36); PageContainer = CreateParticlePopup::getPageContainer(a1, 1); cocos2d::CCArray::addObject(PageContainer, v36); v38 = 220.0; goto LABEL_17; } if ( a2 == Emission ) { v42 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Max", (const char *)&qword_28, 0, 1, 0.8, "bigFont.fnt", "GJ_button_04.png", v28, 30.0); v42->setScale(v42, 0.5); v43 = v42[1].m_pComponentContainer; v44 = v43->__vftable[2].visit; v45 = ((__int64 (__fastcall *)(cocos2d::CCComponentContainer *))v43->__vftable[3].~CCComponentContainer)(v43); cocos2d::CCPoint::CCPoint(&v67, 0.5, 0.5); cocos2d::CCPoint::operator+(&v68, v45, &v67); ((void (__fastcall *)(cocos2d::CCComponentContainer *, cocos2d::CCRect *))v44)(v43, &v68); v72.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v72.adj = (size_t)CreateParticlePopup::onMaxEmission; v46 = CCMenuItemSpriteExtra::create(v42, nullptr, v72); PageMenu->addChild(PageMenu, v46); v47 = CreateParticlePopup::getPageContainer(a1, 1); cocos2d::CCArray::addObject(v47, v46); v48 = v46->setPosition; cocos2d::CCPoint::CCPoint(&v66, 220.0, 0.0); cocos2d::CCPoint::operator+(&v67, a6, &v66); v70 = cocos2d::CCNode::convertToNodeSpace(PageMenu, &v67); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v48)(v46, &v68, v70.x, v70.y); v50 = (cocos2d::CCNode *)ButtonSprite::create( (ButtonSprite *)"Calc", (const char *)&qword_28, 0, 1, 0.8, "bigFont.fnt", "GJ_button_04.png", v49, 30.0); v50->setScale(v50, 0.5); v51 = v50[1].m_pComponentContainer; v52 = v51->__vftable[2].visit; v53 = ((__int64 (__fastcall *)(cocos2d::CCComponentContainer *))v51->__vftable[3].~CCComponentContainer)(v51); cocos2d::CCPoint::CCPoint(&v67, 0.5, 0.5); cocos2d::CCPoint::operator+(&v68, v53, &v67); ((void (__fastcall *)(cocos2d::CCComponentContainer *, cocos2d::CCRect *))v52)(v51, &v68); v73.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v73.adj = (size_t)CreateParticlePopup::onCalcEmission; v36 = CCMenuItemSpriteExtra::create(v50, nullptr, v73); v35 = PageMenu; v35->addChild(v35, v36); v54 = CreateParticlePopup::getPageContainer(a1, 1); cocos2d::CCArray::addObject(v54, v36); v38 = 255.0; LABEL_17: v39 = v36->setPosition; cocos2d::CCPoint::CCPoint(&v66, v38, 0.0); cocos2d::CCPoint::operator+(&v67, a6, &v66); v69 = cocos2d::CCNode::convertToNodeSpace(v35, &v67); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v39)(v36, &v68, v69.x, v69.y); v29 = v64; p_m_pTargetArray = &v64[-1].m_pTargetArray; if ( &v64[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 ) return; goto LABEL_18; } v29 = v64; p_m_pTargetArray = &v64[-1].m_pTargetArray; if ( &v64[-1].m_pTargetArray == (cocos2d::CCArray **)&qword_124B6B0 ) return; LABEL_18: if ( &pthread_create ) { p_m_nExtraKerning = (unsigned int *)&v29[-1].m_nExtraKerning; do m_nExtraKerning = __ldaxr(p_m_nExtraKerning); while ( __stlxr(m_nExtraKerning - 1, p_m_nExtraKerning) ); } else { m_nExtraKerning = v29[-1].m_nExtraKerning; v29[-1].m_nExtraKerning = m_nExtraKerning - 1; } if ( m_nExtraKerning <= 0 ) operator delete(p_m_pTargetArray); }