// // CreateParticlePopup::createParticleSlider from 0x1405c5f70 to 0x1405c68fe (2446 bytes) // // 60 xrefs: // > CreateParticlePopup::init @ 0x1405c3782 // > CreateParticlePopup::init @ 0x1405c37ca // > CreateParticlePopup::init @ 0x1405c3815 // > CreateParticlePopup::init @ 0x1405c3864 // > CreateParticlePopup::init @ 0x1405c38b4 // > CreateParticlePopup::init @ 0x1405c3904 // > CreateParticlePopup::init @ 0x1405c3948 // > CreateParticlePopup::init @ 0x1405c399d // > CreateParticlePopup::init @ 0x1405c39e9 // > CreateParticlePopup::init @ 0x1405c3a3e // > CreateParticlePopup::init @ 0x1405c3a8a // > CreateParticlePopup::init @ 0x1405c3add // > CreateParticlePopup::init @ 0x1405c3b28 // > CreateParticlePopup::init @ 0x1405c3b7b // > CreateParticlePopup::init @ 0x1405c3bc6 // > CreateParticlePopup::init @ 0x1405c3c1e // > CreateParticlePopup::init @ 0x1405c3c6d // > CreateParticlePopup::init @ 0x1405c3cbc // > CreateParticlePopup::init @ 0x1405c3d0b // > CreateParticlePopup::init @ 0x1405c3d5a // > CreateParticlePopup::init @ 0x1405c3da9 // > CreateParticlePopup::init @ 0x1405c3df7 // > CreateParticlePopup::init @ 0x1405c3e45 // > CreateParticlePopup::init @ 0x1405c3e97 // > CreateParticlePopup::init @ 0x1405c3ee1 // > CreateParticlePopup::init @ 0x1405c3f33 // > CreateParticlePopup::init @ 0x1405c3f7d // > CreateParticlePopup::init @ 0x1405c3fcf // > CreateParticlePopup::init @ 0x1405c4019 // > CreateParticlePopup::init @ 0x1405c4069 // > CreateParticlePopup::init @ 0x1405c40b2 // > CreateParticlePopup::init @ 0x1405c4102 // > CreateParticlePopup::init @ 0x1405c414b // > CreateParticlePopup::init @ 0x1405c4194 // > CreateParticlePopup::init @ 0x1405c41de // > CreateParticlePopup::init @ 0x1405c422e // > CreateParticlePopup::init @ 0x1405c4277 // > CreateParticlePopup::init @ 0x1405c42c7 // > CreateParticlePopup::init @ 0x1405c4310 // > CreateParticlePopup::init @ 0x1405c4360 // > CreateParticlePopup::init @ 0x1405c43a9 // > CreateParticlePopup::init @ 0x1405c43f9 // > CreateParticlePopup::init @ 0x1405c4442 // > CreateParticlePopup::init @ 0x1405c4492 // > CreateParticlePopup::init @ 0x1405c44db // > CreateParticlePopup::init @ 0x1405c4524 // > CreateParticlePopup::init @ 0x1405c456e // > CreateParticlePopup::init @ 0x1405c45bb // > CreateParticlePopup::init @ 0x1405c4605 // > CreateParticlePopup::init @ 0x1405c464e // > CreateParticlePopup::init @ 0x1405c4698 // > CreateParticlePopup::init @ 0x1405c46e1 // > CreateParticlePopup::init @ 0x1405c472b // > CreateParticlePopup::init @ 0x1405c477b // > CreateParticlePopup::init @ 0x1405c47c4 // > CreateParticlePopup::init @ 0x1405c4809 // > CreateParticlePopup::init @ 0x1405c484f // > CreateParticlePopup::init @ 0x1405c4895 // > CreateParticlePopup::init @ 0x1405c48df // > @ 0x14092e1cc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:34:51 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall CreateParticlePopup::createParticleSlider( __int64 a1, unsigned int a2, unsigned int a3, unsigned __int8 a4, __int64 a5, cocos2d::CCArray *a6) { struct cocos2d::CCObject *v9; // r13 __int64 v10; // r12 __int64 v11; // rcx const char *v12; // rcx struct cocos2d::CCObject *v13; // rbx __int64 v14; // rax void (__fastcall *v15)(struct cocos2d::CCObject *, __int64); // r14 float v16; // xmm1_4 __int64 v17; // rax __int64 v18; // rax struct cocos2d::CCObject *v19; // r14 __int64 v20; // rdx __int64 v21; // rax __int64 v22; // rdx __int64 v23; // rcx char *v24; // rdi __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rbx __int64 v28; // rsi __int64 v29; // r8 cocos2d::CCLayer *v30; // rdi __int64 v31; // rax __int64 v32; // rbx __int64 v33; // rax unsigned int v34; // ebx cocos2d::CCObject *v35; // rsi __int64 v36; // rdi __int64 v37; // rax __int64 v38; // rbx __int64 v39; // rax struct cocos2d::CCObject *v40; // rdi cocos2d::CCArray *v41; // rax float v42; // xmm1_4 cocos2d::CCObject *v43; // r14 __int64 v44; // rdi __int64 v45; // rax __int64 v46; // rbx __int64 v47; // rax struct cocos2d::CCObject *v48; // rdi cocos2d::CCArray *v49; // rax __int64 v50; // rax __int64 v51; // rbx __int64 v52; // rax cocos2d::CCObject *v53; // r14 __int64 v54; // rdi __int64 v55; // rax __int64 v56; // rbx __int64 v57; // rax cocos2d::CCArray *v58; // rax __int64 v59; // rax __int64 v60; // rbx __int64 v61; // rax void *v63; // [rsp+60h] [rbp-A8h] BYREF cocos2d::CCDictionary *v64; // [rsp+68h] [rbp-A0h] BYREF __int16 v65; // [rsp+70h] [rbp-98h] unsigned int v66; // [rsp+74h] [rbp-94h] cocos2d::CCDictionary *v67; // [rsp+78h] [rbp-90h] BYREF __int64 v68; // [rsp+80h] [rbp-88h] _BYTE v69[8]; // [rsp+88h] [rbp-80h] BYREF cocos2d::CCDictionary *v70; // [rsp+90h] [rbp-78h] BYREF _BYTE v71[8]; // [rsp+98h] [rbp-70h] BYREF cocos2d::CCDictionary *v72; // [rsp+A0h] [rbp-68h] char v73[13]; // [rsp+A8h] [rbp-60h] BYREF char v74; // [rsp+B5h] [rbp-53h] __int16 v75; // [rsp+B6h] [rbp-52h] __int64 v76; // [rsp+B8h] [rbp-50h] __int64 v77; // [rsp+C0h] [rbp-48h] _BYTE v78[16]; // [rsp+C8h] [rbp-40h] BYREF _QWORD v79[4]; // [rsp+D8h] [rbp-30h] BYREF v66 = a2; v68 = a5; v70 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 744), 0); v64 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 752), 0); v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 760), a3 - 1); v10 = *(_QWORD *)(a1 + 552); v72 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 744), a3); v67 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 752), a3); CreateParticlePopup::titleForParticleValue(v11, v79, a2); v12 = (const char *)v79; if ( v79[3] > 0xFu ) v12 = (const char *)v79[0]; v13 = cocos2d::CCLabelBMFont::create(v12, "chatFont.fnt"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, (float)(2 * (a4 ^ 1) + 48), 0.0); cocos2d::CCPoint::operator+(a5, v69, v14); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v13 + 184LL))(v13, v69); if ( a6 ) cocos2d::CCArray::addObject(a6, v13); v15 = *(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 288LL); if ( a4 ) v16 = 0.5; else v16 = 1.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, v16, 0.5); v15(v13, v17); (*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject *))(*(_QWORD *)v9 + 464LL))(v9, v13); cocos2d::CCLabelBMFont::limitLabelWidth(v13, 40.0, 0.5, 0.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v71, 112.5, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v78, 0.0, 0.0, 40.0, 40.0); v19 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v18); LOBYTE(v20) = 100; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v19 + 40) + 40LL))((__int64)v19 + 320, v20); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v19 + 312LL))(v19, v71); (*(void (__fastcall **)(struct cocos2d::CCObject *, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 456LL))( v9, v19, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, 80.199997, 0.0); cocos2d::CCPoint::operator+(a5, v69, v21); (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v19 + 184LL))(v19, v69); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v19 + 160LL))(v19); if ( a6 ) cocos2d::CCArray::addObject(a6, v19); v24 = CCTextInputNode::create(v23, v22, (__int64)"0"); (*(void (__fastcall **)(struct cocos2d::CCObject *, char *, __int64))(*(_QWORD *)v9 + 456LL))(v9, v24, 20); v25 = *(_QWORD *)v24; v26 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v19 + 200LL))(v19); (*(void (__fastcall **)(char *, __int64))(v25 + 184))(v24, v26); *((_DWORD *)v24 + 141) = 1053609165; CCTextInputNode::refreshLabel((__int64)v24); *((_DWORD *)v24 + 140) = 1128792064; CCTextInputNode::refreshLabel((__int64)v24); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v24 + 74) + 336LL))(*((_QWORD *)v24 + 74), 0); *((_DWORD *)v24 + 152) = 5; v76 = 12; v77 = 15; strcpy(v73, "0123456789.-"); v74 = 0; v75 = 0; CCTextInputNode::setAllowedChars((__int64)v24, (void **)v73); v65 = -21896; *((_WORD *)v24 + 286) = -21896; v24[574] = -16; CCTextInputNode::refreshLabel((__int64)v24); *((_DWORD *)v24 + 142) = 1053609165; CCTextInputNode::refreshLabel((__int64)v24); *((_QWORD *)v24 + 75) = a1 + 544; v27 = (int)v66; (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v24 + 64LL))(v24, v66); v24[424] = 1; v28 = v27; cocos2d::CCDictionary::setObject(v72, (struct cocos2d::CCObject *)v24, v27); cocos2d::CCDictionary::setObject(v70, (struct cocos2d::CCObject *)v24, v27); CreateParticlePopup::updateInputNodeStringForType(a1, (unsigned int)v27); v30 = Slider::create( a1, (__int64)CreateParticlePopup::sliderChanged, v29, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", 0.60000002); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v30 + 52) + 336LL))(*((_QWORD *)v30 + 52), 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, cocos2d::CCLayer *))(*(_QWORD *)v9 + 464LL))(v9, v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, 70.0, 0.0); v32 = v31; v33 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v19 + 200LL))(v19); cocos2d::CCPoint::operator+(v33, &v70, v32); (*(void (__fastcall **)(cocos2d::CCLayer *, cocos2d::CCDictionary **))(*(_QWORD *)v30 + 184LL))(v30, &v70); Slider::setValue((__int64)v30, 0.0); v34 = v66; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)v30 + 51) + 456LL) + 64LL))( *(_QWORD *)(*((_QWORD *)v30 + 51) + 456LL), v66); (*(void (__fastcall **)(cocos2d::CCLayer *, _QWORD))(*(_QWORD *)v30 + 64LL))(v30, v34); Slider::setMaxOffset((__int64)v30, 100.0); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)v30 + 53) + 120LL))(*((_QWORD *)v30 + 53)); cocos2d::CCDictionary::setObject(v67, v30, v28); cocos2d::CCDictionary::setObject(v64, v30, v28); *((_QWORD *)v30 + 55) = a1 + 672; CreateParticlePopup::updateSliderForType(a1, v34); if ( v34 == 2 ) { v63 = operator new(0x2C8u); v35 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v63); if ( v35 ) { if ( ButtonSprite::init_1( (__int64)v35, (__int64)"Inf.", 40, 0, 1061997773, 1, &qword_140704F78, (__int64)"GJ_button_04.png", 1106247680) ) { cocos2d::CCObject::autorelease(v35); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v35 + 8LL))(v35, 1); v35 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v35 + 160LL))(v35); v36 = *((_QWORD *)v35 + 79); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, 0.5, 0.5); v38 = v37; v39 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 200LL))(v36); cocos2d::CCPoint::operator+(v39, &v64, v38); (*(void (__fastcall **)(__int64, cocos2d::CCDictionary **))(*(_QWORD *)v36 + 184LL))(v36, &v64); v40 = CCMenuItemSpriteExtra::create((int)v35, 0, a1, (__int64)CreateParticlePopup::onDurationForever); (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v10 + 464LL))(v10, v40); v41 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 784), 0); cocos2d::CCArray::addObject(v41, v40); v42 = 220.0; LABEL_26: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, v42, 0.0); cocos2d::CCPoint::operator+(v68, &v64, v59); v60 = *(_QWORD *)v40; cocos2d::CCNode::convertToNodeSpace(v10, &v67, &v64); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v60 + 184))(v40, v61); goto LABEL_27; } if ( v34 == 5 ) { v63 = operator new(0x2C8u); v43 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v63); if ( v43 ) { if ( ButtonSprite::init_1( (__int64)v43, (__int64)"Max", 40, 0, 1061997773, 1, &qword_140704F78, (__int64)"GJ_button_04.png", 1106247680) ) { cocos2d::CCObject::autorelease(v43); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v43 + 8LL))(v43, 1); v43 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v43 + 160LL))(v43); v44 = *((_QWORD *)v43 + 79); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, 0.5, 0.5); v46 = v45; v47 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 200LL))(v44); cocos2d::CCPoint::operator+(v47, &v64, v46); (*(void (__fastcall **)(__int64, cocos2d::CCDictionary **))(*(_QWORD *)v44 + 184LL))(v44, &v64); v48 = CCMenuItemSpriteExtra::create((int)v43, 0, a1, (__int64)CreateParticlePopup::onMaxEmission); (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v10 + 464LL))(v10, v48); v49 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 784), 0); cocos2d::CCArray::addObject(v49, v48); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, 220.0, 0.0); cocos2d::CCPoint::operator+(v68, &v64, v50); v51 = *(_QWORD *)v48; cocos2d::CCNode::convertToNodeSpace(v10, &v67, &v64); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v51 + 184))(v48, v52); v63 = operator new(0x2C8u); v53 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v63); if ( v53 ) { if ( ButtonSprite::init_1( (__int64)v53, (__int64)"Calc", 40, 0, 1061997773, 1, &qword_140704F78, (__int64)"GJ_button_04.png", 1106247680) ) { cocos2d::CCObject::autorelease(v53); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v53 + 8LL))(v53, 1); v53 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v53 + 160LL))(v53); v54 = *((_QWORD *)v53 + 79); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v63, 0.5, 0.5); v56 = v55; v57 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v54 + 200LL))(v54); cocos2d::CCPoint::operator+(v57, &v64, v56); (*(void (__fastcall **)(__int64, cocos2d::CCDictionary **))(*(_QWORD *)v54 + 184LL))(v54, &v64); v40 = CCMenuItemSpriteExtra::create((int)v53, 0, a1, (__int64)CreateParticlePopup::onCalcEmission); (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v10 + 464LL))(v10, v40); v58 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 784), 0); cocos2d::CCArray::addObject(v58, v40); v42 = 255.0; goto LABEL_26; } LABEL_27: sub_14003D310((__int64)v79); }
GD Web Decomp Icon

GD Web Decomp

Raw Source