// // CustomizeObjectLayer::init from 0x984f1c to 0x986f00 (8164 bytes) // // 2 xrefs: // > CustomizeObjectLayer::create @ 0x98712c // > @ 0xdf4b0 // // 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:57:54 +0000 // __int64 __fastcall CustomizeObjectLayer::init(CustomizeObjectLayer *this, GameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v6; // x0 __int64 v7; // x21 void (__fastcall *v8)(__int64, __int64 *); // x22 void (__fastcall *v9)(__int64, __int64 *); // x22 const char *v10; // x2 __int64 v11; // x21 void (__fastcall *v12)(__int64, __int64 *); // x22 cocos2d::CCArray *v13; // x0 cocos2d::CCObject *v14; // x0 cocos2d::CCArray *v15; // x0 cocos2d::CCObject *v16; // x0 cocos2d::CCArray *v17; // x0 cocos2d::CCObject *v18; // x0 cocos2d::CCMenu *v19; // x0 __int64 v20; // x0 __int64 v21; // x21 void (__fastcall *v22)(__int64, __int64 *); // x22 const char *v23; // x1 __int64 v24; // x2 __int64 v25; // x3 bool v26; // w4 __int64 v27; // x5 const char *v28; // x6 __int64 v29; // x0 __int64 v30; // x0 __int64 v31; // x21 void (__fastcall *v32)(__int64, __int64 *); // x22 __int64 v33; // x21 cocos2d::CCNode *v34; // x28 void (__fastcall *v35)(__int64, __int64 *); // x27 cocos2d::CCNode *v36; // x21 const char *v37; // x6 __int64 v38; // x0 __int64 v39; // x0 __int64 v40; // x21 cocos2d::CCNode *v41; // x28 void (__fastcall *v42)(__int64, __int64 *); // x27 const char *v43; // x6 __int64 v44; // x0 __int64 v45; // x0 __int64 v46; // x21 void (__fastcall *v47)(__int64, __int64 *); // x25 __int64 v48; // x26 const char *v49; // x1 __int64 v50; // x21 __int64 v51; // x27 void (__fastcall *v52)(__int64, __int64 *); // x28 __int64 v53; // x1 unsigned int v54; // w21 const char *v55; // x2 __int64 v56; // x0 __int64 v57; // x28 __int64 v58; // x28 const char *v59; // x1 __int64 v60; // x0 __int64 v61; // x0 const char *v62; // x1 __int64 v63; // x0 __int64 v64; // x0 __int64 v65; // x28 __int64 v66; // x28 __int64 v67; // x0 __int64 v68; // x1 __int64 v69; // x2 int v70; // w3 cocos2d::CCArray *updated; // x0 cocos2d::CCObject *v72; // x0 const char *v73; // x6 cocos2d::CCObject *v74; // x28 const char *v75; // x6 cocos2d::CCObject *v76; // x28 const char *v77; // x6 cocos2d::CCObject *v78; // x28 const char *v79; // x6 cocos2d::CCObject *v80; // x26 cocos2d::CCObject *v81; // x27 void (__fastcall *v82)(cocos2d::CCObject *, __int64 *); // x26 void (__fastcall *v83)(cocos2d::CCNode *, __int64 *); // x26 void (__fastcall *v84)(cocos2d::CCObject *, __int64 *); // x26 void (__fastcall *v85)(cocos2d::CCObject *, __int64 *); // x26 cocos2d::CCString *v86; // x0 ButtonSprite *CString; // x0 const char *v88; // x6 cocos2d::CCObject *v89; // x27 cocos2d::CCObject *v90; // x26 void (__fastcall *v91)(cocos2d::CCObject *, __int64 *); // x23 cocos2d::CCDirector *v92; // x0 cocos2d::CCDirector *v93; // x0 float v94; // s0 const char *v95; // x4 __int64 v96; // x0 __int64 v97; // x26 cocos2d::CCNode *v98; // x28 const char *v99; // x1 __int64 v100; // x28 __int64 v101; // x0 void (__fastcall *v102)(cocos2d::CCNode *, __int64 *); // x28 const char *v103; // x1 __int64 v104; // x28 __int64 v105; // x0 __int64 v106; // x26 GameManager *v107; // x0 ColorChannelSprite *v108; // x0 __int64 v109; // x0 __int64 v110; // x0 __int64 v111; // x21 void (__fastcall *v112)(__int64, __int64 *); // x26 const char *v113; // x1 cocos2d::CCNode *v114; // x21 const char *v115; // x2 __int64 v116; // x24 void (__fastcall *v117)(__int64, __int64 *); // x26 __int64 v118; // x0 __int64 v119; // x21 void (__fastcall *v120)(__int64, __int64 *); // x24 __int64 v121; // x26 const char *v122; // x6 __int64 v123; // x0 cocos2d::CCArray *v124; // x0 __int64 v125; // x0 cocos2d::CCObject *v126; // x24 cocos2d::CCNode *v127; // x28 void (__fastcall *v128)(cocos2d::CCObject *, __int64 *); // x26 cocos2d::CCNode *v129; // x24 const char *v130; // x6 __int64 v131; // x24 const char *v132; // x6 __int64 v133; // x22 __int64 v134; // x24 __int64 v135; // x22 __int64 v136; // x0 const char *v137; // x6 __int64 v138; // x0 __int64 v139; // x21 cocos2d::CCNode *v140; // x24 void (__fastcall *v141)(__int64, __int64 *); // x22 cocos2d::CCObject *v142; // x1 cocos2d::CCObject *v144; // x0 const char *v145; // x6 __int64 v146; // x0 __int64 v147; // x0 __int64 v148; // x24 void (__fastcall *v149)(__int64, __int64 *); // x26 GameManager *v150; // x0 GameManager *v151; // x24 __int64 v152; // x0 const char *FontFile; // x0 const char *v154; // x2 __int64 v155; // x0 __int64 v156; // x24 void (__fastcall *v157)(__int64, __int64 *); // x26 Slider *v158; // x0 __int64 v159; // x24 void (__fastcall *v160)(__int64, __int64 *); // x26 Slider *v161; // x24 float v162; // s0 cocos2d::CCObject *v163; // x22 GameManager *v164; // x0 GameManager *v165; // x22 __int64 v166; // x0 char *v167; // x0 const char *v168; // x4 __int64 v169; // x0 __int64 v170; // x21 __int64 v171; // x0 _QWORD *v172; // x21 __int64 v173; // x1 const char *v174; // x1 size_t v175; // x0 const char *v176; // x6 __int64 v177; // x0 cocos2d::CCObject *v178; // x21 cocos2d::CCNode *v179; // x24 void (__fastcall *v180)(cocos2d::CCObject *, __int64 *); // x22 const char *v181; // x1 __int64 v182; // x0 cocos2d::CCObject *v183; // x21 cocos2d::CCNode *v184; // x24 void (__fastcall *v185)(cocos2d::CCObject *, __int64 *); // x22 __int64 v186; // x2 __int64 v187; // x21 void (__fastcall *v188)(__int64, __int64); // x25 __int64 v189; // x0 cocos2d::CCObject *v190; // x0 unsigned int v191; // w21 cocos2d::CCObject *v192; // x22 cocos2d::CCObject *v193; // [xsp+B0h] [xbp+B0h] cocos2d::CCNode *v194; // [xsp+B8h] [xbp+B8h] cocos2d::CCNode *v195; // [xsp+B8h] [xbp+B8h] unsigned __int8 v197; // [xsp+DFh] [xbp+DFh] cocos2d::CCObject *v198; // [xsp+E0h] [xbp+E0h] cocos2d::CCObject *v199; // [xsp+E0h] [xbp+E0h] cocos2d::CCObject *v200; // [xsp+E0h] [xbp+E0h] cocos2d::CCObject *v201; // [xsp+E0h] [xbp+E0h] cocos2d::CCObject *v202; // [xsp+E0h] [xbp+E0h] cocos2d::CCObject *v203; // [xsp+E0h] [xbp+E0h] cocos2d::CCObject *v204; // [xsp+E0h] [xbp+E0h] cocos2d::CCNode *v205; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v206; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v207; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v208; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v209; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v210; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v211; // [xsp+E8h] [xbp+E8h] cocos2d::CCNode *v212; // [xsp+E8h] [xbp+E8h] int v213; // [xsp+F8h] [xbp+F8h] int v214; // [xsp+100h] [xbp+100h] __int64 v215; // [xsp+108h] [xbp+108h] BYREF __int64 v216; // [xsp+110h] [xbp+110h] BYREF _BYTE v217[8]; // [xsp+118h] [xbp+118h] BYREF _BYTE v218[8]; // [xsp+120h] [xbp+120h] BYREF __int64 v219; // [xsp+128h] [xbp+128h] BYREF __int64 v220; // [xsp+130h] [xbp+130h] BYREF __int64 v221; // [xsp+138h] [xbp+138h] BYREF _BYTE v222[8]; // [xsp+140h] [xbp+140h] BYREF __int64 v223[2]; // [xsp+148h] [xbp+148h] BYREF __int64 v224[2]; // [xsp+158h] [xbp+158h] BYREF __int64 v225; // [xsp+168h] [xbp+168h] BYREF __int64 v226; // [xsp+170h] [xbp+170h] void *v227; // [xsp+178h] [xbp+178h] __int64 v228; // [xsp+180h] [xbp+180h] BYREF __int64 v229; // [xsp+188h] [xbp+188h] void *v230; // [xsp+190h] [xbp+190h] v197 = FLAlertLayer::init(this, 200); if ( !v197 ) return v197; if ( a2 ) { *((_QWORD *)this + 86) = a2; } else { v190 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v197); *((_QWORD *)this + 87) = v190; v191 = 0; cocos2d::CCObject::retain(v190); if ( a3 ) { while ( v191 < (unsigned int)cocos2d::CCArray::count(a3) ) { v192 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a3, v191++); if ( GameObject::canChangeCustomColor(v192) ) cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 87), v192); } } } *((_BYTE *)this + 922) = (unsigned __int8)&dword_0 + 1; *((_BYTE *)this + 596) = (unsigned __int8)&dword_0 + 1; v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1)); cocos2d::CCDirector::getWinSize(&v215, v6); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v224, 0.0, 0.0, 80.0, 80.0); v7 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v224); v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v224, 360.0, 240.0); v8(v7, v224); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v7, 0xFFFFFFFFLL); v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, *(float *)&v215 * 0.5, *((float *)&v215 + 1) * 0.5); v9(v7, v224); v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "goldFont.fnt", v10); *((_QWORD *)this + 100) = v11; v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v224, *(float *)&v215 * 0.5, (float)((float)(*((float *)&v215 + 1) * 0.5) + 120.0) - 25.0); v12(v11, v224); v13 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 100)); v14 = (cocos2d::CCObject *)cocos2d::CCArray::create(v13); *((_QWORD *)this + 89) = v14; v15 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v14); v16 = (cocos2d::CCObject *)cocos2d::CCArray::create(v15); *((_QWORD *)this + 91) = v16; v17 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v16); v18 = (cocos2d::CCObject *)cocos2d::CCArray::create(v17); *((_QWORD *)this + 92) = v18; v19 = (cocos2d::CCMenu *)cocos2d::CCObject::retain(v18); v20 = cocos2d::CCMenu::create(v19); *((_QWORD *)this + 69) = v20; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v20, 10); v21 = *((_QWORD *)this + 73); v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, 0.0, -15.0); v22(v21, v224); v29 = ButtonSprite::create((ButtonSprite *)"OK", v23, v24, v25, v26, v27, v28); v30 = CCMenuItemSpriteExtra::create(v29, 0, (__int64)this, (__int64)CustomizeObjectLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v30); v31 = *((_QWORD *)this + 69); v32 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v31 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v224, *(float *)&v215 * 0.5, (float)((float)(*((float *)&v215 + 1) * 0.5) + -120.0) + 25.0); v32(v31, v224); v225 = 0; v226 = 0; v227 = nullptr; std::string::__init(&v225, "Help", 4u); v228 = 0; v229 = 0; v230 = nullptr; std::string::__init( &v228, "Select color channel to apply to the selected object(s). Edit the properties of the selected channel in the " "bottom right.\n" "Next Free uses the next unused color channel ID,\n" "which goes up to 999 maximum.\n" "HSV lets you change the hue, saturation, and brightness of the selected object(s) (and not the channel as a " "whole).\n" "The Copy and Paste buttons allow you to quickly apply to other objects.", 0x1A4u); v33 = InfoAlertButton::create(&v225, &v228, 1.0); if ( (v228 & 1) != 0 ) { operator delete(v230); if ( (v225 & 1) == 0 ) goto LABEL_6; } else if ( (v225 & 1) == 0 ) { goto LABEL_6; } operator delete(v227); LABEL_6: (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v33); v34 = *((cocos2d::CCNode **)this + 69); v35 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v33 + 184LL); v205 = *((cocos2d::CCNode **)this + 73); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v222, (float)((float)(*(float *)&v215 * 0.5) + 180.0) - 18.0, (float)((float)(*((float *)&v215 + 1) * 0.5) + 120.0) - 18.0); cocos2d::CCNode::convertToWorldSpace(v223, v205, (const cocos2d::CCPoint *)v222); cocos2d::CCNode::convertToNodeSpace(v224, v34, (const cocos2d::CCPoint *)v223); v35(v33, v224); v36 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, *(float *)&v215 * 0.5, *((float *)&v215 + 1) * 0.5); cocos2d::CCNode::convertToNodeSpace(&v216, v36, (const cocos2d::CCPoint *)v224); CustomizeObjectLayer::determineStartValues(this); v38 = ButtonSprite::create( (ButtonSprite *)"Base", (const char *)&dword_44 + 2, 0, 1, 0.6, "bigFont.fnt", "GJ_button_04.png", v37, 30.0); v39 = CCMenuItemSpriteExtra::create(v38, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectMode, 0); *((_QWORD *)this + 95) = v39; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v39); v40 = *((_QWORD *)this + 95); v41 = *((cocos2d::CCNode **)this + 69); v42 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v223, (float)((float)((float)(*(float *)&v215 * 0.5) + -180.0) + 35.0) + 8.0, (float)((float)((float)(*((float *)&v215 + 1) * 0.5) + 120.0) + 19.0) - 15.0); cocos2d::CCNode::convertToNodeSpace(v224, v41, (const cocos2d::CCPoint *)v223); v42(v40, v224); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 95) + 72LL))(*((_QWORD *)this + 95), 1); v44 = ButtonSprite::create( (ButtonSprite *)"Detail", (const char *)&dword_44 + 2, 0, 1, 0.6, "bigFont.fnt", "GJ_button_04.png", v43, 30.0); v45 = CCMenuItemSpriteExtra::create(v44, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectMode, 0); *((_QWORD *)this + 96) = v45; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v45); v46 = *((_QWORD *)this + 96); v47 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v46 + 184LL); v48 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 95) + 192LL))(*((_QWORD *)this + 95)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v223, 95.0, 0.0); cocos2d::CCPoint::operator+(v224, v48); v47(v46, v224); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 96) + 72LL))(*((_QWORD *)this + 96), 2); if ( *((_BYTE *)this + 753) ) { if ( *((_BYTE *)this + 752) ) goto LABEL_8; v187 = *((_QWORD *)this + 96); v188 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v187 + 184LL); v189 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 95) + 192LL))(*((_QWORD *)this + 95)); v188(v187, v189); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 95) + 1056LL))(*((_QWORD *)this + 95), 0); v186 = *((_QWORD *)this + 95); } else { (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 96) + 1056LL))(*((_QWORD *)this + 96), 0); v186 = *((_QWORD *)this + 96); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v186 + 344LL))(v186, 0); LABEL_8: v50 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn_001.png", v49); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v50 + 160LL))(v50, 0.6); v51 = CCMenuItemSpriteExtra::create(v50, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSettings, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v51); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 184LL); if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 96) + 352LL))(*((_QWORD *)this + 96)) ) v53 = *((_QWORD *)this + 96); else v53 = *((_QWORD *)this + 95); v54 = 1; v206 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v53 + 192LL))(v53); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v223, 70.0, 0.0); cocos2d::CCPoint::operator+(v224, v206); v52(v51, v224); v56 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"1", "goldFont.fnt", v55); *((_QWORD *)this + 101) = v56; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 160LL))(v56, 0.75); v57 = *((_QWORD *)this + 101); v198 = *(cocos2d::CCObject **)(*(_QWORD *)v57 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, 1.0, 0.5); ((void (__fastcall *)(__int64, __int64 *))v198)(v57, v224); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 101), 10); v58 = *((_QWORD *)this + 101); v199 = *(cocos2d::CCObject **)(*(_QWORD *)v58 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v224, (float)(*(float *)&v215 * 0.5) + 130.0, (float)(*((float *)&v215 + 1) * 0.5) + -91.0); ((void (__fastcall *)(__int64, __int64 *))v199)(v58, v224); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), *((cocos2d::CCObject **)this + 101)); v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_hsvBtn_001.png", v59); v61 = CCMenuItemSpriteExtra::create(v60, 0, (__int64)this, (__int64)CustomizeObjectLayer::onHSV, 0); *((_QWORD *)this + 98) = v61; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 72LL))(v61, 1); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 98)); v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_hsvBtn_001.png", v62); v64 = CCMenuItemSpriteExtra::create(v63, 0, (__int64)this, (__int64)CustomizeObjectLayer::onHSV, 0); *((_QWORD *)this + 99) = v64; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v64 + 72LL))(v64, 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), *((_QWORD *)this + 99)); v65 = *((_QWORD *)this + 98); v194 = *((cocos2d::CCNode **)this + 69); v200 = *(cocos2d::CCObject **)(*(_QWORD *)v65 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v223, (float)((float)(*(float *)&v215 * 0.5) + -180.0) + 25.0, (float)((float)(*((float *)&v215 + 1) * 0.5) + 120.0) - 40.0); cocos2d::CCNode::convertToNodeSpace(v224, v194, (const cocos2d::CCPoint *)v223); ((void (__fastcall *)(__int64, __int64 *))v200)(v65, v224); v66 = *((_QWORD *)this + 99); v201 = *(cocos2d::CCObject **)(*(_QWORD *)v66 + 184LL); v67 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 98) + 192LL))(*((_QWORD *)this + 98)); ((void (__fastcall *)(__int64, __int64))v201)(v66, v67); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 98) + 344LL))(*((_QWORD *)this + 98), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 99) + 344LL))(*((_QWORD *)this + 99), 0); updated = (cocos2d::CCArray *)CustomizeObjectLayer::updateHSVButtons(this, v68, v69, v70); v72 = (cocos2d::CCObject *)cocos2d::CCArray::create(updated); *((_QWORD *)this + 88) = v72; cocos2d::CCObject::retain(v72); v74 = (cocos2d::CCObject *)ButtonSprite::create( (ButtonSprite *)"P-Col 1", (const char *)&qword_D8 + 4, 0, 0, 0.4, "bigFont.fnt", "GJ_button_04.png", v73, 25.0); v202 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v74, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectColor, 0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v202 + 72LL))(v202, 1005); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v74 + 72LL))(v74, 1005); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v202); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 88), v74); v193 = v202; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), v202); v76 = (cocos2d::CCObject *)ButtonSprite::create( (ButtonSprite *)"P-Col 2", (const char *)&qword_D8 + 4, 0, 0, 0.4, "bigFont.fnt", "GJ_button_04.png", v75, 25.0); v203 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v76, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectColor, 0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v203 + 72LL))(v203, 1006); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v76 + 72LL))(v76, 1006); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v203); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 88), v76); v195 = v203; cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), v203); v204 = (cocos2d::CCObject *)ButtonSprite::create( (ButtonSprite *)"Light BG", (const char *)&qword_D8 + 4, 0, 0, 0.4, "bigFont.fnt", "GJ_button_04.png", v77, 25.0); v78 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v204, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectColor, 0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v78 + 72LL))(v78, 1007); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v204 + 72LL))(v204, 1007); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v78); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 88), v204); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), v78); v80 = (cocos2d::CCObject *)ButtonSprite::create( (ButtonSprite *)"Default", (const char *)&qword_D8 + 4, 0, 0, 0.4, "bigFont.fnt", "GJ_button_04.png", v79, 25.0); v81 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v80, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectColor, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v81 + 72LL))(v81, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v80 + 72LL))(v80, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v81); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 88), v80); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), v81); v82 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v193 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v223, -135.0, 25.0); cocos2d::CCPoint::operator+(v224, &v216); v82(v193, v224); v83 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v195 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v223, -45.0, 25.0); cocos2d::CCPoint::operator+(v224, &v216); v83(v195, v224); v84 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v78 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v223, 45.0, 25.0); cocos2d::CCPoint::operator+(v224, &v216); v84(v78, v224); v85 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v81 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v223, 135.0, 25.0); cocos2d::CCPoint::operator+(v224, &v216); v85(v81, v224); while ( 1 ) { v86 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v54); CString = (ButtonSprite *)cocos2d::CCString::getCString(v86); v89 = (cocos2d::CCObject *)ButtonSprite::create( CString, (const char *)&off_18 + 6, 0, 1, 0.4, "bigFont.fnt", "GJ_button_04.png", v88, 25.0); v90 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v89, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectColor, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v89 + 72LL))(v89, v54); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v90 + 72LL))(v90, v54); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v90); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 88), v89); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), v90); v91 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v90 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v223, (float)((float)((int)(v54 - 1) % 5) * 65.0) + -130.0, 25.0 - (float)((float)(int)(vcvtms_s32_f32((float)((int)(v54 - 1) / 5)) + 1) * 40.0)); cocos2d::CCPoint::operator+(v224, &v216); v91(v90, v224); if ( v54 == 10 ) break; ++v54; } *((_QWORD *)this + 107) = v89; *((_QWORD *)this + 108) = v90; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v89 + 72LL))(v89, 1008); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 108) + 72LL))(*((_QWORD *)this + 108), 1008); v92 = (cocos2d::CCDirector *)ButtonSprite::setString(*((ButtonSprite **)this + 107), "+"); v93 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v92); cocos2d::CCDirector::getScreenRight(v93); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v217, v94 - 30.0, *((float *)&v215 + 1) * 0.5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v223, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v224, (const cocos2d::CCRect *)v223); *((_QWORD *)this + 111) = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v224); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v218, 50.0, 30.0); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 111) + 320LL))(*((_QWORD *)this + 111), v218); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 111), 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 111) + 184LL))(*((_QWORD *)this + 111), v217); v96 = CCTextInputNode::create( (CCTextInputNode *)"Num", 100.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v95); *((_QWORD *)this + 102) = v96; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v96, 20); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 102) + 184LL))(*((_QWORD *)this + 102), v217); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 102), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 102), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 102) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 102) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 102) + 592LL) = 4; v228 = 0; v97 = *((_QWORD *)this + 102); v229 = 0; v230 = nullptr; std::string::__init(&v228, "0123456789", 0xAu); CCTextInputNode::setAllowedChars(v97, (__int64)&v228); if ( (v228 & 1) != 0 ) operator delete(v230); LOWORD(v213) = -21896; BYTE2(v213) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 102), v213); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 102), 0.5); *(_QWORD *)(*((_QWORD *)this + 102) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 102) + 72LL))(*((_QWORD *)this + 102), 0); ButtonSprite::setString(*((ButtonSprite **)this + 107), "++"); v98 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v222, 0.0, -15.0); cocos2d::CCPoint::operator+(v224, v217); cocos2d::CCNode::convertToNodeSpace(&v219, v98, (const cocos2d::CCPoint *)v224); v100 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_leftBtn_001.png", v99); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v100 + 160LL))(v100, 1.4); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v100 + 360LL))(v100, 90.0); v101 = CCMenuItemSpriteExtra::create(v100, 0, (__int64)this, (__int64)CustomizeObjectLayer::onUpdateCustomColor, 0); *((_QWORD *)this + 109) = v101; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v101); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 109) + 72LL))(*((_QWORD *)this + 109), 1); v207 = *((cocos2d::CCNode **)this + 109); v102 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v207 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v222, 0.0, 40.0); cocos2d::CCPoint::operator+(v224, &v219); v102(v207, v224); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 109), 2.0); v104 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"edit_rightBtn_001.png", v103); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v104 + 160LL))(v104, 1.4); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v104 + 360LL))(v104, 90.0); v105 = CCMenuItemSpriteExtra::create(v104, 0, (__int64)this, (__int64)CustomizeObjectLayer::onUpdateCustomColor, 0); *((_QWORD *)this + 110) = v105; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v105); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 110) + 72LL))(*((_QWORD *)this + 110), 2); v106 = *((_QWORD *)this + 110); v208 = *(cocos2d::CCNode **)(*(_QWORD *)v106 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v222, 0.0, -40.0); cocos2d::CCPoint::operator+(v224, &v219); ((void (__fastcall *)(__int64, __int64 *))v208)(v106, v224); v107 = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 110), 2.0); *((_DWORD *)this + 187) = *(_DWORD *)(GameManager::sharedState(v107) + 972); v108 = (ColorChannelSprite *)CustomizeObjectLayer::updateCustomColorLabels((ButtonSprite **)this); v109 = ColorChannelSprite::create(v108); *((_QWORD *)this + 112) = v109; v110 = CCMenuItemSpriteExtra::create(v109, 0, (__int64)this, (__int64)CustomizeObjectLayer::onEditColor, 0); *((_QWORD *)this + 113) = v110; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v110); v111 = *((_QWORD *)this + 113); v209 = *((cocos2d::CCNode **)this + 69); v112 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v111 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v222, (float)((float)(*(float *)&v215 * 0.5) + 180.0) - 25.0, (float)((float)(*((float *)&v215 + 1) * 0.5) + -120.0) + 12.0); cocos2d::CCNode::convertToNodeSpace(v224, v209, (const cocos2d::CCPoint *)v222); v112(v111, v224); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), *((cocos2d::CCObject **)this + 113)); v114 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_colorBtn_001.png", v113); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)v114 + 960LL))(v114, &unk_116A490); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v114 + 912LL))(v114, 100); v116 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"+", "bigFont.fnt", v115); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v114 + 456LL))(v114, v116); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v116 + 160LL))(v116, 1.4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v116 + 1024LL))(v116, 100); v117 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v116 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v221, v114, (const cocos2d::CCPoint *)&unk_155D188); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v222, 2.0, 2.5); cocos2d::CCPoint::operator+(v224, &v221); v117(v116, v224); (*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v114 + 160LL))(v114, 0.3); v118 = CCMenuItemSpriteExtra::create((__int64)v114, 0, (__int64)this, (__int64)CustomizeObjectLayer::onLiveEdit, 0); *((_QWORD *)this + 114) = v118; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v118); v119 = *((_QWORD *)this + 114); v120 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v119 + 184LL); v121 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 113) + 192LL))(*((_QWORD *)this + 113)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v222, 18.0, 22.0); cocos2d::CCPoint::operator+(v224, v121); v120(v119, v224); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 114), 2.0); v123 = *((_QWORD *)this + 86); if ( v123 && ((v124 = (cocos2d::CCArray *)*(unsigned int *)(v123 + 1028), (_DWORD)v124 == 914) || (_DWORD)v124 == 1615) ) { *((_BYTE *)this + 921) = 1; v144 = (cocos2d::CCObject *)cocos2d::CCArray::create(v124); *((_QWORD *)this + 90) = v144; cocos2d::CCObject::retain(v144); v146 = ButtonSprite::create( (ButtonSprite *)"Text", (const char *)&dword_44 + 2, 0, 1, 0.6, "bigFont.fnt", "GJ_button_04.png", v145, 30.0); v147 = CCMenuItemSpriteExtra::create(v146, 0, (__int64)this, (__int64)CustomizeObjectLayer::onSelectMode, 0); *((_QWORD *)this + 97) = v147; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v147); v148 = *((_QWORD *)this + 97); v210 = *((cocos2d::CCNode **)this + 69); v149 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v148 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v222, (float)((float)((float)(*(float *)&v215 * 0.5) + 180.0) - 35.0) - 8.0, (float)((float)((float)(*((float *)&v215 + 1) * 0.5) + 120.0) + 19.0) - 15.0); cocos2d::CCNode::convertToNodeSpace(v224, v210, (const cocos2d::CCPoint *)v222); v149(v148, v224); v150 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 97) + 72LL))( *((_QWORD *)this + 97), 3); v151 = (GameManager *)GameManager::sharedState(v150); v152 = GameManager::sharedState(v151); FontFile = GameManager::getFontFile(v151, *(_DWORD *)(v152 + 992)); v155 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, FontFile, v154); *((_QWORD *)this + 105) = v155; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v155); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 105) + 160LL))(*((_QWORD *)this + 105), 0.6); v156 = *((_QWORD *)this + 105); v157 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v156 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v224, *(float *)&v215 * 0.5, (float)(*((float *)&v215 + 1) * 0.5) + -15.0); v157(v156, v224); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), *((cocos2d::CCObject **)this + 105)); v158 = (Slider *)Slider::create((int)this, (int)CustomizeObjectLayer::sliderChanged, 0, 0.8); *((_QWORD *)this + 106) = v158; Slider::setBarVisibility(v158); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 106)); v159 = *((_QWORD *)this + 106); v160 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v159 + 184LL); v211 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 105) + 192LL))(*((_QWORD *)this + 105)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v222, 0.0, -28.0); cocos2d::CCPoint::operator+(v224, v211); v160(v159, v224); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), *((cocos2d::CCObject **)this + 106)); *((_DWORD *)this + 208) = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 86) + 1760LL))(*((_QWORD *)this + 86)); CustomizeObjectLayer::updateKerningLabel(this); v161 = *((Slider **)this + 106); v162 = kerningSliderValueFromValue(*((_DWORD *)this + 208)); Slider::setValue(v161, v162); if ( *(_DWORD *)(*((_QWORD *)this + 86) + 1028LL) == 914 ) { cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v221, *(float *)&v215 * 0.5, (float)(*((float *)&v215 + 1) * 0.5) + 50.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v224, (const cocos2d::CCRect *)v223); v163 = (cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v224); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v163 + 912LL))(v163, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v224, 240.0, 30.0); cocos2d::CCSize::operator=(v218, v224); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v163 + 320LL))(v163, v218); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v163, 0xFFFFFFFFLL); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v163 + 184LL))(v163, &v221); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), v163); v164 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v163 + 344LL))(v163, 0); v165 = (GameManager *)GameManager::sharedState(v164); v166 = GameManager::sharedState(v165); v167 = (char *)GameManager::getFontFile(v165, *(_DWORD *)(v166 + 992)); v169 = CCTextInputNode::create( (CCTextInputNode *)"Text", 240.0, 40.0, "Thonburi", (const char *)&off_18, v167, v168); *((_QWORD *)this + 103) = v169; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v169, 20); (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 103) + 184LL))(*((_QWORD *)this + 103), &v221); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 103), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 103), 240.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 103) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 103) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 103) + 592LL) = 20; v228 = 0; v170 = *((_QWORD *)this + 103); v229 = 0; v230 = nullptr; std::string::__init( &v228, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,-!?:;)(/\\\"'`*=+-_%[]<>|@&^#{}%$~", 0x61u); CCTextInputNode::setAllowedChars(v170, (__int64)&v228); if ( (v228 & 1) != 0 ) operator delete(v230); LOWORD(v214) = -21896; BYTE2(v214) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 103), v214); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 103), 0.5); *(_QWORD *)(*((_QWORD *)this + 103) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 103) + 72LL))(*((_QWORD *)this + 103), 1); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 103) + 344LL))(*((_QWORD *)this + 103), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 103) + 1000LL))(*((_QWORD *)this + 103), 0); *(_BYTE *)(*((_QWORD *)this + 103) + 608LL) = 1; *(_DWORD *)(*((_QWORD *)this + 103) + 708LL) = *((_DWORD *)this + 208); v225 = 0; v171 = *((_QWORD *)this + 86); v226 = 0; v227 = nullptr; v172 = *((_QWORD **)this + 103); if ( (*(_BYTE *)(v171 + 1352) & 1) != 0 ) { std::string::__init(&v225, *(void **)(v171 + 1368), *(_QWORD *)(v171 + 1360)); } else { v173 = *(_QWORD *)(v171 + 1360); v225 = *(_QWORD *)(v171 + 1352); v226 = v173; v227 = *(void **)(v171 + 1368); } v174 = (char *)&v225 + 1; if ( (v225 & 1) != 0 ) v174 = (const char *)v227; v212 = (cocos2d::CCNode *)v174; v228 = 0; v229 = 0; v230 = nullptr; v175 = strlen(v174); std::string::__init(&v228, v212, v175); CCTextInputNode::setString(v172, (char *)&v228); if ( (v228 & 1) != 0 ) operator delete(v230); if ( (v225 & 1) != 0 ) operator delete(v227); v177 = ButtonSprite::create( (ButtonSprite *)"Split", (const char *)&qword_28, 0, 1, 0.6, "bigFont.fnt", "GJ_button_04.png", v176, 30.0); v178 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v177, 0, (__int64)this, (__int64)CustomizeObjectLayer::onBreakApart, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v178); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), v178); v179 = *((cocos2d::CCNode **)this + 69); v180 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v178 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v222, (float)((float)(*(float *)&v215 * 0.5) + 180.0) - 36.0, (float)((float)(*((float *)&v215 + 1) * 0.5) + -120.0) + 10.0); cocos2d::CCNode::convertToNodeSpace(v224, v179, (const cocos2d::CCPoint *)v222); v180(v178, v224); v182 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_resetBtn_001.png", v181); v183 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v182, 0, (__int64)this, (__int64)CustomizeObjectLayer::onClear, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v183); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 90), v183); v184 = *((cocos2d::CCNode **)this + 69); v185 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v183 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v222, (float)((float)(*(float *)&v215 * 0.5) + 120.0) + 24.0, (float)(*((float *)&v215 + 1) * 0.5) + 35.0); cocos2d::CCNode::convertToNodeSpace(v224, v184, (const cocos2d::CCPoint *)v222); v185(v183, v224); } } else { *((_BYTE *)this + 921) = 0; } v125 = ButtonSprite::create( (ButtonSprite *)"Next Free", (const char *)&dword_30 + 2, 0, 1, 0.7, "goldFont.fnt", "GJ_button_04.png", v122, 25.0); v126 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v125, 0, (__int64)this, (__int64)CustomizeObjectLayer::onNextColorChannel, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v126); v127 = *((cocos2d::CCNode **)this + 69); v128 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v126 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v222, (float)((float)(*(float *)&v215 * 0.5) + -180.0) + 42.0, (float)((float)(*((float *)&v215 + 1) * 0.5) + -120.0) + 8.0); cocos2d::CCNode::convertToNodeSpace(v224, v127, (const cocos2d::CCPoint *)v222); v128(v126, v224); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 89), v126); v129 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v224, (float)(*(float *)&v215 * 0.5) + 210.0, (float)(*((float *)&v215 + 1) * 0.5) + 142.0); cocos2d::CCNode::convertToNodeSpace(&v220, v129, (const cocos2d::CCPoint *)v224); v131 = ButtonSprite::create( (ButtonSprite *)"Copy", (const char *)&qword_20 + 3, 0, 1, 0.5, "goldFont.fnt", "GJ_button_04.png", v130, 25.0); v133 = ButtonSprite::create( (ButtonSprite *)"Paste", (const char *)&qword_20 + 3, 0, 1, 0.5, "goldFont.fnt", "GJ_button_04.png", v132, 25.0); v134 = CCMenuItemSpriteExtra::create(v131, 0, (__int64)this, (__int64)CustomizeObjectLayer::onCopy, 0); v135 = CCMenuItemSpriteExtra::create(v133, 0, (__int64)this, (__int64)CustomizeObjectLayer::onPaste, 0); if ( a2 ) { (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v134); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v134 + 184LL))(v134, &v220); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v135); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, (const cocos2d::CCPoint *)&v220); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v222, 0.0, -31.0); cocos2d::CCPoint::operator+(v224, &v221); cocos2d::CCPoint::operator=(&v221, v224); goto LABEL_22; } v136 = GameManager::sharedState(nullptr); if ( LevelEditorLayer::canPasteState(*(LevelEditorLayer **)(v136 + 552)) ) { (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v135); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, (const cocos2d::CCPoint *)&v220); LABEL_22: (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v135 + 184LL))(v135, &v221); } v138 = ButtonSprite::create( (ButtonSprite *)"Browse", (const char *)&qword_20 + 3, 0, 1, 0.5, "goldFont.fnt", "GJ_button_04.png", v137, 25.0); v139 = CCMenuItemSpriteExtra::create(v138, 0, (__int64)this, (__int64)CustomizeObjectLayer::onBrowse, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v139); v140 = *((cocos2d::CCNode **)this + 69); v141 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v139 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v222, (float)(*(float *)&v215 * 0.5) + 210.0, (float)(*((float *)&v215 + 1) * 0.5) + -140.0); cocos2d::CCNode::convertToNodeSpace(v224, v140, (const cocos2d::CCPoint *)v222); v141(v139, v224); v142 = *((cocos2d::CCObject **)this + 96); if ( *((_BYTE *)this + 752) ) v142 = *((cocos2d::CCObject **)this + 95); CustomizeObjectLayer::onSelectMode(this, v142); *((_BYTE *)this + 922) = 0; return v197; }
GD Web Decomp Icon

GD Web Decomp

Raw Source