// // ColorSelectPopup::init from 0x4dfaa0 to 0x4e16da (7226 bytes) // // 1 xrefs: // > ColorSelectPopup::create @ 0x4e195c // // 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:51:01 +0000 // cocos2d::CCArray *__fastcall ColorSelectPopup::init( ColorSelectPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3, ColorAction *a4) { cocos2d::CCArray *v6; // r0 cocos2d::CCObject *v7; // r0 cocos2d::CCArray *v8; // r0 cocos2d::CCObject *v9; // r0 int v10; // r3 cocos2d::CCDirector *v11; // r0 cocos2d::extension::CCControlColourPicker *WinSize; // r0 int v13; // r0 int v14; // r8 float v15; // s15 void (__fastcall *v16)(int, char *); // r6 const char *v17; // r2 int v18; // r9 void (__fastcall *v19)(int, char *); // r6 ButtonSprite *v20; // r0 int v21; // r0 int v22; // r2 float v23; // s15 const char *v24; // r2 int v25; // r11 void (__fastcall *v26)(int, char *); // r10 int v27; // r10 void (__fastcall *v28)(int, char *); // r11 char *v29; // r2 int *v30; // r0 int v31; // r9 void (__fastcall *v32)(int, int); // r11 int v33; // r0 int v34; // r9 Slider *v35; // r0 int v36; // r10 void (__fastcall *v37)(int, char *); // r9 float v38; // s15 int Thumb; // r0 const char *v40; // r1 const char *v41; // r2 int v42; // r8 int v43; // r0 int v44; // r10 void (__fastcall *v45)(int, char *); // r9 Slider *v46; // r0 int v47; // r8 void (__fastcall *v48)(int, char *); // r9 int v49; // r10 int v50; // r0 const char *v51; // r1 ButtonSprite *v52; // r11 ButtonSprite *v53; // r0 int v54; // r10 cocos2d::CCObject *v55; // r9 cocos2d::CCObject *v56; // r11 cocos2d::CCObject *v57; // r10 void (__fastcall *v58)(cocos2d::CCObject *, char *); // r8 int v59; // r8 void (__fastcall *v60)(cocos2d::CCObject *, char *); // r8 int v61; // r9 const char *v62; // r1 int v63; // r8 _BOOL4 v64; // r8 _BOOL4 v65; // r8 int v66; // r8 _BOOL4 v67; // r9 int v68; // r9 int v69; // r9 int v70; // r9 int v71; // r10 const cocos2d::CCPoint *v72; // r9 int v73; // r8 const char *v74; // r1 int v75; // r10 const char *v76; // r1 int v77; // r8 cocos2d::CCNodeRGBA *v78; // r8 const char *v79; // r2 cocos2d::CCLabelBMFont *v80; // r8 float *v81; // r0 int v82; // r10 const cocos2d::CCPoint *v83; // r8 int v84; // r9 cocos2d::CCObject *ToggleButton; // r9 cocos2d::CCObject *v86; // r8 int v87; // r0 int v88; // r10 void (__fastcall *v89)(int, char *); // r9 __int64 v90; // r0 float v91; // s18 int v92; // r0 int v93; // r8 void (__fastcall *v94)(int, char *); // r9 int v95; // r10 float v96; // s15 const char *v97; // r2 int v98; // r9 void (__fastcall *v99)(int, char *); // r8 int v100; // r8 int *v101; // r0 int v102; // r8 const char *v103; // r1 int v104; // r0 int v105; // r9 const char *v106; // r1 int v107; // r11 int v108; // r11 const char *v109; // r1 int v110; // r11 int v111; // r8 void (__fastcall *v112)(int, char *); // r9 int v113; // r1 int v114; // r2 int v115; // r3 int v116; // r0 int v117; // r3 int v118; // r10 void (__fastcall *v119)(int, char *); // r8 const char *v120; // r2 cocos2d::CCObject *v121; // r8 cocos2d::CCObject *v122; // r10 void (__fastcall *v123)(cocos2d::CCObject *, char *); // r3 int *v124; // r0 int v125; // r10 const char *v126; // r1 int v127; // r9 cocos2d::CCObject *v128; // r9 void (__fastcall *v129)(cocos2d::CCObject *, char *); // r11 const char *v130; // r1 int v131; // r9 cocos2d::CCObject *v132; // r11 void (__fastcall *v133)(cocos2d::CCObject *, char *); // r9 const char *v134; // r1 int v135; // r0 cocos2d::CCObject *v136; // r11 const cocos2d::CCPoint *v137; // r10 void (__fastcall *v138)(cocos2d::CCObject *, char *); // r9 int v139; // r8 const cocos2d::CCPoint *v140; // r9 void (__fastcall *v141)(int, char *); // r6 int v142; // r7 const char *v143; // r2 char *v144; // r0 cocos2d::CCObject *v145; // r6 cocos2d::CCObject *v146; // r6 void (__fastcall *v147)(cocos2d::CCObject *, char *); // r2 int v148; // r0 int *v149; // r6 int v150; // r3 const char *v151; // r1 size_t v152; // r0 int *v153; // r0 int v154; // r1 void (__fastcall *v155)(int *, int); // r3 int v156; // r1 int v157; // r2 int v158; // r3 char *v160; // [sp+8h] [bp-1ACh] char *v161; // [sp+8h] [bp-1ACh] char *v162; // [sp+8h] [bp-1ACh] float v163; // [sp+10h] [bp-1A4h] float v164; // [sp+10h] [bp-1A4h] float v165; // [sp+10h] [bp-1A4h] float v166; // [sp+10h] [bp-1A4h] _BOOL4 v167; // [sp+40h] [bp-174h] cocos2d::CCPoint *v168; // [sp+40h] [bp-174h] cocos2d::CCPoint *v169; // [sp+40h] [bp-174h] cocos2d::CCPoint *v170; // [sp+40h] [bp-174h] cocos2d::CCPoint *v171; // [sp+44h] [bp-170h] cocos2d::CCPoint *v172; // [sp+44h] [bp-170h] cocos2d::CCPoint *v173; // [sp+44h] [bp-170h] cocos2d::CCPoint *v174; // [sp+44h] [bp-170h] cocos2d::CCPoint *v175; // [sp+44h] [bp-170h] void (__fastcall *v176)(int, char *); // [sp+48h] [bp-16Ch] void (__fastcall *v177)(int, char *); // [sp+48h] [bp-16Ch] char *v178; // [sp+4Ch] [bp-168h] cocos2d::CCArray *v179; // [sp+54h] [bp-160h] cocos2d::CCPoint *v180; // [sp+5Ch] [bp-158h] int v181; // [sp+64h] [bp-150h] int v182; // [sp+68h] [bp-14Ch] int v183; // [sp+6Ch] [bp-148h] int v184; // [sp+70h] [bp-144h] float v185; // [sp+74h] [bp-140h] BYREF float v186; // [sp+78h] [bp-13Ch] _BYTE v187[8]; // [sp+7Ch] [bp-138h] BYREF _BYTE v188[8]; // [sp+84h] [bp-130h] BYREF _BYTE v189[8]; // [sp+8Ch] [bp-128h] BYREF _BYTE v190[8]; // [sp+94h] [bp-120h] BYREF _DWORD v191[2]; // [sp+9Ch] [bp-118h] BYREF _BYTE v192[8]; // [sp+A4h] [bp-110h] BYREF _BYTE v193[8]; // [sp+ACh] [bp-108h] BYREF _BYTE v194[8]; // [sp+B4h] [bp-100h] BYREF _BYTE v195[8]; // [sp+BCh] [bp-F8h] BYREF int (__fastcall *v196)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+C4h] [bp-F0h] int v197; // [sp+C8h] [bp-ECh] int (__fastcall *v198)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+CCh] [bp-E8h] int v199; // [sp+D0h] [bp-E4h] int (__fastcall *v200)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+D4h] [bp-E0h] int v201; // [sp+D8h] [bp-DCh] int (__fastcall *v202)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+DCh] [bp-D8h] int v203; // [sp+E0h] [bp-D4h] int (__fastcall *v204)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+E4h] [bp-D0h] int v205; // [sp+E8h] [bp-CCh] int (__fastcall *v206)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+ECh] [bp-C8h] int v207; // [sp+F0h] [bp-C4h] unsigned int (__fastcall *v208)(CCMenuItemToggler **, cocos2d::CCObject *); // [sp+F4h] [bp-C0h] int v209; // [sp+F8h] [bp-BCh] unsigned int (__fastcall *v210)(CCMenuItemToggler **, cocos2d::CCObject *); // [sp+FCh] [bp-B8h] int v211; // [sp+100h] [bp-B4h] unsigned int (__fastcall *v212)(unsigned int, cocos2d::CCObject *); // [sp+104h] [bp-B0h] int v213; // [sp+108h] [bp-ACh] _DWORD *(__fastcall *v214)(_DWORD *, cocos2d::CCObject *); // [sp+10Ch] [bp-A8h] int v215; // [sp+110h] [bp-A4h] int (__fastcall *v216)(ColorSelectPopup *, cocos2d::CCObject *, int); // [sp+114h] [bp-A0h] int v217; // [sp+118h] [bp-9Ch] _DWORD (__fastcall *v218)(SetupTriggerPopup *__hidden, cocos2d::CCObject *); // [sp+11Ch] [bp-98h] int v219; // [sp+120h] [bp-94h] _DWORD (__fastcall *v220)(SetupTriggerPopup *__hidden, cocos2d::CCObject *); // [sp+124h] [bp-90h] int v221; // [sp+128h] [bp-8Ch] _DWORD (*v222)(SetupTriggerPopup *__hidden, cocos2d::CCObject *); // [sp+12Ch] [bp-88h] int v223; // [sp+130h] [bp-84h] unsigned int (__fastcall *v224)(unsigned int, cocos2d::CCObject *); // [sp+134h] [bp-80h] int v225; // [sp+138h] [bp-7Ch] unsigned int (__fastcall *v226)(unsigned int, cocos2d::CCObject *); // [sp+13Ch] [bp-78h] int v227; // [sp+140h] [bp-74h] int (__fastcall *v228)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+144h] [bp-70h] int v229; // [sp+148h] [bp-6Ch] GJSpecialColorSelect *(__fastcall *v230)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+14Ch] [bp-68h] int v231; // [sp+150h] [bp-64h] GJSpecialColorSelect *(__fastcall *v232)(ColorSelectPopup *, cocos2d::CCObject *); // [sp+154h] [bp-60h] int v233; // [sp+158h] [bp-5Ch] _DWORD v234[2]; // [sp+15Ch] [bp-58h] BYREF _DWORD v235[2]; // [sp+164h] [bp-50h] BYREF _DWORD v236[2]; // [sp+16Ch] [bp-48h] BYREF int v237[3]; // [sp+174h] [bp-40h] BYREF int v238; // [sp+180h] [bp-34h] BYREF int v239; // [sp+184h] [bp-30h] int v240; // [sp+188h] [bp-2Ch] _BYTE v241[16]; // [sp+18Ch] [bp-28h] BYREF char v242; // [sp+19Ch] [bp-18h] BYREF char v243; // [sp+19Dh] [bp-17h] char v244; // [sp+19Eh] [bp-16h] v6 = (cocos2d::CCArray *)SetupTriggerPopup::init(this, a2, a3, 450.0, 300.0, (int)&dword_0 + 1, 0.0); v179 = v6; if ( v6 ) { if ( a4 ) { *((_DWORD *)this + 196) = a4; v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(a4); } v7 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6); *((_DWORD *)this + 209) = v7; v8 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v7); v9 = (cocos2d::CCObject *)cocos2d::CCArray::create(v8); *((_DWORD *)this + 210) = v9; cocos2d::CCObject::retain(v9); v10 = *(_DWORD *)this; *((_BYTE *)this + 804) = 1; (*(void (__fastcall **)(ColorSelectPopup *))(v10 + 680))(this); v11 = (cocos2d::CCDirector *)(*(int (__fastcall **)(ColorSelectPopup *, int))(*(_DWORD *)this + 584))(this, 200); cocos2d::CCDirector::sharedDirector(v11); WinSize = (cocos2d::extension::CCControlColourPicker *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v185); if ( *((_DWORD *)this + 132) ) v167 = 1; else v167 = *((_DWORD *)this + 133) != 0; v13 = cocos2d::extension::CCControlColourPicker::create(WinSize); *((_DWORD *)this + 180) = v13; *(_DWORD *)(v13 + 400) = (char *)this + 712; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 180), 10); v14 = *((_DWORD *)this + 180); v15 = 36.0; v16 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v14 + 92); if ( !v167 ) v15 = 20.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, v185 * 0.5, v15 + (float)(v186 * 0.5)); v16(v14, &v242); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), *((cocos2d::CCObject **)this + 180)); v18 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select Color", "goldFont.fnt", v17); (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 80))(v18, 1063675494); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v18); v19 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, v185 * 0.5, (float)(v186 * 0.5) + 135.0); v19(v18, &v242); v20 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(30.0), v163); v197 = 0; v196 = ColorSelectPopup::closeColorSelect; v21 = CCMenuItemSpriteExtra::create((int)v20, 0, (int)this, (int)ColorSelectPopup::closeColorSelect, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v21); *((_DWORD *)this + 125) = -1; v178 = (char *)this + 440; if ( v167 && !*((_BYTE *)this + 796) ) { v23 = -10.0; if ( !*((_BYTE *)this + 797) ) v23 = 0.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v234, v23 + (float)(v185 * 0.5), (float)(v186 * 0.5) - 68.0); v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Fade Time: ", "goldFont.fnt", v24); (*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 80))(v25, 1060320051); (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v25 + 92))(v25, v234); v26 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v25 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, 1.0, 0.5); v26(v25, &v242); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v25); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v241, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v242, (const cocos2d::CCRect *)v241); v27 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v242); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 456))(v27, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v235, 70.0, 30.0); (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 160))(v27, v235); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v27, -1); v28 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v27 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v236, 45.0, 0.0); cocos2d::CCPoint::operator+(&v242, v234, v236); v28(v27, &v242); if ( *((float *)this + 192) == -99999.0 ) v29 = "Mixed"; else v29 = "Num"; v30 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, v29, "Thonburi", (const char *)&dword_18, "bigFont.fnt", v160); *((_DWORD *)this + 212) = v30; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v30, 20); v31 = *((_DWORD *)this + 212); v32 = *(void (__fastcall **)(int, int))(*(_DWORD *)v31 + 92); v33 = (*(int (__fastcall **)(int))(*(_DWORD *)v27 + 96))(v27); v32(v31, v33); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 212), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 212), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 212) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 212) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 212) + 424) = 5; v34 = *((_DWORD *)this + 212); v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v34, (unsigned __int8 *)&v238); std::string::~string((int)&v238); LOWORD(v181) = -21896; BYTE2(v181) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 212), v181); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 212), 0.5); *(_DWORD *)(*((_DWORD *)this + 212) + 420) = v178; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 212) + 36))(*((_DWORD *)this + 212), 5); *(_BYTE *)(*((_DWORD *)this + 212) + 324) = 1; v199 = 0; v198 = ColorSelectPopup::sliderChanged; v35 = (Slider *)Slider::create((int)this, (int)ColorSelectPopup::sliderChanged, 0, 0.8); *((_DWORD *)this + 183) = v35; Slider::setBarVisibility(v35, 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), *((_DWORD *)this + 183)); v36 = *((_DWORD *)this + 183); v37 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v36 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v236, 0.0, -28.0); cocos2d::CCPoint::operator+(&v242, v234, v236); v37(v36, &v242); v38 = *((float *)this + 192) / 10.0; if ( v38 >= 1.0 ) { v38 = 1.0; } else if ( v38 <= 0.0 ) { v38 = 0.0; } Slider::setValue(*((Slider **)this + 183), v38); Thumb = Slider::getThumb(*((Slider **)this + 183)); (*(void (__fastcall **)(int, int))(*(_DWORD *)Thumb + 36))(Thumb, 1); ColorSelectPopup::updateDurLabel(this, v40); } ColorSelectPopup::selectColor((int)this, *((_DWORD *)this + 190), v22); if ( *((_BYTE *)this + 795) ) { v42 = *((unsigned __int8 *)this + 796); if ( !*((_BYTE *)this + 796) ) { v43 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v41); *((_DWORD *)this + 182) = v43; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v43); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 182) + 80))(*((_DWORD *)this + 182), 1059481190); v44 = *((_DWORD *)this + 182); v45 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v44 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (float)(v185 * 0.5) + 150.0, (float)(v186 * 0.5) - 15.0); v45(v44, &v242); v201 = v42; v200 = ColorSelectPopup::sliderChanged; v46 = (Slider *)Slider::create((int)this, (int)ColorSelectPopup::sliderChanged, v42, 0.55); *((_DWORD *)this + 184) = v46; Slider::setBarVisibility(v46, v42); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), *((_DWORD *)this + 184)); v47 = *((_DWORD *)this + 184); v48 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v47 + 92); v49 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 182) + 96))(*((_DWORD *)this + 182)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, -20.0); cocos2d::CCPoint::operator+(&v242, v49, v241); v48(v47, &v242); v50 = Slider::getThumb(*((Slider **)this + 184)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 36))(v50, 2); ColorSelectPopup::updateOpacityLabel((int)this, v51); Slider::setValue(*((Slider **)this + 184), *((float *)this + 195)); } } v171 = ButtonSprite::create( (ButtonSprite *)"Copy", (const char *)&word_28, 0, 0.6, 1, "goldFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v164); v52 = ButtonSprite::create( (ButtonSprite *)"Paste", (const char *)&word_28, 0, 0.6, 1, "goldFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v165); v53 = ButtonSprite::create( (ButtonSprite *)"Default", (const char *)&word_28, 0, 0.6, 1, "goldFont.fnt", "GJ_button_04.png", COERCE_CONST_CHAR_(30.0), v166); v203 = 0; v202 = ColorSelectPopup::onCopy; v54 = (int)v53; v55 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v171, 0, (int)this, (int)ColorSelectPopup::onCopy, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v55); v205 = 0; v204 = ColorSelectPopup::onPaste; v56 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v52, 0, (int)this, (int)ColorSelectPopup::onPaste, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v56); v207 = 0; v206 = ColorSelectPopup::onDefault; v57 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v54, 0, (int)this, (int)ColorSelectPopup::onDefault, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v57); v58 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_DWORD *)v55 + 92); v172 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, (float)(v185 * 0.5) + 190.0, (float)(v186 * 0.5) + 130.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v242, v172); v58(v55, &v242); v173 = *(cocos2d::CCPoint **)(*(_DWORD *)v56 + 92); v59 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v55 + 96))(v55); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, -40.0); cocos2d::CCPoint::operator+(&v242, v59, v241); ((void (__fastcall *)(cocos2d::CCObject *, char *))v173)(v56, &v242); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), v55); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), v56); if ( v57 ) { v60 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_DWORD *)v57 + 92); v61 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)v56 + 96))(v56); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, -40.0); cocos2d::CCPoint::operator+(&v242, v61, v241); v60(v57, &v242); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), v57); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v187, (float)(v185 * 0.5) + 64.0, (float)(v186 * 0.5) - 130.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v188, (float)(v185 * 0.5) - 205.0, (float)(v186 * 0.5) - 90.0); v63 = *((unsigned __int8 *)this + 796); if ( !*((_BYTE *)this + 796) ) { v238 = *((unsigned __int8 *)this + 796); v239 = v63; v240 = v63; std::string::__init(&v238, "Player\nColor 1", 0xEu); v209 = v63; v208 = ColorSelectPopup::onPlayerColor1; v64 = *((_DWORD *)this + 193) == 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, -40.0); cocos2d::CCPoint::operator+(&v242, v188, v241); *((_DWORD *)this + 185) = SetupTriggerPopup::createToggleButton(this, &v238, v208, v209, v64, &v242); std::string::~string((int)&v238); v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Player\nColor 2", 0xEu); v211 = 0; v210 = ColorSelectPopup::onPlayerColor2; v65 = *((_DWORD *)this + 193) == 2; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (float)(v185 * 0.5) - 108.0, (float)(v186 * 0.5) - 130.0); *((_DWORD *)this + 186) = SetupTriggerPopup::createToggleButton(this, &v238, v210, v211, v65, &v242); std::string::~string((int)&v238); if ( *((_BYTE *)this + 792) ) { v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Tint\nGround", 0xBu); v213 = 0; v212 = ColorSelectPopup::onTintGround; v66 = *((unsigned __int8 *)this + 793); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 90.0, 40.0); cocos2d::CCPoint::operator+(&v242, v187, v241); SetupTriggerPopup::createToggleButton(this, &v238, v212, v213, v66, &v242); std::string::~string((int)&v238); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, 0.0, -9.0); cocos2d::CCPoint::operator+(v234, v188, &v242); if ( *((_BYTE *)this + 795) ) { v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Blending", 8u); v215 = 0; v214 = ColorSelectPopup::onToggleTintMode; v67 = *((_DWORD *)this + 194) == 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (const cocos2d::CCPoint *)v234); SetupTriggerPopup::createToggleButton(this, &v238, v214, v215, v67, &v242); std::string::~string((int)&v238); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, 30.0); cocos2d::CCPoint::operator+(&v242, v234, v241); cocos2d::CCPoint::operator=(v234, &v242); } v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Copy Color", 0xAu); v217 = 0; v216 = ColorSelectPopup::onToggleHSVMode; v68 = *((_DWORD *)this + 202); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (const cocos2d::CCPoint *)v234); SetupTriggerPopup::createToggleButton(this, &v238, v216, v217, v68 != 0, &v242); std::string::~string((int)&v238); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, 30.0); cocos2d::CCPoint::operator+(&v242, v234, v241); cocos2d::CCPoint::operator=(v234, &v242); if ( v167 ) { v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Touch\nTrigger", 0xDu); v219 = 0; v69 = *((unsigned __int8 *)this + 536); v218 = SetupTriggerPopup::onTouchTriggered; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (const cocos2d::CCPoint *)v187); *((_DWORD *)this + 135) = SetupTriggerPopup::createToggleButton(this, &v238, v218, v219, v69, &v242); std::string::~string((int)&v238); v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Spawn\nTrigger", 0xDu); v221 = 0; v70 = *((unsigned __int8 *)this + 537); v220 = SetupTriggerPopup::onSpawnedByTrigger; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 90.0, 0.0); cocos2d::CCPoint::operator+(&v242, v187, v241); *((_DWORD *)this + 136) = SetupTriggerPopup::createToggleButton(this, &v238, v220, v221, v70, &v242); std::string::~string((int)&v238); v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Multi\nTrigger", 0xDu); v71 = *((unsigned __int8 *)this + 552); v223 = 0; v72 = *((const cocos2d::CCPoint **)this + 111); v222 = SetupTriggerPopup::onMultiTrigger; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (const cocos2d::CCPoint *)v234); v73 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 8.0, 0.0); GameToolbox::createToggleButton( (int)&v238, (int)v222, v223, v71, v72, (int)&v242, (int)this, v73, 0.7, 0.35, 110.0, (int)v241, "bigFont.fnt", 0, 0, *((cocos2d::CCArray **)this + 137)); std::string::~string((int)&v238); SetupTriggerPopup::updateMultiTriggerBtn(this); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, (float)(v185 * 0.5) + 110.0, (float)(v186 * 0.5) + 18.0); v75 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v74); v77 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v76); (*(void (__fastcall **)(int, int))(*(_DWORD *)v75 + 80))(v75, 1060320051); (*(void (__fastcall **)(int, int))(*(_DWORD *)v77 + 80))(v77, 1060320051); v225 = 0; v224 = ColorSelectPopup::onCopyOpacity; v78 = CCMenuItemToggler::create(v75, v77, (int)this, (int)ColorSelectPopup::onCopyOpacity, 0); CCMenuItemToggler::toggle(v78, *((unsigned __int8 *)this + 812) ^ 1); (*(void (__fastcall **)(_DWORD, cocos2d::CCNodeRGBA *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v78); v168 = *(cocos2d::CCPoint **)(*(_DWORD *)v78 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v242, *((const cocos2d::CCPoint **)this + 111)); ((void (__fastcall *)(cocos2d::CCNodeRGBA *, char *))v168)(v78, &v242); CCMenuItemToggler::setSizeMult(v78, 1.5); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v78); v80 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Copy Opacity", "bigFont.fnt", v79); (*(void (__fastcall **)(ColorSelectPopup *, cocos2d::CCLabelBMFont *))(*(_DWORD *)this + 228))(this, v80); v169 = *(cocos2d::CCPoint **)(*(_DWORD *)v80 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v169)(v80, &v242); v170 = *(cocos2d::CCPoint **)(*(_DWORD *)v80 + 92); v81 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v75 + 164))(v75); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, (float)((float)(*v81 * 0.5) * 0.7) + 8.0, 0.0); cocos2d::CCPoint::operator+(&v242, v235, v241); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v170)(v80, &v242); cocos2d::CCLabelBMFont::limitLabelWidth(v80, 110.0, 0.35, 0.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v80); v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "Legacy\nHSV", 0xAu); v82 = *((unsigned __int8 *)this + 794) ^ 1; v227 = 0; v226 = ColorSelectPopup::onHSVLegacyMode; v83 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v236, 0.0, 100.0); cocos2d::CCPoint::operator+(v241, v235, v236); v84 = *((_DWORD *)this + 115); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, 8.0, 0.0); ToggleButton = GameToolbox::createToggleButton( (int)&v238, (int)v226, v227, v82, v83, (int)v241, (int)this, v84, 0.7, 0.3, 0.0, (int)&v242, "bigFont.fnt", 0, 111, nullptr); std::string::~string((int)&v238); v86 = (cocos2d::CCObject *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 240))( *((_DWORD *)this + 115), 111); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), ToggleButton); if ( v86 ) cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v86); } v87 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v62); *((_DWORD *)this + 188) = v87; (*(void (__fastcall **)(int, int))(*(_DWORD *)v87 + 80))(v87, 1065353216); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 188), 5); v88 = *((_DWORD *)this + 188); v89 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v88 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (float)(v185 * 0.5) - 200.0, (float)(v186 * 0.5) + 125.0); v89(v88, &v242); v90 = ((__int64 (__fastcall *)(_DWORD))*(_DWORD *)(**((_DWORD **)this + 188) + 164))(*((_DWORD *)this + 188)); v91 = *(float *)v90; v92 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"whiteSquare60_001.png", (const char *)HIDWORD(v90)); *((_DWORD *)this + 189) = v92; (*(void (__fastcall **)(int, float))(*(_DWORD *)v92 + 72))(v92, 0.5); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), *((_DWORD *)this + 189), 5); v93 = *((_DWORD *)this + 189); v94 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v93 + 92); v95 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 188) + 96))(*((_DWORD *)this + 188)); v96 = (float)-(float)(v91 * 0.5) - (float)(v91 * 0.5) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, v96); cocos2d::CCPoint::operator+(&v242, v95, v241); v94(v93, &v242); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), *((cocos2d::CCObject **)this + 188)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), *((cocos2d::CCObject **)this + 189)); if ( *((_BYTE *)this + 797) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v194, (float)(v185 * 0.5) + 150.0, (float)(v186 * 0.5) - 90.0); v98 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Color ID", "goldFont.fnt", v97); (*(void (__fastcall **)(int, int))(*(_DWORD *)v98 + 80))(v98, 1060320051); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v98); v99 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v98 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v241, 0.0, 30.0); cocos2d::CCPoint::operator+(&v242, v194, v241); v99(v98, &v242); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v241, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v242, (const cocos2d::CCRect *)v241); v100 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", &v242); (*(void (__fastcall **)(int, int))(*(_DWORD *)v100 + 456))(v100, 100); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v100 + 480))(v100, &unk_BEC5C7); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v195, 50.0, 30.0); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v100 + 160))(v100, v195); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v100, -1); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v100 + 92))(v100, v194); v101 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, "Num", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v161); *((_DWORD *)this + 197) = v101; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v101, 20); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 197) + 92))(*((_DWORD *)this + 197), v194); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 197), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 197), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 197) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 197) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 197) + 424) = 4; v102 = *((_DWORD *)this + 197); v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v102, (unsigned __int8 *)&v238); std::string::~string((int)&v238); LOWORD(v182) = -21896; BYTE2(v182) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 197), v182); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 197), 0.5); *(_DWORD *)(*((_DWORD *)this + 197) + 420) = v178; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 197) + 36))(*((_DWORD *)this + 197), 3); *(_BYTE *)(*((_DWORD *)this + 197) + 324) = 1; cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v234, *((const cocos2d::CCPoint **)this + 111)); v104 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v103); v228 = ColorSelectPopup::onSelectSpecialColor; v229 = 0; v105 = CCMenuItemSpriteExtra::create(v104, 0, (int)this, (int)ColorSelectPopup::onSelectSpecialColor, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v105); v176 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v105 + 92); v180 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, 54.0, 28.5); cocos2d::CCPoint::operator+(v236, v194, v235); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v242, v180); v176(v105, &v242); (*(void (__fastcall **)(int, int))(*(_DWORD *)v105 + 36))(v105, 6); v107 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v106); (*(void (__fastcall **)(int, int))(*(_DWORD *)v107 + 80))(v107, 1066192077); v231 = 0; v230 = ColorSelectPopup::onUpdateCustomColor; v108 = CCMenuItemSpriteExtra::create(v107, 0, (int)this, (int)ColorSelectPopup::onUpdateCustomColor, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v108); (*(void (__fastcall **)(int, int))(*(_DWORD *)v108 + 36))(v108, 2); v177 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v108 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v236, -50.0, 0.0); cocos2d::CCPoint::operator+(&v242, v234, v236); v177(v108, &v242); CCMenuItemSpriteExtra::setSizeMult(v108, 2.0); v110 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v109); (*(void (__fastcall **)(int, int))(*(_DWORD *)v110 + 80))(v110, 1066192077); v232 = ColorSelectPopup::onUpdateCustomColor; v233 = 0; v111 = CCMenuItemSpriteExtra::create(v110, 0, (int)this, (int)ColorSelectPopup::onUpdateCustomColor, 0); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v111); (*(void (__fastcall **)(int, int))(*(_DWORD *)v111 + 36))(v111, 1); v112 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v111 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v236, 50.0, 0.0); cocos2d::CCPoint::operator+(&v242, v234, v236); v112(v111, &v242); CCMenuItemSpriteExtra::setSizeMult(v111, 2.0); ColorSelectPopup::updateTextInputLabel(this, v113, v114, v115); } v116 = ConfigureHSVWidget::create( *((_DWORD *)this + 205), *((_DWORD *)this + 206), *((_DWORD *)this + 207), *((_DWORD *)this + 208), 0, 0); v117 = *(_DWORD *)this; *((_DWORD *)this + 204) = v116; (*(void (__fastcall **)(ColorSelectPopup *, int))(v117 + 228))(this, v116); v118 = *((_DWORD *)this + 204); v119 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v118 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (float)(v185 * 0.5) - 75.0, (float)(v186 * 0.5) + 45.0); v119(v118, &v242); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 204) + 80))(*((_DWORD *)this + 204), 1062836634); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 204)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v189, (float)(v185 * 0.5) + 150.0, (float)(v186 * 0.5) + 90.0); v121 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Channel ID", "goldFont.fnt", v120); (*(void (__fastcall **)(ColorSelectPopup *, cocos2d::CCObject *))(*(_DWORD *)this + 228))(this, v121); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v121 + 80))(v121, 1060320051); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v121 + 92))(v121, v189); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v121); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, 0.0, -30.0); cocos2d::CCPoint::operator+(v190, v189, &v242); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v241, 0.0, 0.0, 40.0, 40.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v191, 50.0, 30.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v242, (const cocos2d::CCRect *)v241); v122 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", &v242); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v122 + 456))(v122, 100); v123 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_DWORD *)v122 + 480); v242 = 0; v243 = 0; v244 = 0; v123(v122, &v242); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v122 + 160))(v122, v191); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v122, -1); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v122 + 92))(v122, v190); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v122); v124 = CCTextInputNode::create( (CCTextInputNode *)0x42480000, 40.0, "Num", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v161); *((_DWORD *)this + 211) = v124; (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v124, 20); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 211) + 92))(*((_DWORD *)this + 211), v190); CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 211), 0.6); CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 211), 200.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 211) + 416) + 172))( *(_DWORD *)(*((_DWORD *)this + 211) + 416), 0); *(_DWORD *)(*((_DWORD *)this + 211) + 424) = 6; v125 = *((_DWORD *)this + 211); v238 = 0; v239 = 0; v240 = 0; std::string::__init(&v238, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v125, (unsigned __int8 *)&v238); std::string::~string((int)&v238); LOWORD(v183) = -21896; BYTE2(v183) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 211), v183); CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 211), 0.5); *(_DWORD *)(*((_DWORD *)this + 211) + 420) = v178; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 211) + 36))(*((_DWORD *)this + 211), 4); *(_BYTE *)(*((_DWORD *)this + 211) + 324) = 1; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 211)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v192, *((const cocos2d::CCPoint **)this + 111)); v127 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v126); (*(void (__fastcall **)(int, int))(*(_DWORD *)v127 + 80))(v127, 1066192077); v234[1] = 0; v234[0] = ColorSelectPopup::onUpdateCopyColor; v128 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v127, 0, (int)this, (int)ColorSelectPopup::onUpdateCopyColor, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v128); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v128 + 36))(v128, 1); v129 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_DWORD *)v128 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v236, -50.0, 0.0); cocos2d::CCPoint::operator+(&v242, v192, v236); v129(v128, &v242); CCMenuItemSpriteExtra::setSizeMult((int)v128, 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v128); v131 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v130); (*(void (__fastcall **)(int, int))(*(_DWORD *)v131 + 80))(v131, 1066192077); v235[0] = ColorSelectPopup::onUpdateCopyColor; v235[1] = 0; v132 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v131, 0, (int)this, (int)ColorSelectPopup::onUpdateCopyColor, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v132); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v132 + 36))(v132, 2); v133 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_DWORD *)v132 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v236, 50.0, 0.0); cocos2d::CCPoint::operator+(&v242, v192, v236); v133(v132, &v242); CCMenuItemSpriteExtra::setSizeMult((int)v132, 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v132); v135 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v134); v236[0] = ColorSelectPopup::onSelectSpecialColor; v236[1] = 0; v136 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v135, 0, (int)this, (int)ColorSelectPopup::onSelectSpecialColor, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))( *((_DWORD *)this + 111), v136); v137 = *((const cocos2d::CCPoint **)this + 111); v138 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_DWORD *)v136 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v194, 50.0, 25.0); cocos2d::CCPoint::operator+(v195, v189, v194); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v242, v137); v138(v136, &v242); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v136); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v136 + 36))(v136, 7); memset(v237, 0, sizeof(v237)); std::string::__init(v237, "Help", 4u); v238 = 0; v239 = 0; v240 = 0; std::string::__init( &v238, "Change the attributes of a color channel. Each color channel is separated by a Color ID, which goe" "s up to 999.\n" "This color channel can then be set in specific objects.\n" "Copy Color inherits color from another channel.", 0xEEu); v139 = InfoAlertButton::create(v237, &v238, 1065353216); std::string::~string((int)&v238); std::string::~string((int)v237); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v139); v140 = *((const cocos2d::CCPoint **)this + 111); v141 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v139 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v195, (float)(v185 * 0.5) - 100.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v186 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v242, v140); v141(v139, &v242); v142 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v193, (float)(v185 * 0.5) - 154.0, (float)(v186 * 0.5) + 30.0); do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v242, (float)((float)v142 - 1.0) * 42.0, 22.0); cocos2d::CCPoint::operator+(v194, v193, &v242); if ( v142 == 3 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, -22.0); cocos2d::CCPoint::operator+(&v242, v193, v195); cocos2d::CCPoint::operator=(v194, &v242); v144 = "HEX:"; } else if ( v142 ) { v143 = "G:"; if ( v142 == 1 ) v144 = "G:"; else v144 = "B:"; } else { v144 = "R:"; } v145 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v144, "goldFont.fnt", v143); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v145 + 80))(v145, 1056964608); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 115) + 228))( *((_DWORD *)this + 115), v145); v174 = *(cocos2d::CCPoint **)(*(_DWORD *)v145 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, 20.0); cocos2d::CCPoint::operator+(&v242, v194, v195); ((void (__fastcall *)(cocos2d::CCObject *, char *))v174)(v145, &v242); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), v145); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v242, (const cocos2d::CCRect *)v241); v146 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", &v242); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v146 + 456))(v146, 100); v147 = *(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_DWORD *)v146 + 480); v242 = 0; v243 = 0; v244 = 0; v147(v146, &v242); if ( v142 == 3 ) v191[0] = 1120403456; (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v146 + 160))(v146, v191); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v146 + 80))(v146, 1058642330); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v146, -1); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v146 + 92))(v146, v194); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), v146); if ( v142 == 3 ) v148 = 1117782016; else v148 = 1109393408; v149 = CCTextInputNode::create( (CCTextInputNode *)v148, 20.0, "Num", "Thonburi", (const char *)&dword_18, "bigFont.fnt", v162); (*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v149, 20); (*(void (__fastcall **)(int *, _BYTE *))(*v149 + 92))(v149, v194); CCTextInputNode::setMaxLabelScale((unsigned int)v149, 0.4); CCTextInputNode::setMaxLabelWidth((unsigned int)v149, 50.0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v149[104] + 172))(v149[104], 0); if ( v142 == 3 ) v150 = 7; else v150 = 4; v149[106] = v150; if ( v142 == 3 ) v151 = "0123456789ABCDEFabcdef"; else v151 = "0123456789"; v175 = (cocos2d::CCPoint *)v151; v238 = 0; v239 = 0; v240 = 0; v152 = strlen(v151); std::string::__init(&v238, v175, v152); CCTextInputNode::setAllowedChars((int)v149, (unsigned __int8 *)&v238); std::string::~string((int)&v238); LOWORD(v184) = -21896; BYTE2(v184) = -16; CCTextInputNode::setLabelPlaceholderColor((unsigned int)v149, v184); CCTextInputNode::setLabelPlaceholderScale((unsigned int)v149, 0.4); v149[105] = (int)v178; *((_BYTE *)v149 + 324) = v142 <= 2; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 209), (cocos2d::CCObject *)v149); if ( v142 == 2 ) { *((_DWORD *)this + 218) = v149; v153 = v149; v154 = 10; v155 = *(void (__fastcall **)(int *, int))(*v149 + 36); } else if ( v142 == 3 ) { *((_DWORD *)this + 219) = v149; v153 = v149; v154 = 11; v155 = *(void (__fastcall **)(int *, int))(*v149 + 36); } else { if ( v142 == 1 ) *((_DWORD *)this + 217) = v149; else *((_DWORD *)this + 216) = v149; v153 = v149; if ( v142 == 1 ) v154 = 9; else v154 = 8; v155 = *(void (__fastcall **)(int *, int))(*v149 + 36); } ++v142; v155(v153, v154); } while ( v142 != 4 ); ColorSelectPopup::updateHSVMode((cocos2d::CCArray **)this); ColorSelectPopup::updateCopyColorTextInputLabel(this, v156, v157, v158); *((_BYTE *)this + 568) = 0; *((_BYTE *)this + 804) = 0; } return v179; }