// // ColorSelectPopup::init from 0x863df0 to 0x8661bc (9164 bytes) // // 2 xrefs: // > ColorSelectPopup::create @ 0x866518 // > @ 0xc6ce8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:55:39 +0000 // __int64 __fastcall ColorSelectPopup::init( ColorSelectPopup *this, EffectGameObject *a2, cocos2d::CCArray *a3, ColorAction *a4) { unsigned __int64 v6; // x0 cocos2d::CCObject *v7; // x0 _BOOL4 v8; // w25 cocos2d::CCArray *v9; // x0 cocos2d::CCObject *v10; // x0 __int64 v11; // x1 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 cocos2d::extension::CCControlColourPicker *v14; // x0 __int64 v15; // x0 __int64 v16; // x22 void (__fastcall *v17)(__int64, __int64 *); // x23 float v18; // s1 const char *v19; // x2 __int64 v20; // x22 void (__fastcall *v21)(__int64, __int64 *); // x23 const char *v22; // x6 __int64 v23; // x0 __int64 v24; // x0 float v25; // s0 const char *v26; // x2 __int64 v27; // x21 void (__fastcall *v28)(__int64, __int64 *); // x23 __int64 v29; // x23 void (__fastcall *v30)(__int64, __int64 *); // x21 const char *v31; // x4 char *v32; // x0 __int64 v33; // x0 __int64 v34; // x26 __int64 v35; // x0 __int64 (__fastcall *v36)(__int64); // x1 void (__fastcall *v37)(__int64, __int64); // x23 __int64 v38; // x0 __int64 v39; // x23 Slider *v40; // x0 __int64 v41; // x23 void (__fastcall *v42)(__int64, __int64 *); // x26 float v43; // s0 __int64 Thumb; // x0 const char *v46; // x2 const char *v47; // x6 __int64 v48; // x28 const char *v49; // x6 __int64 v50; // x27 const char *v51; // x6 __int64 v52; // x26 cocos2d::CCObject *v53; // x24 cocos2d::CCObject *v54; // x23 cocos2d::CCObject *v55; // x26 cocos2d::CCNode *v56; // x28 void (__fastcall *v57)(cocos2d::CCObject *, __int64 *); // x27 void (__fastcall *v58)(cocos2d::CCObject *, __int64 *); // x27 __int64 v59; // x28 cocos2d::CCObject *v60; // x0 __int64 (__fastcall *v61)(cocos2d::CCObject *); // x1 void (__fastcall *v62)(cocos2d::CCObject *, __int64 *); // x23 __int64 v63; // x24 const char *v64; // x1 __int64 v65; // x0 __int64 v66; // x24 void (__fastcall *v67)(__int64, __int64 *); // x25 float v68; // s8 const char *v69; // x1 __int64 v70; // x0 __int64 v71; // x23 void (__fastcall *v72)(__int64, __int64 *); // x24 __int64 v73; // x25 float v74; // s1 __int64 v75; // x0 __int64 v76; // x2 __int64 v77; // x23 void (__fastcall *v78)(__int64, __int64 *); // x24 const char *v79; // x2 cocos2d::CCObject *v80; // x23 cocos2d::CCObject *v81; // x23 void (__fastcall *v82)(cocos2d::CCObject *, __int64 *); // x2 const char *v83; // x4 __int64 v84; // x0 __int64 v85; // x23 const char *v86; // x1 __int64 v87; // x26 cocos2d::CCObject *v88; // x26 const char *v89; // x1 __int64 v90; // x26 cocos2d::CCObject *v91; // x26 void (__fastcall *v92)(cocos2d::CCObject *, __int64 *); // x28 const char *v93; // x1 __int64 v94; // x0 cocos2d::CCObject *v95; // x26 void (__fastcall *v96)(cocos2d::CCObject *, __int64 *); // x28 __int64 v97; // x25 int v98; // w28 int v99; // w26 const char *v100; // x2 char *v101; // x0 cocos2d::CCObject *v102; // x25 void (__fastcall *v103)(cocos2d::CCObject *, __int64 *); // x22 cocos2d::CCObject *v104; // x25 void (__fastcall *v105)(cocos2d::CCObject *, __int64 *); // x2 const char *v106; // x4 float v107; // s0 __int64 v108; // x25 int v109; // w0 const char *v110; // x1 size_t v111; // x0 const char *v112; // x2 __int64 v113; // x23 void (__fastcall *v114)(__int64, __int64 *); // x25 __int64 v115; // x23 const char *v116; // x4 __int64 v117; // x0 __int64 v118; // x23 const char *v119; // x1 __int64 v120; // x0 __int64 v121; // x25 cocos2d::CCNode *v122; // x28 void (__fastcall *v123)(__int64, __int64 *); // x27 const char *v124; // x1 __int64 v125; // x25 __int64 v126; // x25 void (__fastcall *v127)(__int64, __int64 *); // x27 const char *v128; // x1 __int64 v129; // x25 __int64 v130; // x24 void (__fastcall *v131)(__int64, __int64 *); // x25 _BOOL4 v132; // w27 __int64 ToggleButton; // x0 char v134; // w1 _BOOL4 v135; // w27 __int64 v136; // x0 char v137; // w1 int v138; // w27 _BOOL4 v139; // w26 _BOOL4 v140; // w26 int v141; // w25 __int64 v142; // x0 char v143; // w1 int v144; // w25 __int64 v145; // x0 char v146; // w1 unsigned __int8 v147; // w26 cocos2d::CCNode *v148; // x25 __int64 v149; // x24 const char *v150; // x1 __int64 v151; // x26 const char *v152; // x1 __int64 v153; // x25 CCMenuItemToggler *v154; // x25 void (__fastcall *v155)(CCMenuItemToggler *, __int64 *); // x27 const char *v156; // x2 cocos2d::CCLabelBMFont *v157; // x25 void (__fastcall *v158)(cocos2d::CCLabelBMFont *, __int64 *); // x27 __int64 v159; // x0 __int64 (__fastcall *v160)(__int64); // x1 void (__fastcall *v161)(cocos2d::CCLabelBMFont *, __int64 *); // x26 float *v162; // x0 cocos2d::CCNode *v163; // x27 __int64 v164; // x23 cocos2d::CCObject *v165; // x23 cocos2d::CCObject *v166; // x24 __int64 v167; // x0 __int64 v168; // x23 void (__fastcall *v169)(__int64, __int64 *); // x24 Slider *v170; // x0 __int64 v171; // x23 void (__fastcall *v172)(__int64, __int64 *); // x24 __int64 v173; // x26 __int64 v174; // x0 unsigned __int8 v175; // [xsp+D7h] [xbp+A7h] cocos2d::CCRect *v176; // [xsp+D8h] [xbp+A8h] cocos2d::CCNode *v177; // [xsp+D8h] [xbp+A8h] cocos2d::CCNode *v178; // [xsp+D8h] [xbp+A8h] void (__fastcall *v179)(__int64, __int64 *); // [xsp+118h] [xbp+E8h] char *v180; // [xsp+118h] [xbp+E8h] int v181; // [xsp+128h] [xbp+F8h] int v182; // [xsp+130h] [xbp+100h] int v183; // [xsp+138h] [xbp+108h] int v184; // [xsp+140h] [xbp+110h] __int64 v185; // [xsp+148h] [xbp+118h] BYREF _BYTE v186[8]; // [xsp+150h] [xbp+120h] BYREF _BYTE v187[8]; // [xsp+158h] [xbp+128h] BYREF _BYTE v188[8]; // [xsp+160h] [xbp+130h] BYREF __int64 v189; // [xsp+168h] [xbp+138h] BYREF int v190; // [xsp+170h] [xbp+140h] BYREF __int64 v191; // [xsp+178h] [xbp+148h] BYREF __int64 v192; // [xsp+180h] [xbp+150h] BYREF __int64 v193; // [xsp+188h] [xbp+158h] BYREF __int64 v194; // [xsp+190h] [xbp+160h] BYREF float v195[4]; // [xsp+198h] [xbp+168h] BYREF __int64 v196[2]; // [xsp+1A8h] [xbp+178h] BYREF __int64 v197[2]; // [xsp+1B8h] [xbp+188h] BYREF void *v198; // [xsp+1C8h] [xbp+198h] __int64 v199; // [xsp+1D0h] [xbp+1A0h] BYREF __int64 v200; // [xsp+1D8h] [xbp+1A8h] void *v201; // [xsp+1E0h] [xbp+1B0h] v175 = SetupTriggerPopup::init(this, a2, a3, 450.0, 300.0, 1, 0.0); v6 = v175; if ( !v175 ) return v175; if ( a4 ) { *((_QWORD *)this + 143) = a4; v6 = cocos2d::CCObject::retain(a4); } v7 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v6); *((_QWORD *)this + 151) = v7; v8 = 1; v9 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v7); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *((_QWORD *)this + 152) = v10; cocos2d::CCObject::retain(v10); v11 = *(_QWORD *)this; *((_BYTE *)this + 1172) = 1; (*(void (__fastcall **)(ColorSelectPopup *))(v11 + 1360))(this); v12 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(ColorSelectPopup *, __int64))(*(_QWORD *)this + 1168LL))( this, 4294967240LL); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v185, v13); v14 = *((cocos2d::extension::CCControlColourPicker **)this + 85); if ( !v14 ) { v14 = *((cocos2d::extension::CCControlColourPicker **)this + 86); v8 = v14 != nullptr; } v15 = cocos2d::extension::CCControlColourPicker::create(v14); *((_QWORD *)this + 129) = v15; *(_QWORD *)(v15 + 536) = (char *)this + 1016; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 129), 10); v16 = *((_QWORD *)this + 129); v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL); if ( v8 ) v18 = 36.0; else v18 = 20.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, *(float *)&v185 * 0.5, (float)(*((float *)&v185 + 1) * 0.5) + v18); v17(v16, v196); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), *((cocos2d::CCObject **)this + 129)); v20 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Select Color", "goldFont.fnt", v19); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.9); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v20); v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v196, *(float *)&v185 * 0.5, (float)(*((float *)&v185 + 1) * 0.5) + 135.0); v21(v20, v196); v23 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", v22, 30.0); v24 = CCMenuItemSpriteExtra::create(v23, 0, (__int64)this, (__int64)ColorSelectPopup::closeColorSelect, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v24); *((_DWORD *)this + 160) = -1; if ( v8 && !*((_BYTE *)this + 1164) ) { v25 = 0.0; if ( *((_BYTE *)this + 1165) ) v25 = -10.0; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v192, (float)(*(float *)&v185 * 0.5) + v25, (float)(*((float *)&v185 + 1) * 0.5) + -68.0); v27 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Fade Time: ", "goldFont.fnt", v26); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v27 + 160LL))(v27, 0.7); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 184LL))(v27, &v192); v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, 1.0, 0.5); v28(v27, v196); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v27); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v195, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v196, (const cocos2d::CCRect *)v195); v29 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v196); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v29 + 912LL))(v29, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v193, 70.0, 30.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 320LL))(v29, &v193); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v29, 0xFFFFFFFFLL); v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, 45.0, 0.0); cocos2d::CCPoint::operator+(v196, &v192); v30(v29, v196); if ( *((float *)this + 282) == -99999.0 ) v32 = "Mixed"; else v32 = "Num"; v33 = CCTextInputNode::create( (CCTextInputNode *)v32, 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v31); *((_QWORD *)this + 154) = v33; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v33, 20); v34 = *((_QWORD *)this + 154); v35 = v29; v36 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 192LL); v37 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v34 + 184LL); v38 = v36(v35); v37(v34, v38); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 154), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 154), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 154) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 154) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 154) + 592LL) = 5; v199 = 0; v39 = *((_QWORD *)this + 154); v200 = 0; v201 = nullptr; std::string::__init(&v199, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v39, (__int64)&v199); if ( (v199 & 1) != 0 ) operator delete(v201); LOWORD(v181) = -21896; BYTE2(v181) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 154), v181); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 154), 0.5); *(_QWORD *)(*((_QWORD *)this + 154) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 154) + 72LL))(*((_QWORD *)this + 154), 5); *(_BYTE *)(*((_QWORD *)this + 154) + 424LL) = 1; v40 = (Slider *)Slider::create((int)this, (int)ColorSelectPopup::sliderChanged, 0, 0.8); *((_QWORD *)this + 132) = v40; Slider::setBarVisibility(v40); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 132)); v41 = *((_QWORD *)this + 132); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v41 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, 0.0, -28.0); cocos2d::CCPoint::operator+(v196, &v192); v42(v41, v196); v43 = *((float *)this + 282) / 10.0; if ( v43 < 1.0 ) { if ( v43 <= 0.0 ) v43 = 0.0; } else { v43 = 1.0; } Slider::setValue(*((Slider **)this + 132), v43); Thumb = Slider::getThumb(*((Slider **)this + 132)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)Thumb + 72LL))(Thumb, 1); ColorSelectPopup::updateDurLabel(this); } ColorSelectPopup::selectColor((__int64)this, *((_QWORD *)this + 139)); if ( *((_BYTE *)this + 1163) && !*((_BYTE *)this + 1164) ) { v167 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v46); *((_QWORD *)this + 131) = v167; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v167); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 131) + 160LL))(*((_QWORD *)this + 131), 0.65); v168 = *((_QWORD *)this + 131); v169 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v168 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v196, (float)(*(float *)&v185 * 0.5) + 150.0, (float)(*((float *)&v185 + 1) * 0.5) + -15.0); v169(v168, v196); v170 = (Slider *)Slider::create((int)this, (int)ColorSelectPopup::sliderChanged, 0, 0.55); *((_QWORD *)this + 133) = v170; Slider::setBarVisibility(v170); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 133)); v171 = *((_QWORD *)this + 133); v172 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v171 + 184LL); v173 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 131) + 192LL))(*((_QWORD *)this + 131)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, -20.0); cocos2d::CCPoint::operator+(v196, v173); v172(v171, v196); v174 = Slider::getThumb(*((Slider **)this + 133)); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v174 + 72LL))(v174, 2); ColorSelectPopup::updateOpacityLabel((__int64)this); Slider::setValue(*((Slider **)this + 133), *((float *)this + 285)); } v48 = ButtonSprite::create( (ButtonSprite *)"Copy", (const char *)&qword_28, 0, 1, 0.6, "goldFont.fnt", "GJ_button_04.png", v47, 30.0); v50 = ButtonSprite::create( (ButtonSprite *)"Paste", (const char *)&qword_28, 0, 1, 0.6, "goldFont.fnt", "GJ_button_04.png", v49, 30.0); v52 = ButtonSprite::create( (ButtonSprite *)"Default", (const char *)&qword_28, 0, 1, 0.6, "goldFont.fnt", "GJ_button_04.png", v51, 30.0); v53 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v48, 0, (__int64)this, (__int64)ColorSelectPopup::onCopy, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v53); v54 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v50, 0, (__int64)this, (__int64)ColorSelectPopup::onPaste, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v54); v55 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v52, 0, (__int64)this, (__int64)ColorSelectPopup::onDefault, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v55); v56 = *((cocos2d::CCNode **)this + 69); v57 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v195, (float)(*(float *)&v185 * 0.5) + 190.0, (float)(*((float *)&v185 + 1) * 0.5) + 130.0); cocos2d::CCNode::convertToNodeSpace(v196, v56, (const cocos2d::CCPoint *)v195); v57(v53, v196); v58 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v54 + 184LL); v59 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v53 + 192LL))(v53); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, -40.0); cocos2d::CCPoint::operator+(v196, v59); v58(v54, v196); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), v53); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), v54); if ( v55 ) { v60 = v54; v61 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v54 + 192LL); v62 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v55 + 184LL); v63 = v61(v60); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, -40.0); cocos2d::CCPoint::operator+(v196, v63); v62(v55, v196); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), v55); } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v186, (float)(*(float *)&v185 * 0.5) + 64.0, (float)(*((float *)&v185 + 1) * 0.5) + -130.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v187, (float)(*(float *)&v185 * 0.5) + -205.0, (float)(*((float *)&v185 + 1) * 0.5) + -90.0); if ( !*((_BYTE *)this + 1164) ) { v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Player\nColor 1", 0xEu); v132 = *((_DWORD *)this + 283) == 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, -40.0); cocos2d::CCPoint::operator+(v196, v187); ToggleButton = SetupTriggerPopup::createToggleButton( (int)this, (int)&v199, (int)ColorSelectPopup::onPlayerColor1, 0, v132, (cocos2d::CCPoint *)v196); v134 = v199; *((_QWORD *)this + 134) = ToggleButton; if ( (v134 & 1) != 0 ) operator delete(v201); v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Player\nColor 2", 0xEu); v135 = *((_DWORD *)this + 283) == 2; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v196, (float)(*(float *)&v185 * 0.5) + -108.0, (float)(*((float *)&v185 + 1) * 0.5) + -130.0); v136 = SetupTriggerPopup::createToggleButton( (int)this, (int)&v199, (int)ColorSelectPopup::onPlayerColor2, 0, v135, (cocos2d::CCPoint *)v196); v137 = v199; *((_QWORD *)this + 135) = v136; if ( (v137 & 1) != 0 ) operator delete(v201); if ( *((_BYTE *)this + 1160) ) { v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Tint\nGround", 0xBu); v138 = *((unsigned __int8 *)this + 1161); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 90.0, 40.0); cocos2d::CCPoint::operator+(v196, v186); SetupTriggerPopup::createToggleButton( (int)this, (int)&v199, (int)ColorSelectPopup::onTintGround, 0, v138, (cocos2d::CCPoint *)v196); if ( (v199 & 1) != 0 ) operator delete(v201); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, 0.0, -9.0); cocos2d::CCPoint::operator+(&v192, v187); if ( *((_BYTE *)this + 1163) ) { v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Blending", 8u); v139 = *((_DWORD *)this + 284) == 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, (const cocos2d::CCPoint *)&v192); SetupTriggerPopup::createToggleButton( (int)this, (int)&v199, (int)ColorSelectPopup::onToggleTintMode, 0, v139, (cocos2d::CCPoint *)v196); if ( (v199 & 1) != 0 ) operator delete(v201); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, 30.0); cocos2d::CCPoint::operator+(v196, &v192); cocos2d::CCPoint::operator=(&v192, v196); } v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Copy Color", 0xAu); v140 = *((_DWORD *)this + 294) != 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, (const cocos2d::CCPoint *)&v192); SetupTriggerPopup::createToggleButton( (int)this, (int)&v199, (int)ColorSelectPopup::onToggleHSVMode, 0, v140, (cocos2d::CCPoint *)v196); if ( (v199 & 1) != 0 ) operator delete(v201); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, 30.0); cocos2d::CCPoint::operator+(v196, &v192); cocos2d::CCPoint::operator=(&v192, v196); if ( v8 ) { v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Touch\nTrigger", 0xDu); v141 = *((unsigned __int8 *)this + 696); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, (const cocos2d::CCPoint *)v186); v142 = SetupTriggerPopup::createToggleButton( (int)this, (int)&v199, (int)SetupTriggerPopup::onTouchTriggered, 0, v141, (cocos2d::CCPoint *)v196); v143 = v199; *((_QWORD *)this + 88) = v142; if ( (v143 & 1) != 0 ) operator delete(v201); v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Spawn\nTrigger", 0xDu); v144 = *((unsigned __int8 *)this + 697); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 90.0, 0.0); cocos2d::CCPoint::operator+(v196, v186); v145 = SetupTriggerPopup::createToggleButton( (int)this, (int)&v199, (int)SetupTriggerPopup::onSpawnedByTrigger, 0, v144, (cocos2d::CCPoint *)v196); v146 = v199; *((_QWORD *)this + 89) = v145; if ( (v146 & 1) != 0 ) operator delete(v201); v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Multi\nTrigger", 0xDu); v147 = *((_BYTE *)this + 728); v148 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, (const cocos2d::CCPoint *)&v192); v149 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 8.0, 0.0); GameToolbox::createToggleButton( (__int64)&v199, (const char *)SetupTriggerPopup::onMultiTrigger, 0, v147, v148, (const cocos2d::CCPoint *)v196, (__int64)this, v149, 0.7, 0.35, 110.0, v195, "bigFont.fnt", 0, 0, *((cocos2d::CCArray **)this + 90)); if ( (v199 & 1) != 0 ) operator delete(v201); SetupTriggerPopup::updateMultiTriggerBtn(this); } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v193, (float)(*(float *)&v185 * 0.5) + 110.0, (float)(*((float *)&v185 + 1) * 0.5) + 18.0); v151 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOn_001.png", v150); v153 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_checkOff_001.png", v152); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v151 + 160LL))(v151, 0.7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v153 + 160LL))(v153, 0.7); v154 = (CCMenuItemToggler *)CCMenuItemToggler::create( v151, v153, (__int64)this, (__int64)ColorSelectPopup::onCopyOpacity, 0); CCMenuItemToggler::toggle(v154, *((_BYTE *)this + 1180) ^ 1); (*(void (__fastcall **)(_QWORD, CCMenuItemToggler *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v154); v155 = *(void (__fastcall **)(CCMenuItemToggler *, __int64 *))(*(_QWORD *)v154 + 184LL); cocos2d::CCNode::convertToNodeSpace(v196, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)&v193); v155(v154, v196); CCMenuItemToggler::setSizeMult(v154, 1.5); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v154); v157 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Copy Opacity", "bigFont.fnt", v156); (*(void (__fastcall **)(ColorSelectPopup *, cocos2d::CCLabelBMFont *))(*(_QWORD *)this + 456LL))(this, v157); v158 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v157 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, 0.0, 0.5); v158(v157, v196); v159 = v151; v160 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v151 + 328LL); v161 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v157 + 184LL); v162 = (float *)v160(v159); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, (float)((float)(*v162 * 0.5) * 0.7) + 8.0, 0.0); cocos2d::CCPoint::operator+(v196, &v193); v161(v157, v196); cocos2d::CCLabelBMFont::limitLabelWidth(v157, 110.0, 0.35, 0.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v157); v199 = 0; v200 = 0; v201 = nullptr; std::string::__init(&v199, "Legacy\nHSV", 0xAu); v163 = *((cocos2d::CCNode **)this + 69); LOBYTE(v157) = *((_BYTE *)this + 1162) ^ 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, 0.0, 100.0); cocos2d::CCPoint::operator+(v195, &v193); v164 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, 8.0, 0.0); v165 = GameToolbox::createToggleButton( (__int64)&v199, (const char *)ColorSelectPopup::onHSVLegacyMode, 0, (unsigned __int8)v157, v163, (const cocos2d::CCPoint *)v195, (__int64)this, v164, 0.7, 0.3, 0.0, (float *)v196, "bigFont.fnt", 0, 0x6Fu, nullptr); if ( (v199 & 1) != 0 ) operator delete(v201); v166 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 480LL))( *((_QWORD *)this + 73), 111); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v165); if ( v166 ) cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v166); } v65 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v64); *((_QWORD *)this + 137) = v65; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v65 + 160LL))(v65, 1.0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 137), 5); v66 = *((_QWORD *)this + 137); v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v66 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v196, (float)(*(float *)&v185 * 0.5) + -200.0, (float)(*((float *)&v185 + 1) * 0.5) + 125.0); v67(v66, v196); v68 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 137) + 328LL))(*((_QWORD *)this + 137)); v70 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v69); *((_QWORD *)this + 138) = v70; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v70 + 144LL))(v70, 0.5); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 138), 5); v71 = *((_QWORD *)this + 138); v72 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v71 + 184LL); v73 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 137) + 192LL))(*((_QWORD *)this + 137)); v74 = (float)((float)-v68 * 0.5) - (float)(v68 * 0.5) * 0.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, v74); cocos2d::CCPoint::operator+(v196, v73); v72(v71, v196); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), *((cocos2d::CCObject **)this + 137)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), *((cocos2d::CCObject **)this + 138)); if ( *((_BYTE *)this + 1165) ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v190, (float)(*(float *)&v185 * 0.5) + 150.0, (float)(*((float *)&v185 + 1) * 0.5) + -90.0); v113 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Color ID", "goldFont.fnt", v112); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v113 + 160LL))(v113, 0.7); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v113); v114 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v113 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v195, 0.0, 30.0); cocos2d::CCPoint::operator+(v196, &v190); v114(v113, v196); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v195, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v196, (const cocos2d::CCRect *)v195); v115 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v196); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v115 + 912LL))(v115, 100); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v115 + 960LL))(v115, &unk_114B078); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v191, 50.0, 30.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v115 + 320LL))(v115, &v191); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v115, 0xFFFFFFFFLL); (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v115 + 184LL))(v115, &v190); v117 = CCTextInputNode::create( (CCTextInputNode *)"Num", 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v116); *((_QWORD *)this + 144) = v117; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v117, 20); (*(void (__fastcall **)(_QWORD, int *))(**((_QWORD **)this + 144) + 184LL))(*((_QWORD *)this + 144), &v190); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 144), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 144), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 144) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 144) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 144) + 592LL) = 4; v199 = 0; v118 = *((_QWORD *)this + 144); v200 = 0; v201 = nullptr; std::string::__init(&v199, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v118, (__int64)&v199); if ( (v199 & 1) != 0 ) operator delete(v201); LOWORD(v182) = -21896; BYTE2(v182) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 144), v182); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 144), 0.5); *(_QWORD *)(*((_QWORD *)this + 144) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 144) + 72LL))(*((_QWORD *)this + 144), 3); *(_BYTE *)(*((_QWORD *)this + 144) + 424LL) = 1; cocos2d::CCNode::convertToNodeSpace(&v192, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)&v190); v120 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v119); v121 = CCMenuItemSpriteExtra::create(v120, 0, (__int64)this, (__int64)ColorSelectPopup::onSelectSpecialColor, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v121); v122 = *((cocos2d::CCNode **)this + 69); v123 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v121 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v193, 54.0, 28.5); cocos2d::CCPoint::operator+(&v194, &v190); cocos2d::CCNode::convertToNodeSpace(v196, v122, (const cocos2d::CCPoint *)&v194); v123(v121, v196); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v121 + 72LL))(v121, 6); v125 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v124); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v125 + 160LL))(v125, 1.1); v126 = CCMenuItemSpriteExtra::create(v125, 0, (__int64)this, (__int64)ColorSelectPopup::onUpdateCustomColor, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v126); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v126 + 72LL))(v126, 2); v127 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, -50.0, 0.0); cocos2d::CCPoint::operator+(v196, &v192); v127(v126, v196); CCMenuItemSpriteExtra::setSizeMult(v126, 2.0); v129 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v128); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v129 + 160LL))(v129, 1.1); v130 = CCMenuItemSpriteExtra::create(v129, 0, (__int64)this, (__int64)ColorSelectPopup::onUpdateCustomColor, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v130); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v130 + 72LL))(v130, 1); v131 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v130 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, 50.0, 0.0); cocos2d::CCPoint::operator+(v196, &v192); v131(v130, v196); CCMenuItemSpriteExtra::setSizeMult(v130, 2.0); ColorSelectPopup::updateTextInputLabel(this); } v75 = ConfigureHSVWidget::create(*((_QWORD *)this + 149), *((_QWORD *)this + 150), 0, 0); v76 = *(_QWORD *)this; *((_QWORD *)this + 148) = v75; (*(void (__fastcall **)(ColorSelectPopup *))(v76 + 456))(this); v77 = *((_QWORD *)this + 148); v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v196, (float)(*(float *)&v185 * 0.5) + -75.0, (float)(*((float *)&v185 + 1) * 0.5) + 45.0); v78(v77, v196); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 148) + 160LL))(*((_QWORD *)this + 148), 0.85); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), *((cocos2d::CCObject **)this + 148)); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v188, (float)(*(float *)&v185 * 0.5) + 150.0, (float)(*((float *)&v185 + 1) * 0.5) + 90.0); v80 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Channel ID", "goldFont.fnt", v79); (*(void (__fastcall **)(ColorSelectPopup *, cocos2d::CCObject *))(*(_QWORD *)this + 456LL))(this, v80); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v80 + 160LL))(v80, 0.7); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v80 + 184LL))(v80, v188); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v80); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, 0.0, -30.0); cocos2d::CCPoint::operator+(&v189, v188); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v195, 0.0, 0.0, 40.0, 40.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v190, 50.0, 30.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v196, (const cocos2d::CCRect *)v195); v81 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v196); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v81 + 912LL))(v81, 100); v82 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v81 + 960LL); LOWORD(v196[0]) = 0; BYTE2(v196[0]) = 0; v82(v81, v196); (*(void (__fastcall **)(cocos2d::CCObject *, int *))(*(_QWORD *)v81 + 320LL))(v81, &v190); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v81, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v81 + 184LL))(v81, &v189); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v81); v84 = CCTextInputNode::create( (CCTextInputNode *)"Num", 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v83); *((_QWORD *)this + 153) = v84; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v84, 20); (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 153) + 184LL))(*((_QWORD *)this + 153), &v189); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 153), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 153), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 153) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 153) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 153) + 592LL) = 6; v199 = 0; v85 = *((_QWORD *)this + 153); v200 = 0; v201 = nullptr; std::string::__init(&v199, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v85, (__int64)&v199); if ( (v199 & 1) != 0 ) operator delete(v201); LOWORD(v183) = -21896; BYTE2(v183) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 153), v183); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 153), 0.5); *(_QWORD *)(*((_QWORD *)this + 153) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 153) + 72LL))(*((_QWORD *)this + 153), 4); *(_BYTE *)(*((_QWORD *)this + 153) + 424LL) = 1; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), *((cocos2d::CCObject **)this + 153)); cocos2d::CCNode::convertToNodeSpace(&v191, *((cocos2d::CCNode **)this + 69), (const cocos2d::CCPoint *)&v189); v87 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v86); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v87 + 160LL))(v87, 1.1); v88 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v87, 0, (__int64)this, (__int64)ColorSelectPopup::onUpdateCopyColor, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v88); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v88 + 72LL))(v88, 1); v176 = *(cocos2d::CCRect **)(*(_QWORD *)v88 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, -50.0, 0.0); cocos2d::CCPoint::operator+(v196, &v191); ((void (__fastcall *)(cocos2d::CCObject *, __int64 *))v176)(v88, v196); CCMenuItemSpriteExtra::setSizeMult((__int64)v88, 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v88); v90 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v89); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v90 + 160LL))(v90, 1.1); v91 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v90, 0, (__int64)this, (__int64)ColorSelectPopup::onUpdateCopyColor, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v91); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v91 + 72LL))(v91, 2); v92 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v91 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, 50.0, 0.0); cocos2d::CCPoint::operator+(v196, &v191); v92(v91, v196); CCMenuItemSpriteExtra::setSizeMult((__int64)v91, 2.0); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v91); v94 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v93); v95 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v94, 0, (__int64)this, (__int64)ColorSelectPopup::onSelectSpecialColor, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v95); v177 = *((cocos2d::CCNode **)this + 69); v96 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v95 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v193, 50.0, 25.0); cocos2d::CCPoint::operator+(&v194, v188); cocos2d::CCNode::convertToNodeSpace(v196, v177, (const cocos2d::CCPoint *)&v194); v96(v95, v196); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 152), v95); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v95 + 72LL))(v95, 7); v197[0] = 0; v197[1] = 0; v198 = nullptr; std::string::__init(v197, "Help", 4u); v199 = 0; v200 = 0; v201 = nullptr; std::string::__init( &v199, "Change the attributes of a color channel. Each color channel is separated by a Color ID, which goes " "up to 999.\n" "This color channel can then be set in specific objects.\n" "Copy Color inherits color from another channel.", 0xEEu); v97 = InfoAlertButton::create(v197, &v199, 1.0); if ( (v199 & 1) != 0 ) operator delete(v201); if ( (v197[0] & 1) != 0 ) operator delete(v198); v98 = 1; v99 = 0; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v97); v179 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v97 + 184LL); v178 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v194, (float)(*(float *)&v185 * 0.5) + -100.0, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v185 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(v196, v178, (const cocos2d::CCPoint *)&v194); v179(v97, v196); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v192, (float)(*(float *)&v185 * 0.5) + -154.0, (float)(*((float *)&v185 + 1) * 0.5) + 30.0); while ( 1 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v196, (float)((float)v99 - 1.0) * 42.0, 22.0); cocos2d::CCPoint::operator+(&v193, &v192); if ( v99 == 3 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, 0.0, -22.0); cocos2d::CCPoint::operator+(v196, &v192); cocos2d::CCPoint::operator=(&v193, v196); v101 = "HEX:"; } else if ( v99 ) { if ( v99 == 1 ) { v101 = "G:"; } else if ( v99 == 2 ) { v101 = "B:"; } else { v101 = "HEX:"; } } else { v101 = "R:"; } v102 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v101, "goldFont.fnt", v100); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v102 + 160LL))(v102, 0.5); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), v102); v103 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v102 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v194, 0.0, 20.0); cocos2d::CCPoint::operator+(v196, &v193); v103(v102, v196); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), v102); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v196, (const cocos2d::CCRect *)v195); v104 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v196); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v104 + 912LL))(v104, 100); v105 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v104 + 960LL); LOWORD(v196[0]) = 0; BYTE2(v196[0]) = 0; v105(v104, v196); if ( v99 == 3 ) v190 = 1120403456; (*(void (__fastcall **)(cocos2d::CCObject *, int *))(*(_QWORD *)v104 + 320LL))(v104, &v190); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v104 + 160LL))(v104, 0.6); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v104, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v104 + 184LL))(v104, &v193); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), v104); v107 = 40.0; if ( v99 == 3 ) v107 = 80.0; v108 = CCTextInputNode::create( (CCTextInputNode *)"Num", v107, 20.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v106); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v108, 20); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v108 + 184LL))(v108, &v193); CCTextInputNode::setMaxLabelScale((CCTextInputNode *)v108, 0.4); CCTextInputNode::setMaxLabelWidth((CCTextInputNode *)v108, 50.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v108 + 576) + 344LL))(*(_QWORD *)(v108 + 576), 0); if ( v99 == 3 ) { v109 = 7; v110 = "0123456789ABCDEFabcdef"; } else { v109 = 4; v110 = "0123456789"; } *(_DWORD *)(v108 + 592) = v109; v199 = 0; v200 = 0; v201 = nullptr; v180 = (char *)v110; v111 = strlen(v110); std::string::__init(&v199, v180, v111); CCTextInputNode::setAllowedChars(v108, (__int64)&v199); if ( (v199 & 1) != 0 ) operator delete(v201); LOBYTE(v184) = 120; *(_WORD *)((char *)&v184 + 1) = -3926; CCTextInputNode::setLabelPlaceholderColor(v108, v184); CCTextInputNode::setLabelPlaceholderScale((CCTextInputNode *)v108, 0.4); *(_QWORD *)(v108 + 584) = (char *)this + 544; *(_BYTE *)(v108 + 424) = v99 <= 2; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 151), (cocos2d::CCObject *)v108); if ( v99 == 2 ) { *((_QWORD *)this + 160) = v108; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 72LL))(v108, 10); goto LABEL_41; } if ( v99 == 3 ) break; if ( v99 == 1 ) { *((_QWORD *)this + 159) = v108; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 72LL))(v108, 9); } else { *((_QWORD *)this + 158) = v108; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 72LL))(v108, 8); if ( v98 == 4 ) goto LABEL_20; } LABEL_41: ++v99; ++v98; } *((_QWORD *)this + 161) = v108; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v108 + 72LL))(v108, 11); LABEL_20: ColorSelectPopup::updateHSVMode((cocos2d::CCArray **)this); ColorSelectPopup::updateCopyColorTextInputLabel(this); *((_BYTE *)this + 744) = 0; *((_BYTE *)this + 1172) = 0; return v175; }