// // EditorUI::init from 0x48a1cc to 0x48c0a8 (7900 bytes) // // 1 xrefs: // > EditorUI::create @ 0x48c3da // // 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:49:31 +0000 // int __fastcall EditorUI::init(EditorUI *this, LevelEditorLayer *a2) { cocos2d::CCDirector *v4; // r0 cocos2d::CCArray *WinSize; // r0 cocos2d::CCObject *v6; // r0 GameManager *v7; // r0 GameManager *v8; // r0 GameManager *GameVariable; // r0 GameManager *v10; // r0 GameManager *IntGameVariable; // r0 float v12; // s17 GameManager *v13; // r0 GameManager *v14; // r0 GameManager *v15; // r0 float v16; // s17 float v17; // s14 float v18; // s15 Slider *v19; // r0 cocos2d::CCDirector *v20; // r0 int v21; // r9 float v22; // s21 void (__fastcall *v23)(int, _DWORD *); // r10 cocos2d::CCDirector *v24; // r0 float v25; // r0 GJRotationControl *v26; // r0 cocos2d::CCObject *v27; // r0 GJScaleControl *v28; // r0 cocos2d::CCObject *v29; // r0 GJTransformControl *v30; // r0 cocos2d::CCObject *v31; // r0 cocos2d::CCNode *v32; // r0 int v33; // r0 cocos2d::CCNode *v34; // r0 int v35; // r0 const char *v36; // r1 float *v37; // r10 int (__fastcall *v38)(float *, _DWORD *); // r7 cocos2d::CCDirector *v39; // r0 void (__fastcall *v40)(float *, _DWORD *); // r7 cocos2d::CCDirector *v41; // r0 float v42; // s21 cocos2d::CCDirector *v43; // r0 float v44; // r0 int v45; // r0 int v46; // r3 cocos2d::CCArray *v47; // r0 cocos2d::CCObject *v48; // r0 cocos2d::CCArray *v49; // r0 cocos2d::CCObject *v50; // r0 cocos2d::CCArray *v51; // r0 cocos2d::CCObject *v52; // r0 cocos2d::CCDirector *v53; // r0 cocos2d::CCDirector *v54; // r0 float v55; // r0 const cocos2d::CCPoint *v56; // r9 _DWORD *SpriteButton; // r0 int v58; // r11 int v59; // r0 _DWORD *v60; // r0 int v61; // r11 int v62; // r0 _DWORD *v63; // r0 int v64; // r11 int v65; // r0 _DWORD *v66; // r0 int v67; // r11 int v68; // r0 cocos2d::CCDirector *v69; // r0 cocos2d::CCDirector *v70; // r0 float v71; // s21 cocos2d::CCDirector *v72; // r0 float v73; // r0 const char *v74; // r1 cocos2d::CCObject *v75; // r11 cocos2d::CCDirector *v76; // r0 cocos2d::CCDirector *v77; // r0 float v78; // s21 cocos2d::CCDirector *v79; // r0 float v80; // r0 cocos2d::CCDirector *v81; // r0 void (__fastcall *v82)(cocos2d::CCSprite *, _DWORD *); // r11 cocos2d::CCDirector *v83; // r0 float v84; // s17 cocos2d::CCDirector *v85; // r0 float v86; // r0 int v87; // r11 int v88; // r11 int v89; // r11 const char *v90; // r1 cocos2d::CCObject *v91; // r11 cocos2d::CCDirector *v92; // r0 cocos2d::CCDirector *v93; // r0 float v94; // s17 cocos2d::CCDirector *v95; // r0 float v96; // r0 const char *v97; // r1 int v98; // r0 int v99; // r0 cocos2d::CCDirector *v100; // r0 int v101; // r11 void (__fastcall *v102)(int, _DWORD *); // r10 cocos2d::CCDirector *v103; // r0 float v104; // s17 cocos2d::CCDirector *v105; // r0 float v106; // r0 const char *v107; // r1 int v108; // r0 int v109; // r0 int v110; // r10 int v111; // r11 const char *v112; // r1 int v113; // r10 int v114; // r0 int v115; // r10 int v116; // r11 const char *v117; // r1 int v118; // r0 int v119; // r0 int v120; // r10 int v121; // r11 const char *v122; // r1 int v123; // r0 int v124; // r0 int v125; // r10 int v126; // r11 const char *v127; // r1 int v128; // r0 int v129; // r0 int v130; // r10 int v131; // r11 const char *v132; // r1 int v133; // r0 int v134; // r0 int v135; // r10 int v136; // r11 const char *v137; // r1 int v138; // r10 int v139; // r10 int v140; // r11 const char *v141; // r1 int v142; // r11 int v143; // r11 int v144; // r11 const char *v145; // r1 int v146; // r11 int v147; // r0 void (__fastcall *v148)(cocos2d::CCSprite *, _DWORD *); // r11 const char *v149; // r1 int v150; // r11 int v151; // r0 void (__fastcall *v152)(cocos2d::CCSprite *, _DWORD *); // r11 const char *v153; // r1 int v154; // r11 int v155; // r0 int v156; // r11 int (__fastcall *v157)(int, _DWORD *); // r6 GameManager *v158; // r0 GameManager *v159; // r0 GameManager *v160; // r0 GameManager *v161; // r0 char v162; // r0 int v163; // r5 const char *v164; // r1 int v165; // r0 int v166; // r0 const cocos2d::CCPoint *v167; // r7 cocos2d::CCDirector *v168; // r0 void (__fastcall *v169)(const cocos2d::CCPoint *, _DWORD, _DWORD); // r6 cocos2d::CCDirector *v170; // r0 float v171; // s18 cocos2d::CCDirector *v172; // r0 float v173; // r0 char *v174; // r0 int v175; // r11 void (__fastcall *v176)(int, _DWORD *); // r10 cocos2d::CCDirector *v177; // r0 float v178; // r0 const char *v179; // r1 int v180; // r0 cocos2d::CCDirector *v181; // r0 void (__fastcall *v182)(cocos2d::CCSprite *, _DWORD *); // r11 cocos2d::CCDirector *v183; // r0 float v184; // s16 cocos2d::CCDirector *v185; // r0 float v186; // r0 const char *v187; // r1 int v188; // r0 int v189; // r11 const char *v190; // r1 int v191; // r0 int v192; // r11 cocos2d::CCDirector *v193; // r0 cocos2d::CCDirector *v194; // r0 float v195; // s17 cocos2d::CCDirector *v196; // r0 float v197; // r0 const char *v198; // r1 int v199; // r0 const char *v200; // r1 int v201; // r0 const char *v202; // r1 int v203; // r0 const char *v204; // r1 int v205; // r0 const char *v206; // r1 int v207; // r0 const char *v208; // r1 int v209; // r0 const char *v210; // r1 int v211; // r0 const char *v212; // r1 int v213; // r0 const char *v214; // r1 int v215; // r0 const char *v216; // r1 int v217; // r0 const char *v218; // r1 int v219; // r0 const char *v220; // r1 int v221; // r0 cocos2d::CCDirector *v222; // r0 cocos2d::CCDirector *v223; // r0 float v224; // s17 cocos2d::CCDirector *v225; // r0 float v226; // r0 const char *v227; // r1 cocos2d::CCSprite *v228; // r11 int v229; // r0 const char *v230; // r1 int v231; // r0 const char *v232; // r1 int v233; // r0 const char *v234; // r1 int v235; // r10 int v236; // r0 int v237; // r10 void (__fastcall *v238)(int, int); // r11 int v239; // r0 int v240; // r0 int v241; // r3 const char *v242; // r1 int v243; // r10 int v244; // r11 const char *v245; // r1 int v246; // r0 int v247; // r11 int v248; // r1 const char *v249; // r2 int v250; // r0 int v251; // r11 void (__fastcall *v252)(int, _DWORD *); // r10 void (__fastcall *v253)(cocos2d::CCSprite *, _DWORD *); // r11 const char *v254; // r2 int v255; // r0 void (__fastcall *v256)(cocos2d::CCSprite *, _DWORD *); // r11 void (__fastcall *v257)(cocos2d::CCSprite *, _DWORD *); // r11 GameManager *v258; // r0 GameManager *v259; // r0 GameManager *v260; // r0 GameManager *v261; // r0 GameManager *v262; // r0 GameManager *v263; // r0 GameManager *v264; // r0 GameManager *v265; // r0 MusicDownloadManager *v266; // r0 MusicDownloadManager *v267; // r0 cocos2d::CCArray *v268; // r6 cocos2d::CCArray *v269; // r0 cocos2d::CCArray *v270; // r6 cocos2d::CCArray *v271; // r0 const char *v272; // r1 int v273; // r6 cocos2d::CCMenu *v274; // r5 cocos2d::CCMenuItem *v275; // r1 void (__fastcall *v276)(cocos2d::CCMenu *, int); // r6 int v277; // r0 cocos2d::CCSprite *v279; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v280; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v281; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v282; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v283; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v284; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v285; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v286; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v287; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v288; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v289; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v290; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v291; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v292; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v293; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v294; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v295; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v296; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v297; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v298; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v299; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v300; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v301; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v302; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v303; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v304; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v305; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v306; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v307; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v308; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v309; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v310; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v311; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v312; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v313; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v314; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v315; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v316; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v317; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v318; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v319; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v320; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v321; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v322; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v323; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v324; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v325; // [sp+18h] [bp-1B4h] cocos2d::CCSprite *v326; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v327; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v328; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v329; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v330; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v331; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v332; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v333; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v334; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v335; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v336; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v337; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v338; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v339; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v340; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v341; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v342; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v343; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v344; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v345; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v346; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v347; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v348; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v349; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v350; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v351; // [sp+1Ch] [bp-1B0h] cocos2d::CCSprite *v352; // [sp+1Ch] [bp-1B0h] int v353; // [sp+20h] [bp-1ACh] char *v354; // [sp+24h] [bp-1A8h] char *v355; // [sp+24h] [bp-1A8h] char *v356; // [sp+24h] [bp-1A8h] char *v357; // [sp+24h] [bp-1A8h] char *v358; // [sp+24h] [bp-1A8h] char *v359; // [sp+24h] [bp-1A8h] char *v360; // [sp+24h] [bp-1A8h] char *v361; // [sp+24h] [bp-1A8h] int v362; // [sp+2Ch] [bp-1A0h] int v363; // [sp+2Ch] [bp-1A0h] int v364; // [sp+2Ch] [bp-1A0h] float v365; // [sp+34h] [bp-198h] BYREF float v366; // [sp+38h] [bp-194h] _BYTE v367[8]; // [sp+3Ch] [bp-190h] BYREF _BYTE v368[8]; // [sp+44h] [bp-188h] BYREF _BYTE v369[8]; // [sp+4Ch] [bp-180h] BYREF _BYTE v370[8]; // [sp+54h] [bp-178h] BYREF _BYTE v371[8]; // [sp+5Ch] [bp-170h] BYREF _BYTE v372[8]; // [sp+64h] [bp-168h] BYREF int (__fastcall *v373)(EditorUI *, cocos2d::CCObject *); // [sp+6Ch] [bp-160h] int v374; // [sp+70h] [bp-15Ch] char *(__fastcall *v375)(EditorUI *, cocos2d::CCObject *); // [sp+74h] [bp-158h] int v376; // [sp+78h] [bp-154h] char *(__fastcall *v377)(EditorUI *, cocos2d::CCObject *); // [sp+7Ch] [bp-150h] int v378; // [sp+80h] [bp-14Ch] char *(__fastcall *v379)(EditorUI *, cocos2d::CCObject *); // [sp+84h] [bp-148h] int v380; // [sp+88h] [bp-144h] char *(__fastcall *v381)(EditorUI *, cocos2d::CCObject *); // [sp+8Ch] [bp-140h] int v382; // [sp+90h] [bp-13Ch] int (__fastcall *v383)(EditorUI *, cocos2d::CCObject *); // [sp+94h] [bp-138h] int v384; // [sp+98h] [bp-134h] int (__fastcall *v385)(EditorUI *, cocos2d::CCObject *); // [sp+9Ch] [bp-130h] int v386; // [sp+A0h] [bp-12Ch] int (__fastcall *v387)(EditorUI *, cocos2d::CCObject *); // [sp+A4h] [bp-128h] int v388; // [sp+A8h] [bp-124h] int (__fastcall *v389)(EditorUI *, cocos2d::CCObject *); // [sp+ACh] [bp-120h] int v390; // [sp+B0h] [bp-11Ch] _DWORD (*v391)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+B4h] [bp-118h] int v392; // [sp+B8h] [bp-114h] _DWORD (*v393)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+BCh] [bp-110h] int v394; // [sp+C0h] [bp-10Ch] _DWORD (*v395)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+C4h] [bp-108h] int v396; // [sp+C8h] [bp-104h] int (__fastcall *v397)(int, cocos2d::CCObject *); // [sp+CCh] [bp-100h] int v398; // [sp+D0h] [bp-FCh] int (__fastcall *v399)(int, cocos2d::CCObject *); // [sp+D4h] [bp-F8h] int v400; // [sp+D8h] [bp-F4h] unsigned __int8 *(__fastcall *v401)(unsigned __int8 *, cocos2d::CCObject *); // [sp+DCh] [bp-F0h] int v402; // [sp+E0h] [bp-ECh] cocos2d::CCNode *(__fastcall *v403)(GJEffectManager ***, cocos2d::CCObject *); // [sp+E4h] [bp-E8h] int v404; // [sp+E8h] [bp-E4h] GameManager *(__fastcall *v405)(EditorUI *, cocos2d::CCObject *); // [sp+ECh] [bp-E0h] int v406; // [sp+F0h] [bp-DCh] GameManager *(__fastcall *v407)(EditorUI *, cocos2d::CCObject *); // [sp+F4h] [bp-D8h] int v408; // [sp+F8h] [bp-D4h] int (__fastcall *v409)(EditorUI *, cocos2d::CCObject *); // [sp+FCh] [bp-D0h] int v410; // [sp+100h] [bp-CCh] int (__fastcall *v411)(int, cocos2d::CCObject *); // [sp+104h] [bp-C8h] int v412; // [sp+108h] [bp-C4h] int (__fastcall *v413)(int, cocos2d::CCObject *); // [sp+10Ch] [bp-C0h] int v414; // [sp+110h] [bp-BCh] cocos2d::CCDirector *(__fastcall *v415)(cocos2d::CCDirector *, cocos2d::CCObject *); // [sp+114h] [bp-B8h] int v416; // [sp+118h] [bp-B4h] int (__fastcall *v417)(int, cocos2d::CCObject *); // [sp+11Ch] [bp-B0h] int v418; // [sp+120h] [bp-ACh] EditorUI *(__fastcall *v419)(EditorUI *, cocos2d::CCObject *); // [sp+124h] [bp-A8h] int v420; // [sp+128h] [bp-A4h] _DWORD *(__fastcall *v421)(EditorUI *, cocos2d::CCObject *); // [sp+12Ch] [bp-A0h] int v422; // [sp+130h] [bp-9Ch] _DWORD (*v423)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+134h] [bp-98h] int v424; // [sp+138h] [bp-94h] _DWORD (*v425)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+13Ch] [bp-90h] int v426; // [sp+140h] [bp-8Ch] _DWORD (*v427)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+144h] [bp-88h] int v428; // [sp+148h] [bp-84h] int (__fastcall *v429)(EditorUI *, cocos2d::CCObject *); // [sp+14Ch] [bp-80h] int v430; // [sp+150h] [bp-7Ch] cocos2d::CCArray *(__fastcall *v431)(EditorUI *, cocos2d::CCObject *); // [sp+154h] [bp-78h] int v432; // [sp+158h] [bp-74h] GameObject *(__fastcall *v433)(cocos2d::CCArray **, cocos2d::CCObject *); // [sp+15Ch] [bp-70h] int v434; // [sp+160h] [bp-6Ch] _DWORD (*v435)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+164h] [bp-68h] int v436; // [sp+168h] [bp-64h] int (__fastcall *v437)(EditorUI *, cocos2d::CCObject *); // [sp+16Ch] [bp-60h] int v438; // [sp+170h] [bp-5Ch] _DWORD (*v439)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+174h] [bp-58h] int v440; // [sp+178h] [bp-54h] _DWORD (*v441)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+17Ch] [bp-50h] int v442; // [sp+180h] [bp-4Ch] _DWORD (*v443)(EditorUI *__hidden, cocos2d::CCObject *); // [sp+184h] [bp-48h] int v444; // [sp+188h] [bp-44h] int (__fastcall *v445)(EditorUI *, cocos2d::CCObject *); // [sp+18Ch] [bp-40h] int v446; // [sp+190h] [bp-3Ch] int (__fastcall *v447)(EditorUI *, cocos2d::CCObject *); // [sp+194h] [bp-38h] int v448; // [sp+198h] [bp-34h] int (__fastcall *v449)(EditorUI *, cocos2d::CCObject *); // [sp+19Ch] [bp-30h] int v450; // [sp+1A0h] [bp-2Ch] int (__fastcall *v451)(EditorUI *, cocos2d::CCObject *); // [sp+1A4h] [bp-28h] int v452; // [sp+1A8h] [bp-24h] _DWORD v453[2]; // [sp+1ACh] [bp-20h] BYREF _DWORD v454[2]; // [sp+1B4h] [bp-18h] BYREF _DWORD v455[2]; // [sp+1BCh] [bp-10h] BYREF v353 = cocos2d::CCLayer::init(this); if ( v353 ) { *((_DWORD *)this + 271) = 0; *((_DWORD *)this + 272) = 0; *((_BYTE *)this + 1092) = 0; *((_DWORD *)this + 236) = a2; (*(void (__fastcall **)(EditorUI *, int))(*(_DWORD *)this + 500))(this, 1); (*(void (__fastcall **)(EditorUI *, int))(*(_DWORD *)this + 536))(this, 1); (*(void (__fastcall **)(EditorUI *, int))(*(_DWORD *)this + 544))(this, 1); v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EditorUI *, int))(*(_DWORD *)this + 552))(this, 1); cocos2d::CCDirector::sharedDirector(v4); WinSize = (cocos2d::CCArray *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v365); v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(WinSize); *((_DWORD *)this + 117) = v6; v7 = (GameManager *)cocos2d::CCObject::retain(v6); v8 = (GameManager *)GameManager::sharedState(v7); GameVariable = (GameManager *)GameManager::getGameVariable(v8, "0112"); *((_BYTE *)this + 511) = (_BYTE)GameVariable; v10 = (GameManager *)GameManager::sharedState(GameVariable); IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v10, "0193"); v12 = (float)(int)IntGameVariable / 10.0; if ( v12 < 5.0 ) { v12 = 0.0; } else if ( v12 > 300.0 ) { v12 = 0.0; } *((float *)this + 119) = v12; v13 = (GameManager *)GameManager::sharedState(IntGameVariable); v14 = (GameManager *)GameManager::getGameVariable(v13, "0194"); *((_BYTE *)this + 480) = (_BYTE)v14; v15 = (GameManager *)GameManager::sharedState(v14); v16 = (float)GameManager::getIntGameVariable(v15, "0238") / 1000.0; if ( v16 < 0.01 ) { v16 = 10.0; } else if ( v16 > 300.0 ) { v16 = 10.0; } v17 = v366; *((float *)this + 270) = v16; v18 = (float)((float)(v365 / v17) - 1.5) / 0.1; if ( v18 >= 1.0 ) { v18 = 1.0; } else if ( v18 <= 0.0 ) { v18 = 0.0; } v374 = 0; v373 = EditorUI::sliderChanged; v19 = (Slider *)Slider::create( (int)this, (int)EditorUI::sliderChanged, 0, (cocos2d::CCSprite *)"sliderBar.png", (cocos2d::CCSprite *)"slidergroove_02.png", (int)"GJ_moveBtn.png", (int)"GJ_moveSBtn.png", (float)((float)(v18 * 0.3) + 0.7) * 0.8); *((_DWORD *)this + 155) = v19; Slider::setBarVisibility(v19, 0); v20 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EditorUI *, _DWORD, int))(*(_DWORD *)this + 232))( this, *((_DWORD *)this + 155), 2); v21 = *((_DWORD *)this + 155); v22 = (float)(v365 * 0.5) + 10.0; v23 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v21 + 92); v24 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v20); v25 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v24)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, v22, v25 - 20.0); v23(v21, v455); v26 = (GJRotationControl *)cocos2d::CCArray::addObject( *((cocos2d::CCArray **)this + 117), *((cocos2d::CCObject **)this + 155)); v27 = (cocos2d::CCObject *)GJRotationControl::create(v26); *((_DWORD *)this + 144) = v27; cocos2d::CCObject::retain(v27); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 232))( *(_DWORD *)(*((_DWORD *)this + 236) + 2436), *((_DWORD *)this + 144), 10000); *(_DWORD *)(*((_DWORD *)this + 144) + 380) = (char *)this + 324; v28 = (GJScaleControl *)EditorUI::deactivateRotationControl(this); v29 = (cocos2d::CCObject *)GJScaleControl::create(v28); *((_DWORD *)this + 148) = v29; cocos2d::CCObject::retain(v29); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 232))( *(_DWORD *)(*((_DWORD *)this + 236) + 2436), *((_DWORD *)this + 148), 10000); *(_DWORD *)(*((_DWORD *)this + 148) + 412) = (char *)this + 328; v30 = (GJTransformControl *)EditorUI::deactivateScaleControl(this); v31 = (cocos2d::CCObject *)GJTransformControl::create(v30); *((_DWORD *)this + 149) = v31; cocos2d::CCObject::retain(v31); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(*((_DWORD *)this + 236) + 2436) + 232))( *(_DWORD *)(*((_DWORD *)this + 236) + 2436), *((_DWORD *)this + 149), 10000); *(_DWORD *)(*((_DWORD *)this + 149) + 336) = (char *)this + 332; v32 = (cocos2d::CCNode *)EditorUI::deactivateTransformControl(this); v33 = cocos2d::CCNode::create(v32); *((_DWORD *)this + 150) = v33; v34 = (cocos2d::CCNode *)(*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 236) + 228))( *((_DWORD *)this + 236), v33); v35 = cocos2d::CCNode::create(v34); *((_DWORD *)this + 151) = v35; (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 150) + 228))(*((_DWORD *)this + 150), v35); v37 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"edit_barBG_001.png", v36); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v37 + 64))(v37, (float)(v365 + 2.0) / v37[86]); v38 = *(int (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v37 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, 0.0, 0.0); v39 = (cocos2d::CCDirector *)v38(v37, v455); v40 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v37 + 92); v41 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v39); v42 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v41)); v43 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v42)); v44 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v43)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, v42 - 1.0, v44 - 1.0); v40(v37, v455); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v37 + 456))(v37, 200); *((float *)this + 158) = v37[87]; v45 = (*(int (__fastcall **)(float *))(*(_DWORD *)v37 + 96))(v37); v46 = *(_DWORD *)this; *((float *)this + 157) = (float)((float)(*(float *)(v45 + 4) + v37[87]) + 20.0) + 120.0; (*(void (__fastcall **)(EditorUI *, float *, int))(v46 + 232))(this, v37, 1); v47 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 117), (cocos2d::CCObject *)v37); v48 = (cocos2d::CCObject *)cocos2d::CCArray::create(v47); *((_DWORD *)this + 167) = v48; v49 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v48); v50 = (cocos2d::CCObject *)cocos2d::CCArray::create(v49); *((_DWORD *)this + 164) = v50; v51 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v50); v52 = (cocos2d::CCObject *)cocos2d::CCArray::create(v51); *((_DWORD *)this + 226) = v52; v53 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v52); v54 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v53); v55 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v54)); *((_DWORD *)this + 235) = 0; *((float *)this + 156) = v55 + 20.0; v56 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create((cocos2d::CCMenu *)LODWORD(v55)); (*(void (__fastcall **)(EditorUI *, const cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))(this, v56, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v367, 0.0, -1.0); v376 = 0; v375 = EditorUI::toggleMode; SpriteButton = EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_buildBtn_001.png", (int)EditorUI::toggleMode, 0, (int)v56, COERCE_INT(1.0)); *((_DWORD *)this + 171) = SpriteButton; (*(void (__fastcall **)(_DWORD *, int))(*SpriteButton + 36))(SpriteButton, 2); v58 = *(_DWORD *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 171) + 536))(*((_DWORD *)this + 171)) + 540); (*(void (__fastcall **)(int, int))(*(_DWORD *)v58 + 80))(v58, 1065772646); v326 = *(cocos2d::CCSprite **)(*(_DWORD *)v58 + 92); v59 = (*(int (__fastcall **)(int))(*(_DWORD *)v58 + 96))(v58); cocos2d::CCPoint::operator+(v455, v59, v367); ((void (__fastcall *)(int, _DWORD *))v326)(v58, v455); v378 = 0; v377 = EditorUI::toggleMode; v60 = EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_editBtn_001.png", (int)EditorUI::toggleMode, 0, (int)v56, COERCE_INT(1.0)); *((_DWORD *)this + 172) = v60; (*(void (__fastcall **)(_DWORD *, int))(*v60 + 36))(v60, 3); v61 = *(_DWORD *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 172) + 536))(*((_DWORD *)this + 172)) + 540); (*(void (__fastcall **)(int, int))(*(_DWORD *)v61 + 80))(v61, 1065772646); v327 = *(cocos2d::CCSprite **)(*(_DWORD *)v61 + 92); v62 = (*(int (__fastcall **)(int))(*(_DWORD *)v61 + 96))(v61); cocos2d::CCPoint::operator+(v455, v62, v367); ((void (__fastcall *)(int, _DWORD *))v327)(v61, v455); v380 = 0; v379 = EditorUI::toggleMode; v63 = EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_deleteBtn_001.png", (int)EditorUI::toggleMode, 0, (int)v56, COERCE_INT(1.0)); *((_DWORD *)this + 170) = v63; (*(void (__fastcall **)(_DWORD *, int))(*v63 + 36))(v63, 1); v64 = *(_DWORD *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 170) + 536))(*((_DWORD *)this + 170)) + 540); (*(void (__fastcall **)(int, int))(*(_DWORD *)v64 + 80))(v64, 1065772646); v328 = *(cocos2d::CCSprite **)(*(_DWORD *)v64 + 92); v65 = (*(int (__fastcall **)(int))(*(_DWORD *)v64 + 96))(v64); cocos2d::CCPoint::operator+(v455, v65, v367); ((void (__fastcall *)(int, _DWORD *))v328)(v64, v455); v382 = 0; v381 = EditorUI::toggleMode; v66 = EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_viewBtn_001.png", (int)EditorUI::toggleMode, 0, (int)v56, COERCE_INT(1.0)); *((_DWORD *)this + 173) = v66; (*(void (__fastcall **)(_DWORD *, int))(*v66 + 36))(v66, 4); v67 = *(_DWORD *)((*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 173) + 536))(*((_DWORD *)this + 173)) + 540); (*(void (__fastcall **)(int, int))(*(_DWORD *)v67 + 80))(v67, 1065772646); v279 = *(cocos2d::CCSprite **)(*(_DWORD *)v67 + 92); v68 = (*(int (__fastcall **)(int))(*(_DWORD *)v67 + 96))(v67); cocos2d::CCPoint::operator+(v455, v68, v367); v69 = (cocos2d::CCDirector *)((int (__fastcall *)(int, _DWORD *))v279)(v67, v455); v70 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v69); v71 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v70)); v72 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v71)); v73 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v72)); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v455, (float)(v71 + 25.0) + 0.0, (float)(v73 + *((float *)this + 158)) - 26.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v368, v56); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 171) + 92))(*((_DWORD *)this + 171), v368); v329 = *((cocos2d::CCSprite **)this + 172); v280 = *(cocos2d::CCSprite **)(*(_DWORD *)v329 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 44.0, 0.0); cocos2d::CCPoint::operator+(v455, v368, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v280)(v329, v455); v330 = *((cocos2d::CCSprite **)this + 170); v281 = *(cocos2d::CCSprite **)(*(_DWORD *)v330 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -43.0); cocos2d::CCPoint::operator+(v455, v368, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v281)(v330, v455); v331 = *((cocos2d::CCSprite **)this + 173); v282 = *(cocos2d::CCSprite **)(*(_DWORD *)v331 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 44.0, -43.0); cocos2d::CCPoint::operator+(v455, v368, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v282)(v331, v455); v75 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_vLine_001.png", v74); v76 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EditorUI *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))( this, v75, 2); v332 = *(cocos2d::CCSprite **)(*(_DWORD *)v75 + 92); v77 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v76); v78 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v77)); v79 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v78)); v80 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v79)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, (float)(v78 + 96.0) + 0.0, v80 + (float)(v37[87] * 0.5)); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v332)(v75, v455); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 117), v75); v384 = 0; v383 = EditorUI::toggleSwipe; *((_DWORD *)this + 174) = EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_swipeBtn_001.png", (int)EditorUI::toggleSwipe, 0, (int)v56, COERCE_INT(1.0)); v386 = 0; v385 = EditorUI::toggleFreeMove; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, 0.0, -1.0); *((_DWORD *)this + 175) = EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_freeMoveBtn_001.png", (int)v385, v386, (int)v56, COERCE_INT(1.0), 1, (const cocos2d::CCPoint *)v455, 0.0); v388 = 0; v387 = EditorUI::toggleSnap; *((_DWORD *)this + 177) = EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_snapBtn_001.png", (int)EditorUI::toggleSnap, 0, (int)v56, COERCE_INT(1.0)); v390 = 0; v389 = EditorUI::toggleEnableRotate; v81 = (cocos2d::CCDirector *)EditorUI::getSpriteButton( (int)this, (cocos2d::CCSprite *)"edit_enableRotateBtn_001.png", (int)EditorUI::toggleEnableRotate, 0, (int)v56, COERCE_INT(1.0)); *((_DWORD *)this + 178) = v81; v333 = v81; v82 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v81 + 92); v83 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v81); v84 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v83)); v85 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v84)); v86 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v85)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, v84 - 25.0, (float)(v86 + *((float *)this + 158)) - 26.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v455, v56); v82(v333, v455); v87 = *((_DWORD *)this + 177); v354 = *(char **)(*(_DWORD *)v87 + 92); v334 = (cocos2d::CCSprite *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 178) + 96))(*((_DWORD *)this + 178)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -43.0); cocos2d::CCPoint::operator+(v455, v334, v454); ((void (__fastcall *)(int, _DWORD *))v354)(v87, v455); v88 = *((_DWORD *)this + 174); v355 = *(char **)(*(_DWORD *)v88 + 92); v335 = (cocos2d::CCSprite *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 178) + 96))(*((_DWORD *)this + 178)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -44.0, 0.0); cocos2d::CCPoint::operator+(v455, v335, v454); ((void (__fastcall *)(int, _DWORD *))v355)(v88, v455); v89 = *((_DWORD *)this + 175); v356 = *(char **)(*(_DWORD *)v89 + 92); v336 = (cocos2d::CCSprite *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 177) + 96))(*((_DWORD *)this + 177)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -44.0, 0.0); cocos2d::CCPoint::operator+(v455, v336, v454); ((void (__fastcall *)(int, _DWORD *))v356)(v89, v455); v91 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"edit_vLine_001.png", v90); v92 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EditorUI *, cocos2d::CCObject *, int))(*(_DWORD *)this + 232))( this, v91, 2); v283 = *(cocos2d::CCSprite **)(*(_DWORD *)v91 + 92); v93 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v92); v94 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v93)); v95 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v94)); v96 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v95)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, v94 - 96.0, v96 + (float)(v37[87] * 0.5)); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v283)(v91, v455); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 117), v91); v98 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_undoBtn_001.png", v97); v392 = 0; v391 = EditorUI::undoLastAction; v99 = CCMenuItemSpriteExtra::create(v98, 0, (int)this, (int)EditorUI::undoLastAction, 0); *((_DWORD *)this + 189) = v99; v100 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))( v56, v99); v101 = *((_DWORD *)this + 189); v102 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v101 + 92); v103 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v100); v104 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v103)); v105 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v104)); v106 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v105)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, (float)(v104 + 25.0) + 0.0, v106 - 20.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v455, v56); v102(v101, v455); v108 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_redoBtn_001.png", v107); v394 = 0; v393 = EditorUI::redoLastAction; v109 = CCMenuItemSpriteExtra::create(v108, 0, (int)this, (int)EditorUI::redoLastAction, 0); *((_DWORD *)this + 190) = v109; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v109); v110 = *((_DWORD *)this + 190); v284 = *(cocos2d::CCSprite **)(*(_DWORD *)v110 + 92); v111 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 189) + 96))(*((_DWORD *)this + 189)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 46.0, 0.0); cocos2d::CCPoint::operator+(v455, v111, v454); ((void (__fastcall *)(int, _DWORD *))v284)(v110, v455); v113 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_trashBtn_001.png", v112); (*(void (__fastcall **)(int, int))(*(_DWORD *)v113 + 80))(v113, 1063675494); v396 = 0; v395 = EditorUI::onDeleteSelected; v114 = CCMenuItemSpriteExtra::create(v113, 0, (int)this, (int)EditorUI::onDeleteSelected, 0); *((_DWORD *)this + 183) = v114; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v114); v115 = *((_DWORD *)this + 183); v285 = *(cocos2d::CCSprite **)(*(_DWORD *)v115 + 92); v116 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 190) + 96))(*((_DWORD *)this + 190)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 46.0, 0.0); cocos2d::CCPoint::operator+(v455, v116, v454); ((void (__fastcall *)(int, _DWORD *))v285)(v115, v455); v118 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_hide_001.png", v117); v398 = 0; v397 = EditorUI::onHideUIBtn; v119 = CCMenuItemSpriteExtra::create(v118, 0, (int)this, (int)EditorUI::onHideUIBtn, 0); *((_DWORD *)this + 184) = v119; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v119); v120 = *((_DWORD *)this + 184); v286 = *(cocos2d::CCSprite **)(*(_DWORD *)v120 + 92); v121 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 183) + 96))(*((_DWORD *)this + 183)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 41.0, 0.0); cocos2d::CCPoint::operator+(v455, v121, v454); ((void (__fastcall *)(int, _DWORD *))v286)(v120, v455); v123 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playMusicBtn_001.png", v122); v400 = 0; v399 = EditorUI::onPlayback; v124 = CCMenuItemSpriteExtra::create(v123, 0, (int)this, (int)EditorUI::onPlayback, 0); *((_DWORD *)this + 179) = v124; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v124); v125 = *((_DWORD *)this + 179); v287 = *(cocos2d::CCSprite **)(*(_DWORD *)v125 + 92); v126 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 189) + 96))(*((_DWORD *)this + 189)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -45.0); cocos2d::CCPoint::operator+(v455, v126, v454); ((void (__fastcall *)(int, _DWORD *))v287)(v125, v455); v128 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playEditorBtn_001.png", v127); v402 = 0; v401 = EditorUI::onPlaytest; v129 = CCMenuItemSpriteExtra::create(v128, 0, (int)this, (int)EditorUI::onPlaytest, 0); *((_DWORD *)this + 180) = v129; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v129); v130 = *((_DWORD *)this + 180); v288 = *(cocos2d::CCSprite **)(*(_DWORD *)v130 + 92); v131 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 179) + 96))(*((_DWORD *)this + 179)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -45.0); cocos2d::CCPoint::operator+(v455, v131, v454); ((void (__fastcall *)(int, _DWORD *))v288)(v130, v455); v133 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_stopEditorBtn_001.png", v132); v404 = 0; v403 = EditorUI::onStopPlaytest; v134 = CCMenuItemSpriteExtra::create(v133, 0, (int)this, (int)EditorUI::onStopPlaytest, 0); *((_DWORD *)this + 181) = v134; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v134); v135 = *((_DWORD *)this + 181); v289 = *(cocos2d::CCSprite **)(*(_DWORD *)v135 + 92); v136 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 180) + 96))(*((_DWORD *)this + 180)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 50.0, 0.0); cocos2d::CCPoint::operator+(v455, v136, v454); ((void (__fastcall *)(int, _DWORD *))v289)(v135, v455); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 181) + 172))(*((_DWORD *)this + 181), 0); v138 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_zoomInBtn_001.png", v137); (*(void (__fastcall **)(int, int))(*(_DWORD *)v138 + 80))(v138, 1061997773); v406 = 0; v405 = EditorUI::zoomIn; v139 = CCMenuItemSpriteExtra::create(v138, 0, (int)this, (int)EditorUI::zoomIn, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v139); v290 = *(cocos2d::CCSprite **)(*(_DWORD *)v139 + 92); v140 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 180) + 96))(*((_DWORD *)this + 180)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -45.0); cocos2d::CCPoint::operator+(v455, v140, v454); ((void (__fastcall *)(int, _DWORD *))v290)(v139, v455); v142 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_zoomOutBtn_001.png", v141); (*(void (__fastcall **)(int, int))(*(_DWORD *)v142 + 80))(v142, 1061997773); v408 = 0; v407 = EditorUI::zoomOut; v143 = CCMenuItemSpriteExtra::create(v142, 0, (int)this, (int)EditorUI::zoomOut, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v143); v337 = *(cocos2d::CCSprite **)(*(_DWORD *)v143 + 92); v291 = (cocos2d::CCSprite *)(*(int (__fastcall **)(int))(*(_DWORD *)v139 + 96))(v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -35.0); cocos2d::CCPoint::operator+(v455, v291, v454); ((void (__fastcall *)(int, _DWORD *))v337)(v143, v455); v144 = (*(int (__fastcall **)(int))(*(_DWORD *)v139 + 96))(v139); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, 34.0, -17.5); cocos2d::CCPoint::operator+(v369, v144, v455); v146 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_linkEnableBtn_001.png", v145); (*(void (__fastcall **)(int, int))(*(_DWORD *)v146 + 80))(v146, 1062501089); v410 = 0; v409 = EditorUI::onStickyToggle; v147 = CCMenuItemSpriteExtra::create(v146, 0, (int)this, (int)EditorUI::onStickyToggle, 0); *((_DWORD *)this + 188) = v147; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v147); v292 = *((cocos2d::CCSprite **)this + 188); v148 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v292 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, 25.0); cocos2d::CCPoint::operator+(v455, v369, v454); v148(v292, v455); v150 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_linkBtn_001.png", v149); (*(void (__fastcall **)(int, int))(*(_DWORD *)v150 + 80))(v150, 1062501089); v412 = 0; v411 = EditorUI::onGroupSticky; v151 = CCMenuItemSpriteExtra::create(v150, 0, (int)this, (int)EditorUI::onGroupSticky, 0); *((_DWORD *)this + 186) = v151; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v151); v293 = *((cocos2d::CCSprite **)this + 186); v152 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v293 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, 0.0); cocos2d::CCPoint::operator+(v455, v369, v454); v152(v293, v455); v154 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_linkBtnOff_001.png", v153); (*(void (__fastcall **)(int, int))(*(_DWORD *)v154 + 80))(v154, 1062501089); v414 = 0; v413 = EditorUI::onUngroupSticky; v155 = CCMenuItemSpriteExtra::create(v154, 0, (int)this, (int)EditorUI::onUngroupSticky, 0); *((_DWORD *)this + 187) = v155; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v56 + 228))(v56, v155); v156 = *((_DWORD *)this + 187); v157 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v156 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -25.0); cocos2d::CCPoint::operator+(v455, v369, v454); v158 = (GameManager *)v157(v156, v455); v159 = (GameManager *)GameManager::sharedState(v158); v160 = (GameManager *)GameManager::getGameVariable(v159, "0097"); *((_BYTE *)this + 643) = (_BYTE)v160; v161 = (GameManager *)GameManager::sharedState(v160); v162 = GameManager::getGameVariable(v161, "0180"); v163 = *((unsigned __int8 *)this + 643); *((_BYTE *)this + 644) = v162; if ( !v163 ) { (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 186) + 528))(*((_DWORD *)this + 186), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 186) + 172))(*((_DWORD *)this + 186), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 187) + 528))(*((_DWORD *)this + 187), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 187) + 172))(*((_DWORD *)this + 187), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 188) + 528))(*((_DWORD *)this + 188), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 188) + 172))(*((_DWORD *)this + 188), 0); } EditorUI::setupDeleteMenu(this); EditorUI::setupCreateMenu(this); EditorUI::setupEditMenu(this); EditorUI::setupViewMenu(this); EditorUI::resetUI(this); v165 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_pauseBtn_001.png", v164); v416 = 0; v415 = EditorUI::onPause; v166 = CCMenuItemSpriteExtra::create(v165, 0, (int)this, (int)EditorUI::onPause, 0); *((_DWORD *)this + 182) = v166; *(_DWORD *)(v166 + 324) = 0; v167 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(*((cocos2d::CCMenu **)this + 182), nullptr); v168 = (cocos2d::CCDirector *)(*(int (__fastcall **)(EditorUI *, const cocos2d::CCPoint *, int))(*(_DWORD *)this + 232))( this, v167, 10); v169 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD, _DWORD))(*(_DWORD *)v167 + 100); v170 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v168); v171 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v170)); v172 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v171)); v173 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v172)); v169(v167, v171 - 20.0, v173 - 20.0); v174 = EditorUI::toggleMode(this, *((cocos2d::CCObject **)this + 171)); v175 = *(_DWORD *)(*((_DWORD *)this + 236) + 2436); v176 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v175 + 92); v177 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v174); v178 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v177)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, v178 + 0.0, *((float *)this + 157) + 30.0); v176(v175, v455); EditorUI::constrainGameLayerPosition(this, -1.0, -0.5); EditorUI::updateSlider(this); v180 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_optionsBtn02_001.png", v179); v418 = 0; v417 = EditorUI::onSettings; v294 = (cocos2d::CCSprite *)CCMenuItemSpriteExtra::create(v180, 0, (int)this, (int)EditorUI::onSettings, 0); v181 = (cocos2d::CCDirector *)(*(int (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCSprite *))(*(_DWORD *)v167 + 228))( v167, v294); v182 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v294 + 92); v183 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v181); v184 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v183)); v185 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v184)); v186 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v185)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, v184 - 65.0, v186 - 20.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v455, v167); v182(v294, v455); v188 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_config_001.png", v187); v420 = 0; v419 = EditorUI::onEditorCommands; v189 = CCMenuItemSpriteExtra::create(v188, 0, (int)this, (int)EditorUI::onEditorCommands, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v189); v338 = *(cocos2d::CCSprite **)(*(_DWORD *)v189 + 92); v295 = (cocos2d::CCSprite *)(*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v294 + 96))(v294); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -41.0, 0.0); cocos2d::CCPoint::operator+(v455, v295, v454); ((void (__fastcall *)(int, _DWORD *))v338)(v189, v455); v191 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_grid_001.png", v190); v422 = 0; v421 = EditorUI::onGridSizeIndicator; v296 = (cocos2d::CCSprite *)CCMenuItemSpriteExtra::create(v191, 0, (int)this, (int)EditorUI::onGridSizeIndicator, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, cocos2d::CCSprite *))(*(_DWORD *)v167 + 228))(v167, v296); v339 = v296; v297 = *(cocos2d::CCSprite **)(*(_DWORD *)v296 + 92); v192 = (*(int (__fastcall **)(int))(*(_DWORD *)v189 + 96))(v189); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -36.0, 0.0); cocos2d::CCPoint::operator+(v455, v192, v454); v193 = (cocos2d::CCDirector *)((int (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v297)(v339, v455); v194 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v193); v195 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v194)); v196 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v195)); v197 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v196)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, v195 - 24.0, v197 - 60.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v370, v167); v298 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_duplicateObjectBtn2_001.png", v198); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v298 + 80))(v298, 1065353216); v424 = 0; v423 = EditorUI::onDuplicate; v199 = CCMenuItemSpriteExtra::create((int)v298, 0, (int)this, (int)EditorUI::onDuplicate, 0); *((_DWORD *)this + 196) = v199; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v199); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 196) + 92))(*((_DWORD *)this + 196), v370); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 196), 1.2); v299 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_copyBtn2_001.png", v200); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v299 + 80))(v299, 1065353216); v426 = 0; v425 = EditorUI::onCopy; v201 = CCMenuItemSpriteExtra::create((int)v299, 0, (int)this, (int)EditorUI::onCopy, 0); *((_DWORD *)this + 197) = v201; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v201); v340 = *((cocos2d::CCSprite **)this + 197); v300 = *(cocos2d::CCSprite **)(*(_DWORD *)v340 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -76.0, 0.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v300)(v340, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 197), 1.2); v301 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_pasteBtn2_001.png", v202); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v301 + 80))(v301, 1065353216); v428 = 0; v427 = EditorUI::onPaste; v203 = CCMenuItemSpriteExtra::create((int)v301, 0, (int)this, (int)EditorUI::onPaste, 0); *((_DWORD *)this + 198) = v203; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v203); v341 = *((cocos2d::CCSprite **)this + 198); v302 = *(cocos2d::CCSprite **)(*(_DWORD *)v341 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -38.0, 0.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v302)(v341, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 198), 1.2); v303 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_editHSVBtn2_001.png", v204); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v303 + 80))(v303, 1065353216); v430 = 0; v429 = EditorUI::onEditColor; v205 = CCMenuItemSpriteExtra::create((int)v303, 0, (int)this, (int)EditorUI::onEditColor, 0); *((_DWORD *)this + 193) = v205; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v205); v342 = *((cocos2d::CCSprite **)this + 193); v304 = *(cocos2d::CCSprite **)(*(_DWORD *)v342 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -76.0, -105.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v304)(v342, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 193), 1.2); v305 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_editObjBtn4_001.png", v206); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v305 + 80))(v305, 1065353216); v432 = 0; v431 = EditorUI::editObject2; v207 = CCMenuItemSpriteExtra::create((int)v305, 0, (int)this, (int)EditorUI::editObject2, 0); *((_DWORD *)this + 194) = v207; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v207); v343 = *((cocos2d::CCSprite **)this + 194); v306 = *(cocos2d::CCSprite **)(*(_DWORD *)v343 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -76.0, -35.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v306)(v343, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 194), 1.2); v307 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_editObjBtn3_001.png", v208); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v307 + 80))(v307, 1065353216); v434 = 0; v433 = EditorUI::editObject; v209 = CCMenuItemSpriteExtra::create((int)v307, 0, (int)this, (int)EditorUI::editObject, 0); *((_DWORD *)this + 191) = v209; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v209); v344 = *((cocos2d::CCSprite **)this + 191); v308 = *(cocos2d::CCSprite **)(*(_DWORD *)v344 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -35.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v308)(v344, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 191), 1.2); v309 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_deSelBtn2_001.png", v210); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v309 + 80))(v309, 1065353216); v436 = 0; v435 = EditorUI::onDeselectAll; v211 = CCMenuItemSpriteExtra::create((int)v309, 0, (int)this, (int)EditorUI::onDeselectAll, 0); *((_DWORD *)this + 176) = v211; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v211); v345 = *((cocos2d::CCSprite **)this + 176); v310 = *(cocos2d::CCSprite **)(*(_DWORD *)v345 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -105.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v310)(v345, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 176), 1.2); v311 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_groupIDBtn2_001.png", v212); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v311 + 80))(v311, 1065353216); v438 = 0; v437 = EditorUI::editGroup; v213 = CCMenuItemSpriteExtra::create((int)v311, 0, (int)this, (int)EditorUI::editGroup, 0); *((_DWORD *)this + 192) = v213; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v213); v346 = *((cocos2d::CCSprite **)this + 192); v312 = *(cocos2d::CCSprite **)(*(_DWORD *)v346 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -38.0, -35.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v312)(v346, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 192), 1.2); v313 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_copyStateBtn_001.png", v214); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v313 + 80))(v313, 1065353216); v440 = 0; v439 = EditorUI::onCopyState; v215 = CCMenuItemSpriteExtra::create((int)v313, 0, (int)this, (int)EditorUI::onCopyState, 0); *((_DWORD *)this + 199) = v215; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v215); v347 = *((cocos2d::CCSprite **)this + 199); v314 = *(cocos2d::CCSprite **)(*(_DWORD *)v347 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -76.0, -70.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v314)(v347, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 199), 1.2); v315 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_pasteStateBtn_001.png", v216); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v315 + 80))(v315, 1065353216); v442 = 0; v441 = EditorUI::onPasteState; v217 = CCMenuItemSpriteExtra::create((int)v315, 0, (int)this, (int)EditorUI::onPasteState, 0); *((_DWORD *)this + 200) = v217; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v217); v348 = *((cocos2d::CCSprite **)this + 200); v316 = *(cocos2d::CCSprite **)(*(_DWORD *)v348 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -38.0, -70.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v316)(v348, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 200), 1.2); v317 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_pasteColorBtn_001.png", v218); (*(void (**)(void))(*(_DWORD *)v317 + 80))(); v444 = 0; v443 = EditorUI::onPasteColor; v219 = CCMenuItemSpriteExtra::create((int)v317, 0, (int)this, (int)EditorUI::onPasteColor, 0); *((_DWORD *)this + 201) = v219; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v219); v349 = *((cocos2d::CCSprite **)this + 201); v318 = *(cocos2d::CCSprite **)(*(_DWORD *)v349 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, 0.0, -70.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v318)(v349, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 201), 1.2); v319 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_goToLayerBtn_001.png", v220); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v319 + 80))(v319, 1065353216); v446 = 0; v445 = EditorUI::onGoToLayer; v221 = CCMenuItemSpriteExtra::create((int)v319, 0, (int)this, (int)EditorUI::onGoToLayer, 0); *((_DWORD *)this + 202) = v221; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v221); v350 = *((cocos2d::CCSprite **)this + 202); v320 = *(cocos2d::CCSprite **)(*(_DWORD *)v350 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v454, -38.0, -105.0); cocos2d::CCPoint::operator+(v455, v370, v454); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v320)(v350, v455); v222 = (cocos2d::CCDirector *)CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 202), 1.2); v223 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v222); v224 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v223)); v225 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v224)); v226 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v225)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v371, v224 - 46.0, v226 + 123.0); v228 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v227); cocos2d::CCSprite::setFlipX(v228, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v228 + 80))(v228, 1058642330); v448 = 0; v447 = EditorUI::onGroupUp; v229 = CCMenuItemSpriteExtra::create((int)v228, 0, (int)this, (int)EditorUI::onGroupUp, 0); *((_DWORD *)this + 216) = v229; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v229); v362 = *((_DWORD *)this + 216); v357 = *(char **)(*(_DWORD *)v362 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v453, 30.0, 0.0); cocos2d::CCPoint::operator+(v454, v371, v453); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v455, v167); ((void (__fastcall *)(int, _DWORD *))v357)(v362, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 216), 1.2); v358 = (char *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v230); (*(void (__fastcall **)(char *, int))(*(_DWORD *)v358 + 80))(v358, 1058642330); v450 = 0; v449 = EditorUI::onGroupDown; v231 = CCMenuItemSpriteExtra::create((int)v358, 0, (int)this, (int)EditorUI::onGroupDown, 0); *((_DWORD *)this + 217) = v231; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v231); v363 = *((_DWORD *)this + 217); v359 = *(char **)(*(_DWORD *)v363 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v453, -30.0, 0.0); cocos2d::CCPoint::operator+(v454, v371, v453); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v455, v167); ((void (__fastcall *)(int, _DWORD *))v359)(v363, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 217), 1.2); v360 = (char *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_02_001.png", v232); (*(void (__fastcall **)(char *, int))(*(_DWORD *)v360 + 80))(v360, 1057635697); (*(void (__fastcall **)(char *, int))(*(_DWORD *)v360 + 456))(v360, 175); v452 = 0; v451 = EditorUI::onGoToBaseLayer; v233 = CCMenuItemSpriteExtra::create((int)v360, 0, (int)this, (int)EditorUI::onGoToBaseLayer, 0); *((_DWORD *)this + 218) = v233; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v233); v364 = *((_DWORD *)this + 218); v361 = *(char **)(*(_DWORD *)v364 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v453, -58.0, 0.0); cocos2d::CCPoint::operator+(v454, v371, v453); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v455, v167); ((void (__fastcall *)(int, _DWORD *))v361)(v364, v455); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 218), 1.2); v235 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plus2Btn_001.png", v234); (*(void (__fastcall **)(int, int))(*(_DWORD *)v235 + 80))(v235, 1062668862); (*(void (__fastcall **)(int, int))(*(_DWORD *)v235 + 456))(v235, 200); v453[1] = 0; v453[0] = EditorUI::onGoToFreeLayer; v236 = CCMenuItemSpriteExtra::create(v235, 0, (int)this, (int)EditorUI::onGoToFreeLayer, 0); *((_DWORD *)this + 203) = v236; (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v236); v237 = *((_DWORD *)this + 203); v238 = *(void (__fastcall **)(int, int))(*(_DWORD *)v237 + 92); v239 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 218) + 96))(*((_DWORD *)this + 218)); v238(v237, v239); CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 203), 1.2); v240 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"All", "bigFont.fnt", "bigFont.fnt"); v241 = *(_DWORD *)this; *((_DWORD *)this + 215) = v240; (*(void (__fastcall **)(EditorUI *, int))(v241 + 228))(this, v240); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 215) + 80))(*((_DWORD *)this + 215), 1058642330); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 117), *((cocos2d::CCObject **)this + 215)); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 215) + 92))(*((_DWORD *)this + 215), v371); v243 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v242); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v243 + 456))(v243, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v243 + 72))(v243, 1061997773); v454[1] = 0; v454[0] = EditorUI::onLockLayer; v244 = CCMenuItemSpriteExtra::create(v243, 0, (int)this, (int)EditorUI::onLockLayer, 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v167 + 228))(v167, v244); v351 = *(cocos2d::CCSprite **)(*(_DWORD *)v244 + 92); v321 = (cocos2d::CCSprite *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 216) + 96))(*((_DWORD *)this + 216)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v372, -24.5, 1.0); cocos2d::CCPoint::operator+(v455, v321, v372); ((void (__fastcall *)(int, _DWORD *))v351)(v244, v455); v246 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lock_001.png", v245); *((_DWORD *)this + 261) = v246; (*(void (__fastcall **)(int, int))(*(_DWORD *)v246 + 80))(v246, 1056964608); v247 = *((_DWORD *)this + 261); v352 = *(cocos2d::CCSprite **)(*(_DWORD *)v247 + 92); v322 = (cocos2d::CCSprite *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 215) + 96))(*((_DWORD *)this + 215)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v372, 12.0, 5.0); cocos2d::CCPoint::operator+(v455, v322, v372); ((void (__fastcall *)(int, _DWORD *))v352)(v247, v455); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 117), *((cocos2d::CCObject **)this + 261)); (*(void (__fastcall **)(EditorUI *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 261), 2); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 261) + 172))(*((_DWORD *)this + 261), 0); EditorUI::updateGroupIDLabel(this, v248); EditorUI::updateButtons((cocos2d::CCArray **)this); v250 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "chatFont.fnt", v249); *((_DWORD *)this + 143) = v250; (*(void (__fastcall **)(int, int))(*(_DWORD *)v250 + 80))(v250, 1058642330); v251 = *((_DWORD *)this + 143); v252 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v251 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, 0.0, 1.0); v252(v251, v455); (*(void (__fastcall **)(EditorUI *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 143)); v323 = *((cocos2d::CCSprite **)this + 143); v253 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v323 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, 52.0, v366 - 50.0); v253(v323, v455); v255 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Zoom: 1.00", "bigFont.fnt", v254); *((_DWORD *)this + 253) = v255; (*(void (__fastcall **)(int, int))(*(_DWORD *)v255 + 80))(v255, 1056964608); v324 = *((cocos2d::CCSprite **)this + 253); v256 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v324 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, 0.5, 0.5); v256(v324, v455); (*(void (__fastcall **)(EditorUI *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 253), 5); v325 = *((cocos2d::CCSprite **)this + 253); v257 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v325 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v455, v365 * 0.5, v366 - 60.0); v257(v325, v455); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 253) + 512))(*((_DWORD *)this + 253), 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 253) + 172))(*((_DWORD *)this + 253), 0); v258 = (GameManager *)cocos2d::CCArray::addObject( *((cocos2d::CCArray **)this + 117), *((cocos2d::CCObject **)this + 253)); *((_DWORD *)this + 129) = -1; *((_DWORD *)this + 130) = -1; *((_DWORD *)this + 131) = -1; *((_DWORD *)this + 133) = -1; v259 = (GameManager *)GameManager::sharedState(v258); v260 = (GameManager *)(GameManager::getGameVariable(v259, "0003") ^ 1); *((_BYTE *)this + 636) = (_BYTE)v260; v261 = (GameManager *)GameManager::sharedState(v260); v262 = (GameManager *)(GameManager::getGameVariable(v261, "0004") ^ 1); *((_BYTE *)this + 640) = (_BYTE)v262; v263 = (GameManager *)GameManager::sharedState(v262); v264 = (GameManager *)GameManager::toggleGameVariable(v263, "0008"); v265 = (GameManager *)GameManager::sharedState(v264); GameManager::toggleGameVariable(v265, "0007"); EditorUI::toggleSwipe(this, nullptr); EditorUI::toggleFreeMove(this, nullptr); EditorUI::toggleSnap(this, nullptr); v266 = (MusicDownloadManager *)EditorUI::toggleEnableRotate(this, nullptr); v267 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v266); MusicDownloadManager::addMusicDownloadDelegate(v267, (EditorUI *)((char *)this + 336)); EditorUI::toggleObjectInfoLabel(this); v268 = *((cocos2d::CCArray **)this + 117); v269 = (cocos2d::CCArray *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v56 + 244))(v56); cocos2d::CCArray::addObjectsFromArray(v268, v269); v270 = *((cocos2d::CCArray **)this + 117); v271 = (cocos2d::CCArray *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v167 + 244))(v167); cocos2d::CCArray::addObjectsFromArray(v270, v271); cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 117), *((cocos2d::CCObject **)this + 182), 1); cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 117), *((cocos2d::CCObject **)this + 180), 1); cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 117), *((cocos2d::CCObject **)this + 181), 1); v273 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"hideBtn_001.png", v272); (*(void (__fastcall **)(int, int))(*(_DWORD *)v273 + 80))(v273, 1061997773); (*(void (__fastcall **)(int, int))(*(_DWORD *)v273 + 456))(v273, 125); v455[1] = 0; v455[0] = EditorUI::onShowUIBtn; v274 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v273, 0, (int)this, (int)EditorUI::onShowUIBtn, 0); *((_DWORD *)this + 185) = cocos2d::CCMenu::createWithItem(v274, v275); v276 = *(void (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)v274 + 92); v277 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 184) + 96))(*((_DWORD *)this + 184)); v276(v274, v277); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 185) + 172))(*((_DWORD *)this + 185), 0); (*(void (__fastcall **)(EditorUI *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 185), 100); } return v353; }
GD Web Decomp Icon

GD Web Decomp

Raw Source