// // SetupPulsePopup::init from 0x5ed0a8 to 0x5ef14a (8354 bytes) // // 1 xrefs: // > SetupPulsePopup::create @ 0x5ef3c2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:26 +0000 // cocos2d::CCArray *__fastcall SetupPulsePopup::init(SetupPulsePopup *this, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCArray *v4; // r0 cocos2d::CCObject *v5; // r0 cocos2d::CCArray *v6; // r0 cocos2d::CCObject *v7; // r0 int v8; // r3 int v9; // r7 void (__fastcall *v10)(int, _DWORD *); // r9 int v11; // r5 cocos2d::CCDirector *v12; // r0 const char *v13; // r2 int v14; // r8 void (__fastcall *v15)(int, _DWORD *); // r10 void (__fastcall *v16)(int, _DWORD *); // r5 int v17; // r8 void (__fastcall *v18)(int, _DWORD *); // r9 char *v19; // r10 int *v20; // r0 int v21; // r5 void (__fastcall *v22)(int, int); // r6 int v23; // r0 int v24; // r5 int v25; // r0 int v26; // r6 void (__fastcall *v27)(int, _DWORD *); // r9 int Thumb; // r0 float v29; // s15 float v30; // s15 const char *v31; // r2 int v32; // r9 void (__fastcall *v33)(int, _DWORD *); // r6 void (__fastcall *v34)(int, _DWORD *); // r6 int v35; // r6 void (__fastcall *v36)(int, _DWORD *); // r9 int *v37; // r0 int v38; // r8 void (__fastcall *v39)(int, int); // r7 int v40; // r0 int v41; // r6 int v42; // r3 int v43; // r0 int v44; // r8 void (__fastcall *v45)(int, _DWORD *); // r7 int v46; // r0 float v47; // s15 float v48; // s15 const char *v49; // r2 int v50; // r9 void (__fastcall *v51)(int, _DWORD *); // r6 void (__fastcall *v52)(int, _DWORD *); // r6 int v53; // r6 void (__fastcall *v54)(int, _DWORD *); // r9 int *v55; // r0 int v56; // r7 void (__fastcall *v57)(int, int); // r8 int v58; // r0 int v59; // r7 int v60; // r3 int v61; // r0 int v62; // r6 void (__fastcall *v63)(int, _DWORD *); // r7 int v64; // r0 float v65; // s15 float v66; // s15 const char *v67; // r2 int v68; // r8 void (__fastcall *v69)(int, _DWORD *); // r5 ButtonSprite *v70; // r0 int v71; // r0 ButtonSprite *v72; // r0 int v73; // r0 int v74; // r8 void (__fastcall *v75)(int, _DWORD *); // r6 int v76; // r8 void (__fastcall *v77)(int, _DWORD *); // r6 const char *v78; // r2 int v79; // r0 int v80; // r8 void (__fastcall *v81)(int, _DWORD *); // r6 _BOOL4 v82; // r8 int v83; // r5 const cocos2d::CCPoint *v84; // r1 const char *v85; // r1 int v86; // r5 int v87; // r0 int v88; // r10 void (__fastcall *v89)(int, _DWORD *); // r8 const char *v90; // r2 int v91; // r8 void (__fastcall *v92)(int, _DWORD *); // r11 const cocos2d::CCPoint *v93; // r11 int v94; // r8 ButtonSprite *v95; // r0 int v96; // r0 ButtonSprite *v97; // r0 int v98; // r0 int v99; // r8 void (__fastcall *v100)(int, _DWORD *); // r11 int v101; // r8 void (__fastcall *v102)(int, _DWORD *); // r11 const cocos2d::CCPoint *v103; // r11 int v104; // r7 int v105; // r10 int v106; // r10 const cocos2d::CCPoint *v107; // r11 int v108; // r7 int v109; // r10 const cocos2d::CCPoint *v110; // r7 int v111; // r11 int v112; // r11 int v113; // r10 int v114; // r10 const cocos2d::CCPoint *v115; // r8 int v116; // r11 int v117; // r0 int v118; // r10 const cocos2d::CCPoint *v119; // r8 int v120; // r11 int v121; // r0 int v122; // r11 const cocos2d::CCPoint *v123; // r10 int v124; // r8 int v125; // r0 cocos2d::CCObject *v126; // r1 cocos2d::CCObject *v127; // r1 cocos2d::CCObject *v128; // r6 void (__fastcall *v129)(cocos2d::CCObject *, _DWORD *); // r8 void (__fastcall *v130)(cocos2d::CCObject *, _DWORD *); // r8 cocos2d::extension::CCControlColourPicker *v131; // r0 int v132; // r0 int v133; // r8 void (__fastcall *v134)(int, _DWORD *); // r6 int v135; // r6 ButtonSprite *v136; // r8 ButtonSprite *v137; // r0 int v138; // r10 cocos2d::CCObject *v139; // r8 cocos2d::CCObject *v140; // r10 const cocos2d::CCPoint *v141; // r11 int v142; // r11 const char *v143; // r1 int v144; // r0 int v145; // r11 void (__fastcall *v146)(int, _DWORD *); // r10 __int64 v147; // r0 float v148; // s18 int v149; // r0 int v150; // r8 void (__fastcall *v151)(int, _DWORD *); // r10 int v152; // r11 float v153; // r1 const char *v154; // r2 char *v155; // r0 cocos2d::CCObject *v156; // r8 float v157; // r1 cocos2d::CCObject *v158; // r8 void (__fastcall *v159)(cocos2d::CCObject *, _DWORD *); // r2 CCTextInputNode *v160; // r0 int *v161; // r5 int v162; // r3 const char *v163; // r1 size_t v164; // r0 int *v165; // r0 int v166; // r1 void (__fastcall *v167)(int *, int); // r3 int v168; // r2 int v169; // r0 int v170; // r3 int v171; // r9 void (__fastcall *v172)(int, _DWORD *); // r5 const char *v173; // r2 cocos2d::CCObject *v174; // r5 cocos2d::CCObject *v175; // r5 void (__fastcall *v176)(cocos2d::CCObject *, _DWORD *); // r3 int *v177; // r0 int v178; // r6 const char *v179; // r1 int v180; // r6 cocos2d::CCObject *v181; // r6 const char *v182; // r1 int v183; // r6 cocos2d::CCObject *v184; // r11 void (__fastcall *v185)(cocos2d::CCObject *, _DWORD *); // r10 const char *v186; // r1 int v187; // r0 cocos2d::CCObject *v188; // r7 const cocos2d::CCPoint *v189; // r11 int v190; // r3 cocos2d::CCObject *v191; // r1 int v192; // r3 cocos2d::CCObject *v193; // r1 int v194; // r1 int v195; // r2 int v196; // r3 int v197; // r1 int v198; // r2 int v199; // r3 char *v201; // [sp+8h] [bp-1E4h] char *v202; // [sp+8h] [bp-1E4h] char *v203; // [sp+8h] [bp-1E4h] char *v204; // [sp+8h] [bp-1E4h] float v205; // [sp+10h] [bp-1DCh] float v206; // [sp+10h] [bp-1DCh] float v207; // [sp+10h] [bp-1DCh] float v208; // [sp+10h] [bp-1DCh] float v209; // [sp+10h] [bp-1DCh] float v210; // [sp+10h] [bp-1DCh] void (__fastcall *v211)(cocos2d::CCObject *, _BYTE *); // [sp+30h] [bp-1BCh] cocos2d::CCPoint *v212; // [sp+34h] [bp-1B8h] char *v213; // [sp+38h] [bp-1B4h] cocos2d::CCPoint *v214; // [sp+3Ch] [bp-1B0h] cocos2d::CCPoint *v215; // [sp+3Ch] [bp-1B0h] cocos2d::CCPoint *v216; // [sp+3Ch] [bp-1B0h] cocos2d::CCPoint *v217; // [sp+3Ch] [bp-1B0h] cocos2d::CCArray *v218; // [sp+40h] [bp-1ACh] char *v219; // [sp+48h] [bp-1A4h] char *v220; // [sp+48h] [bp-1A4h] _BYTE v221[4]; // [sp+5Ch] [bp-190h] BYREF int v222; // [sp+60h] [bp-18Ch] int v223; // [sp+64h] [bp-188h] int v224; // [sp+68h] [bp-184h] int v225; // [sp+6Ch] [bp-180h] int v226; // [sp+70h] [bp-17Ch] float v227; // [sp+74h] [bp-178h] BYREF float v228; // [sp+78h] [bp-174h] _BYTE v229[8]; // [sp+7Ch] [bp-170h] BYREF _BYTE v230[8]; // [sp+84h] [bp-168h] BYREF _BYTE v231[8]; // [sp+8Ch] [bp-160h] BYREF _BYTE v232[8]; // [sp+94h] [bp-158h] BYREF _BYTE v233[8]; // [sp+9Ch] [bp-150h] BYREF _BYTE v234[8]; // [sp+A4h] [bp-148h] BYREF _BYTE v235[8]; // [sp+ACh] [bp-140h] BYREF _BYTE v236[8]; // [sp+B4h] [bp-138h] BYREF _BYTE v237[8]; // [sp+BCh] [bp-130h] BYREF _BYTE v238[8]; // [sp+C4h] [bp-128h] BYREF _BYTE v239[8]; // [sp+CCh] [bp-120h] BYREF _BYTE v240[8]; // [sp+D4h] [bp-118h] BYREF _BYTE v241[8]; // [sp+DCh] [bp-110h] BYREF _BYTE v242[8]; // [sp+E4h] [bp-108h] BYREF _BYTE v243[8]; // [sp+ECh] [bp-100h] BYREF char v244[8]; // [sp+F4h] [bp-F8h] BYREF _BYTE v245[8]; // [sp+FCh] [bp-F0h] BYREF int (__fastcall *v246)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+104h] [bp-E8h] int v247; // [sp+108h] [bp-E4h] int (__fastcall *v248)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+10Ch] [bp-E0h] int v249; // [sp+110h] [bp-DCh] int (__fastcall *v250)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+114h] [bp-D8h] int v251; // [sp+118h] [bp-D4h] IDNameInput *(__fastcall *v252)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+11Ch] [bp-D0h] int v253; // [sp+120h] [bp-CCh] IDNameInput *(__fastcall *v254)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+124h] [bp-C8h] int v255; // [sp+128h] [bp-C4h] int (__fastcall *v256)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+12Ch] [bp-C0h] int v257; // [sp+130h] [bp-BCh] _DWORD *(__fastcall *v258)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+134h] [bp-B8h] int v259; // [sp+138h] [bp-B4h] _DWORD *(__fastcall *v260)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+13Ch] [bp-B0h] int v261; // [sp+140h] [bp-ACh] _DWORD (__fastcall *v262)(SetupTriggerPopup *__hidden, cocos2d::CCObject *); // [sp+144h] [bp-A8h] int v263; // [sp+148h] [bp-A4h] _DWORD (__fastcall *v264)(SetupTriggerPopup *__hidden, cocos2d::CCObject *); // [sp+14Ch] [bp-A0h] int v265; // [sp+150h] [bp-9Ch] _DWORD (*v266)(SetupTriggerPopup *__hidden, cocos2d::CCObject *); // [sp+154h] [bp-98h] int v267; // [sp+158h] [bp-94h] unsigned int (__fastcall *v268)(unsigned int, cocos2d::CCObject *); // [sp+15Ch] [bp-90h] int v269; // [sp+160h] [bp-8Ch] unsigned int (__fastcall *v270)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+164h] [bp-88h] int v271; // [sp+168h] [bp-84h] unsigned int (__fastcall *v272)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+16Ch] [bp-80h] int v273; // [sp+170h] [bp-7Ch] unsigned int (__fastcall *v274)(unsigned int, cocos2d::CCObject *); // [sp+174h] [bp-78h] int v275; // [sp+178h] [bp-74h] int (__fastcall *v276)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+17Ch] [bp-70h] int v277; // [sp+180h] [bp-6Ch] int (__fastcall *v278)(SetupPulsePopup *, cocos2d::CCObject *); // [sp+184h] [bp-68h] int v279; // [sp+188h] [bp-64h] _DWORD v280[2]; // [sp+18Ch] [bp-60h] BYREF _DWORD v281[2]; // [sp+194h] [bp-58h] BYREF int v282[3]; // [sp+19Ch] [bp-50h] BYREF int v283; // [sp+1A8h] [bp-44h] BYREF int v284; // [sp+1ACh] [bp-40h] int v285; // [sp+1B0h] [bp-3Ch] _BYTE v286[16]; // [sp+1B4h] [bp-38h] BYREF _BYTE v287[16]; // [sp+1C4h] [bp-28h] BYREF _DWORD v288[4]; // [sp+1D4h] [bp-18h] BYREF v4 = (cocos2d::CCArray *)SetupTriggerPopup::init(this, a2, a3, 450.0, 310.0, 1, 0.0); v218 = v4; if ( v4 ) { *((_BYTE *)this + 872) = 1; v5 = (cocos2d::CCObject *)cocos2d::CCArray::create(v4); *((_DWORD *)this + 182) = v5; v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v5); v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6); *((_DWORD *)this + 183) = v7; cocos2d::CCObject::retain(v7); v8 = *(_DWORD *)this; *((_BYTE *)this + 848) = 1; (*(void (__fastcall **)(SetupPulsePopup *))(v8 + 680))(this); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "Setup Pulse Effect", 0x12u); v9 = SetupTriggerPopup::addTitle(this, &v283); std::string::~string((int)&v283); v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 92); v11 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 96))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, -65.0, 0.0); cocos2d::CCPoint::operator+(v288, v11, v287); v10(v9, v288); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v283); std::string::~string((int)&v283); memset(v282, 0, sizeof(v282)); std::string::__init(v282, "Help", 4u); v283 = 0; v284 = 0; v285 = 0; std::string::__init( &v283, "Applies a temporary color effect to a group or channel. Set which using Target Type.\n" "If set to group, you can toggle between main and detail colors.\n" "Color Mode tints the target to the selected color.\n" "HSV Mode modifies the base color's hue, saturation, and brightness values.\n" "Exclusive disables all other pulses using the same ID when activated (not visible in editor).", 0x198u); SetupTriggerPopup::addHelpButton(this, v282, &v283, 1065353216); std::string::~string((int)&v283); v12 = (cocos2d::CCDirector *)std::string::~string((int)v282); cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v227); qmemcpy(v221, "l<$", 3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v229, -10.0, 12.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v230, (float)(v227 * 0.5) - 29.0, (float)(v228 * 0.5) - 44.0); v14 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Fade In: ", "goldFont.fnt", v13); (*(void (__fastcall **)(int, float))(*(_DWORD *)v14 + 80))(v14, 0.5); v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::operator+(v288, v230, v229); v15(v14, v288); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 1.0, 0.5); v16(v14, v288); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v14, 10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v286, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v288, (const cocos2d::CCRect *)v286); v17 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v288); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 480))(v17, v221); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v231, 60.0, 20.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 160))(v17, v231); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v17, -1); v18 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v17 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 40.0, 0.0); cocos2d::CCPoint::operator+(v288, v230, v287); v18(v17, v288); if ( *((float *)this + 213) == -0.1 ) v19 = "Mixed"; else v19 = "Num"; v20 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 20.0, v19, "Thonburi", (const char *)&dword_18, "bigFont.fnt", v201); *((_DWORD *)this + 198) = v20; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v20, 20); v21 = *((_DWORD *)this + 198); v22 = *(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 92); v23 = (*(int (__fastcall **)(int))(*(_DWORD *)v17 + 96))(v17); v22(v21, v23); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 198), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 198), 50.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 198) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 198) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 198) + 424) = 4; v24 = *((_DWORD *)this + 198); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v24, (unsigned __int8 *)&v283); std::string::~string((int)&v283); LOWORD(v222) = -21896; BYTE2(v222) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 198), v222); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 198), 0.5); v213 = (char *)this + 440; *(_DWORD *)(*((_DWORD *)this + 198) + 420) = (char *)this + 440; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 198) + 36))(*((_DWORD *)this + 198), 8); *(_BYTE *)(*((_DWORD *)this + 198) + 324) = 1; v247 = 0; v246 = SetupPulsePopup::sliderChanged; v25 = Slider::create((int)this, (int)SetupPulsePopup::sliderChanged, 0, 0.8); *((_DWORD *)this + 184) = v25; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v25); Slider::setBarVisibility(*((Slider **)this + 184), 1); v26 = *((_DWORD *)this + 184); v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, -96.0, -1.5); cocos2d::CCPoint::operator+(v288, v230, v287); v27(v26, v288); Thumb = Slider::getThumb(*((Slider **)this + 184)); (*(void (__fastcall **)(int, int))(*(_DWORD *)Thumb + 36))(Thumb, 1); v29 = *((float *)this + 213); if ( v29 == -0.1 ) { v30 = 0.0; } else { v30 = v29 / 10.0; if ( v30 >= 1.0 ) { v30 = 1.0; } else if ( v30 <= 0.0 ) { v30 = 0.0; } } Slider::setValue(*((Slider **)this + 184), v30); SetupPulsePopup::updateFadeInLabel(this, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 0.0, -27.0); cocos2d::CCPoint::operator+(v288, v230, v287); cocos2d::CCPoint::operator=(v230, v288); v32 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Hold: ", "goldFont.fnt", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1056964608); v33 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v32 + 92); cocos2d::CCPoint::operator+(v288, v230, v229); v33(v32, v288); v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v32 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 1.0, 0.5); v34(v32, v288); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v32, 10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v288, (const cocos2d::CCRect *)v286); v35 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v288); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v35 + 480))(v35, v221); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v35 + 160))(v35, v231); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v35, -1); v36 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v35 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 40.0, 0.0); cocos2d::CCPoint::operator+(v288, v230, v287); v36(v35, v288); if ( *((float *)this + 214) == -0.1 ) v19 = "Mixed"; v37 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 20.0, v19, "Thonburi", (const char *)&dword_18, "bigFont.fnt", v202); *((_DWORD *)this + 199) = v37; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v37, 20); v38 = *((_DWORD *)this + 199); v39 = *(void (__fastcall **)(int, int))(*(_DWORD *)v38 + 92); v40 = (*(int (__fastcall **)(int))(*(_DWORD *)v35 + 96))(v35); v39(v38, v40); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 199), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 199), 50.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 199) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 199) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 199) + 424) = 4; v41 = *((_DWORD *)this + 199); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v41, (unsigned __int8 *)&v283); std::string::~string((int)&v283); LOWORD(v223) = -21896; BYTE2(v223) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 199), v223); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 199), 0.5); *(_DWORD *)(*((_DWORD *)this + 199) + 420) = v213; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 199) + 36))(*((_DWORD *)this + 199), 9); v42 = *((_DWORD *)this + 199); v248 = SetupPulsePopup::sliderChanged; *(_BYTE *)(v42 + 324) = 1; v249 = 0; v43 = Slider::create((int)this, (int)v248, 0, 0.8); *((_DWORD *)this + 185) = v43; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v43); Slider::setBarVisibility(*((Slider **)this + 185), 1); v44 = *((_DWORD *)this + 185); v45 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v44 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, -96.0, -1.5); cocos2d::CCPoint::operator+(v288, v230, v287); v45(v44, v288); v46 = Slider::getThumb(*((Slider **)this + 185)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v46 + 36))(v46, 2); v47 = *((float *)this + 214); if ( v47 == -0.1 ) { v48 = 0.0; } else { v48 = v47 / 10.0; if ( v48 >= 1.0 ) { v48 = 1.0; } else if ( v48 <= 0.0 ) { v48 = 0.0; } } Slider::setValue(*((Slider **)this + 185), v48); SetupPulsePopup::updateHoldLabel(this, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 0.0, -27.0); cocos2d::CCPoint::operator+(v288, v230, v287); cocos2d::CCPoint::operator=(v230, v288); v50 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Fade Out: ", "goldFont.fnt", v49); (*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 80))(v50, 1056964608); v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 92); cocos2d::CCPoint::operator+(v288, v230, v229); v51(v50, v288); v52 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v50 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 1.0, 0.5); v52(v50, v288); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v50, 10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v288, (const cocos2d::CCRect *)v286); v53 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v288); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v53 + 480))(v53, v221); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v53 + 160))(v53, v231); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v53, -1); v54 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v53 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 40.0, 0.0); cocos2d::CCPoint::operator+(v288, v230, v287); v54(v53, v288); if ( *((float *)this + 215) == -0.1 ) v19 = "Mixed"; v55 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 20.0, v19, "Thonburi", (const char *)&dword_18, "bigFont.fnt", v203); *((_DWORD *)this + 200) = v55; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v55, 20); v56 = *((_DWORD *)this + 200); v57 = *(void (__fastcall **)(int, int))(*(_DWORD *)v56 + 92); v58 = (*(int (__fastcall **)(int))(*(_DWORD *)v53 + 96))(v53); v57(v56, v58); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 200), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 200), 50.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 200) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 200) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 200) + 424) = 4; v59 = *((_DWORD *)this + 200); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v59, (unsigned __int8 *)&v283); std::string::~string((int)&v283); LOWORD(v224) = -21896; BYTE2(v224) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 200), v224); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 200), 0.5); *(_DWORD *)(*((_DWORD *)this + 200) + 420) = v213; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 200) + 36))(*((_DWORD *)this + 200), 10); v60 = *((_DWORD *)this + 200); v250 = SetupPulsePopup::sliderChanged; *(_BYTE *)(v60 + 324) = 1; v251 = 0; v61 = Slider::create((int)this, (int)v250, 0, 0.8); *((_DWORD *)this + 186) = v61; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v61); Slider::setBarVisibility(*((Slider **)this + 186), 1); v62 = *((_DWORD *)this + 186); v63 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v62 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, -96.0, -1.5); cocos2d::CCPoint::operator+(v288, v230, v287); v63(v62, v288); v64 = Slider::getThumb(*((Slider **)this + 186)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v64 + 36))(v64, 3); v65 = *((float *)this + 215); if ( v65 == -0.1 ) { v66 = 0.0; } else { v66 = v65 / 10.0; if ( v66 >= 1.0 ) { v66 = 1.0; } else if ( v66 <= 0.0 ) { v66 = 0.0; } } Slider::setValue(*((Slider **)this + 186), v66); SetupPulsePopup::updateFadeOutLabel(this, nullptr); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v232, (float)(v227 * 0.5) + 145.0, (float)(v228 * 0.5) - 60.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v233, *((const cocos2d::CCPoint **)this + 111)); v68 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Target Type", "goldFont.fnt", v67); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v68); v69 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v68 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 0.0, 25.0); cocos2d::CCPoint::operator+(v288, v232, v287); v69(v68, v288); (*(void (__fastcall **)(int, int))(*(_DWORD *)v68 + 80))(v68, 1056964608); v70 = ButtonSprite::create( (ButtonSprite *)"Channel", (const char *)&word_2C + 1, 0, 0.45, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(25.0), v205); v253 = 0; v252 = SetupPulsePopup::onSelectTargetMode; v71 = CCMenuItemSpriteExtra::create((int)v70, 0, (int)this, (int)SetupPulsePopup::onSelectTargetMode, 0); *((_DWORD *)this + 187) = v71; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v71); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 187) + 36))(*((_DWORD *)this + 187), 0); v72 = ButtonSprite::create( (ButtonSprite *)"Group", (const char *)&word_2C + 1, 0, 0.45, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(25.0), v206); v254 = SetupPulsePopup::onSelectTargetMode; v255 = 0; v73 = CCMenuItemSpriteExtra::create((int)v72, 0, (int)this, (int)SetupPulsePopup::onSelectTargetMode, 0); *((_DWORD *)this + 188) = v73; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v73); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 188) + 36))(*((_DWORD *)this + 188), 1); v74 = *((_DWORD *)this + 187); v75 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v74 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, -35.0, 0.0); cocos2d::CCPoint::operator+(v288, v233, v287); v75(v74, v288); v76 = *((_DWORD *)this + 188); v77 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v76 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 35.0, 0.0); cocos2d::CCPoint::operator+(v288, v233, v287); v77(v76, v288); v79 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Channel ID", "goldFont.fnt", v78); *((_DWORD *)this + 189) = v79; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v79); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 189) + 80))(*((_DWORD *)this + 189), 1056964608); v80 = *((_DWORD *)this + 189); v81 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v80 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v287, 0.0, -35.0); cocos2d::CCPoint::operator+(v288, v232, v287); v81(v80, v288); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 0.0, -65.0); cocos2d::CCPoint::operator+(v234, v232, v288); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v235, 50.0, 30.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v287, 0.0, 0.0, 40.0, 40.0); v82 = *((_DWORD *)this + 217) == 1; v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, &unk_B6B226, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, (const cocos2d::CCPoint *)v234); v83 = IDNameInput::create((int)this, (int)v213, v82, 51, (int)&v283, (int)v288, 0.8, (int)&byte_6, 0, 0, 0); std::string::~string((int)&v283); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(v83 + 320) + 124))( *(_DWORD *)(v83 + 320), 0x40000000, 0); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(v83 + 324) + 124))( *(_DWORD *)(v83 + 324), -1073741824, 0); v84 = *((const cocos2d::CCPoint **)this + 111); *((_DWORD *)this + 201) = *(_DWORD *)(v83 + 300); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v236, v84); v86 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v85); (*(void (__fastcall **)(int, int))(*(_DWORD *)v86 + 80))(v86, 1061997773); v257 = 0; v256 = SetupPulsePopup::onSelectSpecialTargetID; v87 = CCMenuItemSpriteExtra::create(v86, 0, (int)this, (int)SetupPulsePopup::onSelectSpecialTargetID, 0); *((_DWORD *)this + 197) = v87; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v87); v88 = *((_DWORD *)this + 197); v89 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v88 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 50.0, 30.0); cocos2d::CCPoint::operator+(v288, v236, v281); v89(v88, v288); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 197) + 172))(*((_DWORD *)this + 197), 0); v91 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Pulse Mode", "goldFont.fnt", v90); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v91); v92 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v91 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 0.0, 75.0); cocos2d::CCPoint::operator+(v288, v232, v281); v92(v91, v288); (*(void (__fastcall **)(int, int))(*(_DWORD *)v91 + 80))(v91, 1056964608); v93 = *((const cocos2d::CCPoint **)this + 111); v94 = (*(int (__fastcall **)(int))(*(_DWORD *)v91 + 96))(v91); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 0.0, -25.0); cocos2d::CCPoint::operator+(v288, v94, v281); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v237, v93); v95 = ButtonSprite::create( (ButtonSprite *)"Color", (const char *)&word_2C + 1, 0, 0.45, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(25.0), v207); v259 = 0; v258 = SetupPulsePopup::onSelectPulseMode; v96 = CCMenuItemSpriteExtra::create((int)v95, 0, (int)this, (int)SetupPulsePopup::onSelectPulseMode, 0); *((_DWORD *)this + 194) = v96; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v96); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 194) + 36))(*((_DWORD *)this + 194), 0); v97 = ButtonSprite::create( (ButtonSprite *)"HSV", (const char *)&word_2C + 1, 0, 0.45, 1, "bigFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(25.0), v208); v260 = SetupPulsePopup::onSelectPulseMode; v261 = 0; v98 = CCMenuItemSpriteExtra::create((int)v97, 0, (int)this, (int)SetupPulsePopup::onSelectPulseMode, 0); *((_DWORD *)this + 195) = v98; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v98); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 195) + 36))(*((_DWORD *)this + 195), 1); v99 = *((_DWORD *)this + 194); v100 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v99 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, -35.0, 0.0); cocos2d::CCPoint::operator+(v288, v237, v281); v100(v99, v288); v101 = *((_DWORD *)this + 195); v102 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v101 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 35.0, 0.0); cocos2d::CCPoint::operator+(v288, v237, v281); v102(v101, v288); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v238, (float)(v227 * 0.5) - 200.0, (float)(v228 * 0.5) - 130.0); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "Touch\nTriggered", 0xFu); v103 = *((const cocos2d::CCPoint **)this + 111); v263 = 0; v104 = *((unsigned __int8 *)this + 536); v262 = SetupTriggerPopup::onTouchTriggered; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, (const cocos2d::CCPoint *)v238); v105 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 8.0, 0.0); *((_DWORD *)this + 135) = GameToolbox::createToggleButton( (int)&v283, (int)v262, v263, v104, v103, (int)v288, (int)this, v105, 0.7, 0.3, 0.0, (int)v281, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)&v283); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "Spawn\nTriggered", 0xFu); v106 = *((unsigned __int8 *)this + 537); v265 = 0; v107 = *((const cocos2d::CCPoint **)this + 111); v264 = SetupTriggerPopup::onSpawnedByTrigger; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v280, 90.0, 0.0); cocos2d::CCPoint::operator+(v281, v238, v280); v108 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 8.0, 0.0); *((_DWORD *)this + 136) = GameToolbox::createToggleButton( (int)&v283, (int)v264, v265, v106, v107, (int)v281, (int)this, v108, 0.7, 0.3, 0.0, (int)v288, "bigFont.fnt", 0, 0, nullptr); std::string::~string((int)&v283); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "Multi\nTrigger", 0xDu); v109 = *((unsigned __int8 *)this + 552); v267 = 0; v110 = *((const cocos2d::CCPoint **)this + 111); v266 = SetupTriggerPopup::onMultiTrigger; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, (float)(v227 * 0.5) + 60.0, (float)(v228 * 0.5) - 82.0); v111 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 2.0, -39.0); GameToolbox::createToggleButton( (int)&v283, (int)v266, v267, v109, v110, (int)v281, (int)this, v111, 0.6, 0.25, 0.0, (int)v288, "bigFont.fnt", 1, 0, *((cocos2d::CCArray **)this + 137)); std::string::~string((int)&v283); SetupTriggerPopup::updateMultiTriggerBtn(this); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "Exclusive", 9u); v112 = *((unsigned __int8 *)this + 873); v269 = 0; v268 = SetupPulsePopup::onExclusive; v214 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, (float)(v227 * 0.5) + 60.0, (float)(v228 * 0.5) - 130.0); v113 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 0.0, -32.0); GameToolbox::createToggleButton( (int)&v283, (int)v268, v269, v112, v214, (int)v281, (int)this, v113, 0.7, 0.3, 0.0, (int)v288, "bigFont.fnt", 1, 0, nullptr); std::string::~string((int)&v283); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v239, (float)(v227 * 0.5) + 95.0, (float)(v228 * 0.5) + 130.0); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "Main\nOnly", 9u); v114 = *((unsigned __int8 *)this + 836); v271 = 0; v115 = *((const cocos2d::CCPoint **)this + 111); v270 = SetupPulsePopup::onGroupMainOnly; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, (const cocos2d::CCPoint *)v239); v116 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 8.0, 0.0); *((_DWORD *)this + 203) = GameToolbox::createToggleButton( (int)&v283, (int)v270, v271, v114, v115, (int)v288, (int)this, v116, 0.7, 0.3, 0.0, (int)v281, "bigFont.fnt", 0, 1100, nullptr); std::string::~string((int)&v283); v117 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 240))(*((_DWORD *)this + 115), 1100); v283 = 0; v284 = 0; v285 = 0; *((_DWORD *)this + 206) = v117; std::string::__init(&v283, "Detail\nOnly", 0xBu); v273 = 0; v272 = SetupPulsePopup::onGroupSecondaryOnly; v118 = *((unsigned __int8 *)this + 837); v119 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v280, 0.0, -30.0); cocos2d::CCPoint::operator+(v281, v239, v280); v120 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 8.0, 0.0); *((_DWORD *)this + 204) = GameToolbox::createToggleButton( (int)&v283, (int)v272, v273, v118, v119, (int)v281, (int)this, v120, 0.7, 0.3, 0.0, (int)v288, "bigFont.fnt", 0, 1200, nullptr); std::string::~string((int)&v283); v121 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 240))(*((_DWORD *)this + 115), 1200); v283 = 0; v284 = 0; v285 = 0; *((_DWORD *)this + 207) = v121; std::string::__init(&v283, "Static\nHSV", 0xAu); v275 = 0; v122 = *((unsigned __int8 *)this + 838); v274 = SetupPulsePopup::onHSVLegacyMode; v123 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v280, 68.0, 0.0); cocos2d::CCPoint::operator+(v281, v239, v280); v124 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 8.0, 0.0); *((_DWORD *)this + 205) = GameToolbox::createToggleButton( (int)&v283, (int)v274, v275, v122 ^ 1, v123, (int)v281, (int)this, v124, 0.7, 0.3, 0.0, (int)v288, "bigFont.fnt", 0, 1300, nullptr); std::string::~string((int)&v283); v125 = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 240))(*((_DWORD *)this + 115), 1300); v126 = *((cocos2d::CCObject **)this + 205); *((_DWORD *)this + 208) = v125; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), v126); v127 = *((cocos2d::CCObject **)this + 208); if ( v127 ) cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), v127); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v288, 0.0, 0.0, 80.0, 80.0); v128 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_001.png", v288); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v128 + 456))(v128, 75); v129 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v128 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v288, 260.0, 145.0); v129(v128, v288); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v128, -1); v130 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v128 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, (float)(v227 * 0.5) - 65.0, (float)(v228 * 0.5) + 52.0); v130(v128, v288); v131 = (cocos2d::extension::CCControlColourPicker *)cocos2d::CCArray::addObject( *((cocos2d::CCArray **)this + 182), v128); v132 = cocos2d::extension::CCControlColourPicker::create(v131); *((_DWORD *)this + 180) = v132; *(_DWORD *)(v132 + 400) = (char *)this + 712; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 180), 2); v133 = *((_DWORD *)this + 180); v134 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v133 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, (float)(v227 * 0.5) - 25.0, (float)(v228 * 0.5) + 35.0); v134(v133, v288); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 180) + 80))(*((_DWORD *)this + 180), 1061997773); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), *((cocos2d::CCObject **)this + 180)); v135 = 0; v136 = ButtonSprite::create( (ButtonSprite *)"Copy", (const char *)&word_28, 0, 0.6, 1, "goldFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v209); v137 = ButtonSprite::create( (ButtonSprite *)"Paste", (const char *)&word_28, 0, 0.6, 1, "goldFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v210); v277 = 0; v276 = SetupPulsePopup::onCopy; v138 = (int)v137; v139 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v136, 0, (int)this, (int)SetupPulsePopup::onCopy, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v139); v279 = 0; v278 = SetupPulsePopup::onPaste; v140 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v138, 0, (int)this, (int)SetupPulsePopup::onPaste, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v140); v141 = *((const cocos2d::CCPoint **)this + 111); v219 = *(char **)(*(_DWORD *)v139 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, (float)(v227 * 0.5) + 190.0, (float)(v228 * 0.5) + 130.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v288, v141); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v219)(v139, v288); v220 = *(char **)(*(_DWORD *)v140 + 92); v142 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v139 + 96))(v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, 0.0, -40.0); cocos2d::CCPoint::operator+(v288, v142, v281); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v220)(v140, v288); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), v139); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), v140); v144 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v143); *((_DWORD *)this + 191) = v144; (*(void (__fastcall **)(int, int))(*(_DWORD *)v144 + 80))(v144, 1061997773); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 191), 5); v145 = *((_DWORD *)this + 191); v146 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v145 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v288, (float)((float)(v227 * 0.5) - 135.0) - 35.0, (float)((float)(v228 * 0.5) + 60.0) + 40.0); v146(v145, v288); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), *((cocos2d::CCObject **)this + 191)); v147 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**((_DWORD **)this + 191) + 164))(*((_DWORD *)this + 191)); v148 = *(float *)v147; v149 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"whiteSquare60_001.png", (const char *)HIDWORD(v147)); *((_DWORD *)this + 192) = v149; (*(void (__fastcall **)(int, int))(*(_DWORD *)v149 + 64))(v149, 1061997773); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 192) + 72))(*((_DWORD *)this + 192), 1053609165); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 192), 5); v150 = *((_DWORD *)this + 192); v151 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v150 + 92); v152 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 191) + 96))(*((_DWORD *)this + 191)); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v281, 0.0, (float)((float)-(float)(v148 * 0.8) * 0.5) - (float)((float)(v148 * 0.4) * 0.5)); cocos2d::CCPoint::operator+(v288, v152, v281); v151(v150, v288); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), *((cocos2d::CCObject **)this + 192)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v240, (float)(v227 * 0.5) - 120.0, (float)(v228 * 0.5) + 50.0); v153 = 15.0; while ( 1 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, v153, (float)(1.5 - (float)v135) * 28.0); cocos2d::CCPoint::operator+(v280, v240, v288); if ( v135 ) { if ( v135 == 1 ) { v155 = "G:"; } else { v154 = "HEX:"; if ( v135 == 2 ) v155 = "B:"; else v155 = "HEX:"; } } else { v155 = "R:"; } v156 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v155, "goldFont.fnt", v154); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v156 + 80))(v156, 1056964608); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v156); v215 = *(cocos2d::CCPoint **)(*(_DWORD *)v156 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v215)(v156, v288); v216 = *(cocos2d::CCPoint **)(*(_DWORD *)v156 + 92); if ( v135 == 3 ) v157 = -32.0; else v157 = -17.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, v157, 0.0); cocos2d::CCPoint::operator+(v288, v280, v281); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v216)(v156, v288); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), v156); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v288, (const cocos2d::CCRect *)v287); v158 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v288); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v158 + 456))(v158, 100); v159 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v158 + 480); LOWORD(v288[0]) = 0; BYTE2(v288[0]) = 0; v159(v158, v288); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v288, (const cocos2d::CCSize *)v235); if ( v135 == 3 ) v288[0] = 1120403456; (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v158 + 160))(v158, v288); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v158 + 80))(v158, 1058642330); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v158, -1); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v158 + 92))(v158, v280); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), v158); v160 = (CCTextInputNode *)(v135 == 3 ? 1117782016 : 1109393408); v161 = CCTextInputNode::create(v160, 20.0, "Num", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v204); (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v161, 20); (*(void (__fastcall **)(int *, _DWORD *))(*v161 + 92))(v161, v280); CCTextInputNode::setMaxLabelScale((unsigned int)v161, 0.4); CCTextInputNode::setMaxLabelWidth((unsigned int)v161, 50.0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v161[104] + 172))(v161[104], 0); v162 = v135 == 3 ? 7 : 4; v161[106] = v162; v163 = v135 == 3 ? "0123456789ABCDEFabcdef" : "0123456789"; v217 = (cocos2d::CCPoint *)v163; v283 = 0; v284 = 0; v285 = 0; v164 = strlen(v163); std::string::__init(&v283, v217, v164); CCTextInputNode::setAllowedChars((int)v161, (unsigned __int8 *)&v283); std::string::~string((int)&v283); LOWORD(v225) = -21896; BYTE2(v225) = -16; CCTextInputNode::setLabelPlaceholderColor((unsigned int)v161, v225); CCTextInputNode::setLabelPlaceholderScale((unsigned int)v161, 0.4); v161[105] = (int)v213; *((_BYTE *)v161 + 324) = v135 <= 2; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 182), (cocos2d::CCObject *)v161); if ( v135 == 2 ) { *((_DWORD *)this + 225) = v161; v165 = v161; v166 = 13; v167 = *(void (__fastcall **)(int *, int))(*v161 + 36); } else if ( v135 == 3 ) { *((_DWORD *)this + 226) = v161; v165 = v161; v166 = 14; v167 = *(void (__fastcall **)(int *, int))(*v161 + 36); } else { if ( v135 == 1 ) *((_DWORD *)this + 224) = v161; else *((_DWORD *)this + 223) = v161; v165 = v161; v166 = v135 == 1 ? 12 : 11; v167 = *(void (__fastcall **)(int *, int))(*v161 + 36); } ++v135; v167(v165, v166); if ( v135 == 4 ) break; if ( v135 == 3 ) v153 = 0.0; else v153 = 15.0; } SetupPulsePopup::selectColor((int)this, *((_DWORD *)this + 193), v168); v169 = ConfigureHSVWidget::create( *((_DWORD *)this + 219), *((_DWORD *)this + 220), *((const char **)this + 221), *((_DWORD *)this + 222), 0, 0); v170 = *(_DWORD *)this; *((_DWORD *)this + 196) = v169; (*(void (__fastcall **)(SetupPulsePopup *, int))(v170 + 228))(this, v169); v171 = *((_DWORD *)this + 196); v172 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v171 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, (float)(v227 * 0.5) - 75.0, (float)(v228 * 0.5) + 45.0); v172(v171, v288); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 196) + 80))(*((_DWORD *)this + 196), 1062836634); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), *((cocos2d::CCObject **)this + 196)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, (float)(v227 * 0.5) + 142.0, (float)(v228 * 0.5) + 76.0); cocos2d::CCPoint::operator=(v232, v288); v174 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Color ID", "goldFont.fnt", v173); (*(void (__fastcall **)(SetupPulsePopup *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v174); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v174 + 80))(v174, 1056964608); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v174 + 92))(v174, v232); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), v174); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v288, 0.0, -30.0); cocos2d::CCPoint::operator+(v241, v232, v288); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v288, (const cocos2d::CCRect *)v287); v175 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v288); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v175 + 456))(v175, 100); v176 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v175 + 480); LOWORD(v288[0]) = 0; BYTE2(v288[0]) = 0; v176(v175, v288); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v175 + 160))(v175, v235); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v175, -1); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v175 + 92))(v175, v241); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), v175); v177 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, "Num", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v204); *((_DWORD *)this + 202) = v177; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v177, 20); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 202) + 92))(*((_DWORD *)this + 202), v241); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 202), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 202), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 202) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 202) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 202) + 424) = 6; v178 = *((_DWORD *)this + 202); v283 = 0; v284 = 0; v285 = 0; std::string::__init(&v283, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v178, (unsigned __int8 *)&v283); std::string::~string((int)&v283); LOWORD(v226) = -21896; BYTE2(v226) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 202), v226); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 202), 0.5); *(_DWORD *)(*((_DWORD *)this + 202) + 420) = v213; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 202) + 36))(*((_DWORD *)this + 202), 5); *(_BYTE *)(*((_DWORD *)this + 202) + 324) = 1; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), *((cocos2d::CCObject **)this + 202)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v242, *((const cocos2d::CCPoint **)this + 111)); v180 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v179); (*(void (__fastcall **)(int, int))(*(_DWORD *)v180 + 80))(v180, 1066192077); v280[1] = 0; v280[0] = SetupPulsePopup::onUpdateCopyColor; v181 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v180, 0, (int)this, (int)SetupPulsePopup::onUpdateCopyColor, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v181); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v181 + 36))(v181, 1); v212 = *(cocos2d::CCPoint **)(*(_DWORD *)v181 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v281, -50.0, 0.0); cocos2d::CCPoint::operator+(v288, v242, v281); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v212)(v181, v288); CCMenuItemSpriteExtra::setSizeMult((int)v181, 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), v181); v183 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v182); (*(void (__fastcall **)(int, int))(*(_DWORD *)v183 + 80))(v183, 1066192077); v281[0] = SetupPulsePopup::onUpdateCopyColor; v281[1] = 0; v184 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v183, 0, (int)this, (int)SetupPulsePopup::onUpdateCopyColor, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v184); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v184 + 36))(v184, 2); v185 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v184 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v245, 50.0, 0.0); cocos2d::CCPoint::operator+(v288, v242, v245); v185(v184, v288); CCMenuItemSpriteExtra::setSizeMult((int)v184, 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), v184); v187 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v186); v288[1] = 0; v288[0] = SetupPulsePopup::onSelectSpecialColor; v188 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v187, 0, (int)this, (int)SetupPulsePopup::onSelectSpecialColor, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v188); v189 = *((const cocos2d::CCPoint **)this + 111); v211 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v188 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v243, 50.0, 40.0); cocos2d::CCPoint::operator+(v244, v241, v243); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v245, v189); v211(v188, v245); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 183), v188); v190 = *((_DWORD *)this + 216); if ( v190 ) { if ( v190 == 1 ) v191 = *((cocos2d::CCObject **)this + 195); else v191 = nullptr; } else { v191 = *((cocos2d::CCObject **)this + 194); } SetupPulsePopup::onSelectPulseMode(this, v191); v192 = *((_DWORD *)this + 217); if ( v192 ) { if ( v192 == 1 ) v193 = *((cocos2d::CCObject **)this + 188); else v193 = nullptr; } else { v193 = *((cocos2d::CCObject **)this + 187); } SetupPulsePopup::onSelectTargetMode(this, v193); SetupPulsePopup::updateTextInputLabel(this, v194, v195, v196); SetupPulsePopup::updateCopyColorTextInputLabel(this, v197, v198, v199); *((_BYTE *)this + 848) = 0; *((_BYTE *)this + 872) = 0; } return v218; }
GD Web Decomp Icon

GD Web Decomp

Raw Source