//
// SetGroupIDLayer::init from 0x10003af10 to 0x10003ca00 (6896 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::create @ 0x10003aec0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall SetGroupIDLayer::init(SetGroupIDLayer *a1, GameObject *a2, cocos2d::CCArray *a3)
{
_BOOL8 v6; // x0
cocos2d::CCArray *v7; // x0
cocos2d::CCDictionary *v8; // x0
cocos2d::CCDirector *v9; // x0
cocos2d::CCLayer *v10; // x0
__int64 v11; // x0
cocos2d::CCArray *v12; // x0
cocos2d::extension::CCScale9Sprite *v13; // x19
__n128 v14; // q0
__n128 v15; // q1
cocos2d::extension::CCScale9Sprite *v16; // x19
__n128 v17; // q0
__n128 v18; // q1
cocos2d::CCLabelBMFont *v19; // x26
__n128 v20; // q0
__n128 v21; // q1
cocos2d::CCLabelBMFont *v22; // x25
__n128 v23; // q0
__n128 v24; // q1
cocos2d::CCLabelBMFont *v25; // x24
float v26; // s9
__n128 v27; // q1
__n128 v28; // q0
cocos2d::CCLabelBMFont *v29; // x23
float32x2_t *v30; // x19
__n128 v31; // q0
__n128 v32; // q1
double v33; // d0
cocos2d::CCLabelBMFont *v34; // x22
float32x2_t *v35; // x19
__n128 v36; // q1
__n128 v37; // q0
double v38; // d0
cocos2d::CCMenu *v39; // x0
ButtonSprite *v40; // x0
CCMenuItemSpriteExtra *v41; // x0
__n128 v42; // q0
cocos2d::CCMenu *m_buttonMenu; // x19
__n128 v44; // q1
cocos2d::CCSprite *v45; // x19
CCMenuItemSpriteExtra *v46; // x19
cocos2d::CCMenu *v47; // x28
const cocos2d::CCPoint *v48; // x0
__n128 v49; // q0
__n128 v50; // q1
double v51; // d0
cocos2d::CCSprite *v52; // x19
CCMenuItemSpriteExtra *v53; // x19
cocos2d::CCMenu *v54; // x27
const cocos2d::CCPoint *v55; // x0
__n128 v56; // q0
__n128 v57; // q1
double v58; // d0
cocos2d::CCSprite *v59; // x19
CCMenuItemSpriteExtra *v60; // x19
cocos2d::CCMenu *v61; // x27
const cocos2d::CCPoint *v62; // x0
__n128 v63; // q0
__n128 v64; // q1
double v65; // d0
_DWORD *v66; // x27
__n128 v67; // q0
cocos2d::CCMenu *v68; // x19
__n128 v69; // q1
float32x2_t *v70; // x19
__n128 v71; // q0
__n128 v72; // q1
float32x2_t *v73; // x19
__n128 v74; // q0
__n128 v75; // q1
float32x2_t *v76; // x19
__n128 v77; // q0
__n128 v78; // q1
char *v79; // x1
ButtonSprite *v80; // x0
CCMenuItemSpriteExtra *v81; // x19
cocos2d::CCMenu *v82; // x26
float v83; // s9
__n128 v84; // q1
__n128 v85; // q0
float v86; // s9
ButtonSprite *v87; // x0
CCMenuItemSpriteExtra *v88; // x24
cocos2d::CCMenu *v89; // x19
float v90; // s9
__n128 v91; // q1
__n128 v92; // q0
ButtonSprite *v93; // x0
CCMenuItemSpriteExtra *v94; // x19
float32x2_t *v95; // x24
__n128 v96; // q0
__n128 v97; // q1
double v98; // d0
float32x2_t *v99; // x19
__n128 v100; // q0
__n128 v101; // q1
CCTextInputNode *TextInput; // x0
__int64 v103; // x21
cocos2d::CCArray *v104; // x23
__int64 v105; // x22
const char *v106; // x0
__int64 v107; // x19
ButtonSprite *v108; // x27
CCMenuItemSpriteExtra *v109; // x28
cocos2d::CCMenu *v110; // x19
float32x2_t *v111; // x24
__n128 v112; // q0
__n128 v113; // q1
cocos2d::CCArray *m_targetObjects; // x0
GameObject *v115; // x21
__int64 v116; // x27
char v117; // w8
char v118; // w24
char *v119; // x1
cocos2d::CCSprite *v120; // x0
cocos2d::CCNode *v121; // x28
void *v122; // x1
void **v123; // x0
cocos2d::CCLabelBMFont *v124; // x19
__n128 v125; // q0
__n128 v126; // q1
double v127; // d0
CCMenuItemSpriteExtra *v128; // x28
cocos2d::CCMenu *v129; // x19
float32x2_t *v130; // x27
__n128 v131; // q1
__n128 v132; // q0
int v133; // w8
unsigned __int32 v134; // s11
GameObject *m_targetObject; // x0
int ParentMode; // w19
cocos2d::CCString *v137; // x0
char *CString; // x1
cocos2d::CCArray *v139; // x0
__int64 v140; // x23
GameObject *v141; // x0
int v142; // w0
void **v143; // x0
cocos2d::CCLabelBMFont *v144; // x23
float32x2_t *v145; // x19
__n128 v146; // q1
__n128 v147; // q0
double v148; // d0
__n128 v149; // q0
__n128 v150; // q1
__n128 v151; // q0
__n128 v152; // q1
cocos2d::CCSprite *v153; // x19
CCMenuItemSpriteExtra *v154; // x22
__n128 v155; // q0
__n128 v156; // q1
double v157; // d0
cocos2d::CCMenu *v158; // x19
__n128 v159; // q0
__n128 v160; // q1
ButtonSprite *v161; // x23
ButtonSprite *v162; // x24
ButtonSprite *v163; // x25
ButtonSprite *v164; // x28
ButtonSprite *v165; // x22
CCMenuItemSpriteExtra *v166; // x27
CCMenuItemSpriteExtra *v167; // x26
CCMenuItemSpriteExtra *v168; // x25
CCMenuItemSpriteExtra *v169; // x24
CCMenuItemSpriteExtra *v170; // x23
GameManager *v171; // x0
__n128 v172; // q0
__n128 v173; // q1
__n128 v174; // q0
__n128 v175; // q1
double v176; // d0
__n128 v177; // q0
__n128 v178; // q1
double v179; // d0
__n128 v180; // q0
__n128 v181; // q1
double v182; // d0
__n128 v183; // q0
__n128 v184; // q1
__n128 v185; // q0
__n128 v186; // q1
__int64 m_pobTexture_low; // x22
cocos2d::CCMenu *v188; // x23
__n128 v189; // q0
__n128 v190; // q1
EffectGameObject *m_playbackObject; // x19
cocos2d::CCMenu *v192; // x22
__n128 v193; // q1
__n128 v194; // q0
EffectGameObject *m_traceOutObject; // x19
cocos2d::CCMenu *v196; // x22
__n128 v197; // q1
__n128 v198; // q0
EffectGameObject *m_traceInObject; // x19
cocos2d::CCMenu *v200; // x22
__n128 v201; // q1
__n128 v202; // q0
unsigned int v204; // [xsp+10h] [xbp-220h]
unsigned int v205; // [xsp+10h] [xbp-220h]
unsigned int v206; // [xsp+10h] [xbp-220h]
bool v207; // [xsp+24h] [xbp-20Ch]
cocos2d::CCLabelBMFont *v208; // [xsp+28h] [xbp-208h]
GameObject *v209; // [xsp+30h] [xbp-200h]
void *v210[2]; // [xsp+40h] [xbp-1F0h] BYREF
char v211; // [xsp+57h] [xbp-1D9h]
void *v212[2]; // [xsp+58h] [xbp-1D8h] BYREF
char v213; // [xsp+6Fh] [xbp-1C1h]
void *v214[2]; // [xsp+70h] [xbp-1C0h] BYREF
char v215; // [xsp+87h] [xbp-1A9h]
__int64 v216; // [xsp+88h] [xbp-1A8h] BYREF
void *v217[2]; // [xsp+90h] [xbp-1A0h] BYREF
char v218; // [xsp+A7h] [xbp-189h]
float32x2_t v219; // [xsp+A8h] [xbp-188h] BYREF
float32x2_t v220; // [xsp+B0h] [xbp-180h] BYREF
void *v221[2]; // [xsp+B8h] [xbp-178h] BYREF
char v222; // [xsp+CFh] [xbp-161h]
void *v223[2]; // [xsp+D0h] [xbp-160h] BYREF
char v224; // [xsp+E7h] [xbp-149h]
float32x2_t v225; // [xsp+E8h] [xbp-148h] BYREF
void *v226[2]; // [xsp+F0h] [xbp-140h] BYREF
char v227; // [xsp+107h] [xbp-129h]
float32x2_t v228; // [xsp+108h] [xbp-128h] BYREF
void *v229[2]; // [xsp+110h] [xbp-120h] BYREF
char v230; // [xsp+127h] [xbp-109h]
void *__p[2]; // [xsp+128h] [xbp-108h] BYREF
char v232; // [xsp+13Fh] [xbp-F1h]
void *v233[2]; // [xsp+140h] [xbp-F0h] BYREF
char v234; // [xsp+157h] [xbp-D9h]
void *v235[2]; // [xsp+158h] [xbp-D8h] BYREF
char v236; // [xsp+16Fh] [xbp-C1h]
void *v237[2]; // [xsp+170h] [xbp-C0h] BYREF
char v238; // [xsp+187h] [xbp-A9h]
void *v239[2]; // [xsp+188h] [xbp-A8h] BYREF
char v240; // [xsp+19Fh] [xbp-91h]
float32x2_t v241; // [xsp+1A0h] [xbp-90h] BYREF
float32x2_t v242; // [xsp+1A8h] [xbp-88h] BYREF
float v243; // [xsp+1B0h] [xbp-80h]
float v244; // [xsp+1B4h] [xbp-7Ch]
cocos2d::CCPoint v245; // 0:kr20_8.8
cocos2d::CCPoint v246; // 0:kr28_8.8
cocos2d::CCPoint v247; // 0:kr30_8.8
cocos2d::CCPoint v248; // 0:kr48_8.8
cocos2d::SEL_MenuHandler v249; // 0:x3.16
cocos2d::SEL_MenuHandler v250; // 0:x3.16
cocos2d::SEL_MenuHandler v251; // 0:x3.16
cocos2d::SEL_MenuHandler v252; // 0:x3.16
cocos2d::SEL_MenuHandler v253; // 0:x3.16
cocos2d::SEL_MenuHandler v254; // 0:x3.16
cocos2d::SEL_MenuHandler v255; // 0:x3.16
cocos2d::SEL_MenuHandler v256; // 0:x3.16
cocos2d::SEL_MenuHandler v257; // 0:x3.16
cocos2d::SEL_MenuHandler v258; // 0:x3.16
cocos2d::SEL_MenuHandler v259; // 0:x3.16
cocos2d::SEL_MenuHandler v260; // 0:x3.16
cocos2d::SEL_MenuHandler v261; // 0:x3.16
cocos2d::SEL_MenuHandler v262; // 0:x3.16
cocos2d::SEL_MenuHandler v263; // 0:x3.16
cocos2d::CCPoint v264; // 0:s1.4,4:s2.4
cocos2d::CCRect v265; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
cocos2d::CCRect v266; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
LODWORD(v226[0]) = 1258291200;
v6 = cocos2d::CCLayerColor::initWithColor(a1, (const cocos2d::ccColor4B *)v226);
if ( !v6 )
return v6;
v207 = v6;
a1->m_editorLayerEdited = 1;
a1->m_noElasticity = 1;
if ( a2 )
{
a1->m_targetObject = a2;
}
else
{
a1->m_targetObjects = a3;
cocos2d::CCObject::retain(a3);
}
v7 = (cocos2d::CCArray *)sub_10024A15C(v6);
a1->m_zLayerButtons = v7;
cocos2d::CCObject::retain(v7);
v8 = cocos2d::CCDictionary::create();
a1->m_parentGroups = v8;
cocos2d::CCObject::retain(v8);
FLAlertLayer::incrementForcePrio(a1);
((void (__fastcall *)(SetGroupIDLayer *, __int64))a1->setTouchEnabled)(a1, 1);
((void (__fastcall *)(SetGroupIDLayer *, __int64))a1->setKeypadEnabled)(a1, 1);
v9 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v9);
v10 = cocos2d::CCLayer::create();
a1->m_mainLayer = v10;
((void (__fastcall *)(SetGroupIDLayer *, cocos2d::CCLayer *))a1->addChild)(a1, v10);
v11 = ((__int64 (__fastcall *)(SetGroupIDLayer *, __int64))a1->setOpacity)(a1, 200);
v12 = (cocos2d::CCArray *)sub_10024A15C(v11);
a1->m_groupIDObjects = v12;
cocos2d::CCObject::retain(v12);
a1->m_groupIDValue = GameManager::sharedState()->m_currentGroupID;
sub_100022990((float *)v226, 0.0, 0.0, 80.0, 80.0);
v13 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v265);
sub_100022988((float *)v226, 390.0, 310.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void **))v13->setContentSize)(v13, v226);
v14 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v13,
4294967294LL);
v14.n128_f32[0] = v243 * 0.5;
v15.n128_f32[0] = v244 * 0.5;
sub_100022980(v14, v15, v226);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void **))v13->setPosition)(v13, v226);
sub_100022990((float *)v226, 0.0, 0.0, 80.0, 80.0);
v16 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v266);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v16->setOpacity)(v16, 50);
sub_100022988((float *)v226, 360.0, 68.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void **))v16->setContentSize)(v16, v226);
v17 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v16,
0xFFFFFFFFLL);
v17.n128_f32[0] = v243 * 0.5;
v18.n128_f32[0] = (float)(v244 * 0.5) + -17.0;
sub_100022980(v17, v18, v226);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, void **))v16->setPosition)(v16, v226);
v19 = cocos2d::CCLabelBMFont::create_1("Editor L", "goldFont.fnt");
v20.n128_f32[0] = (float)(v243 * 0.5) + -125.0;
v21.n128_f32[0] = (float)((float)(v244 * 0.5) + 155.0) + -17.0;
sub_100022980(v20, v21, v226);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v19->setPosition)(v19, v226);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v19);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v19->setScale)(v19, 0.65);
v22 = cocos2d::CCLabelBMFont::create_1("Editor L2", "goldFont.fnt");
v23.n128_f32[0] = v243 * 0.5;
v24.n128_f32[0] = (float)((float)(v244 * 0.5) + 155.0) + -17.0;
sub_100022980(v23, v24, v226);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v22->setPosition)(v22, v226);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v22);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v22->setScale)(v22, 0.65);
v25 = cocos2d::CCLabelBMFont::create_1("Add Group ID", "goldFont.fnt");
v26 = v243 * 0.5;
v27.n128_f32[0] = *(float *)(((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v19->getPosition)(v19) + 4) + -65.0;
v28.n128_f32[0] = v26;
sub_100022980(v28, v27, v226);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **))v25->setPosition)(v25, v226);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v25);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v25->setScale)(v25, 0.65);
v29 = cocos2d::CCLabelBMFont::create_1("Z Order", "goldFont.fnt");
v30 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v19->getPosition)(v19);
v31.n128_u32[0] = 1132068864;
v32.n128_u32[0] = 0;
sub_100022980(v31, v32, &v242);
*(float32x2_t *)&v33 = sub_1000229DC(v30, &v242, (float32x2_t *)v226);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v29->setPosition)(v29, v226, v33);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v29);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v29->setScale)(v29, 0.65);
v34 = cocos2d::CCLabelBMFont::create_1("Z Layer", "goldFont.fnt");
v35 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v25->getPosition)(v25);
v36.n128_u32[0] = -1022820352;
v37.n128_u32[0] = 0;
sub_100022980(v37, v36, &v242);
*(float32x2_t *)&v38 = sub_1000229DC(v35, &v242, (float32x2_t *)v226);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v34->setPosition)(v34, v226, v38);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v34);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v34->setScale)(v34, 0.65);
v39 = cocos2d::CCMenu::create();
a1->m_buttonMenu = v39;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v39,
10);
a1->m_joystickConnected = -1;
v40 = ButtonSprite::create_1("OK", 40, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", 30.0);
v249.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onClose;
v249.adj = 0;
v41 = CCMenuItemSpriteExtra::create(v40, nullptr, a1, v249);
v42 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v41);
m_buttonMenu = a1->m_buttonMenu;
v42.n128_f32[0] = v243 * 0.5;
v44.n128_f32[0] = (float)((float)(v244 * 0.5) + -155.0) + 23.0;
sub_100022980(v42, v44, v226);
((void (__fastcall *)(cocos2d::CCMenu *, void **))m_buttonMenu->setPosition)(m_buttonMenu, v226);
v45 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v45->setScale)(v45, 0.8);
v250.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onNextFreeEditorLayer1;
v250.adj = 0;
v46 = CCMenuItemSpriteExtra::create(v45, nullptr, a1, v250);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v46);
v47 = a1->m_buttonMenu;
v48 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v19->getPosition)(v19);
cocos2d::CCNode::convertToNodeSpace(v47, v48);
v49.n128_u32[0] = 1112014848;
v50.n128_u32[0] = 0;
sub_100022980(v49, v50, &v241);
*(float32x2_t *)&v51 = sub_1000229DC(&v242, &v241, (float32x2_t *)v226);
((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, double))v46->setPosition)(v46, v226, v51);
v52 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v52->setScale)(v52, 0.8);
v251.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onNextFreeEditorLayer2;
v251.adj = 0;
v53 = CCMenuItemSpriteExtra::create(v52, nullptr, a1, v251);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v53);
v54 = a1->m_buttonMenu;
v55 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v22->getPosition)(v22);
cocos2d::CCNode::convertToNodeSpace(v54, v55);
v56.n128_u32[0] = 1113063424;
v57.n128_u32[0] = 0;
sub_100022980(v56, v57, &v241);
*(float32x2_t *)&v58 = sub_1000229DC(&v242, &v241, (float32x2_t *)v226);
((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, double))v53->setPosition)(v53, v226, v58);
v59 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v59->setScale)(v59, 0.35);
v252.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onGroupIDOptions;
v252.adj = 0;
v60 = CCMenuItemSpriteExtra::create(v59, nullptr, a1, v252);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v60);
v61 = a1->m_buttonMenu;
v62 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v25->getPosition)(v25);
cocos2d::CCNode::convertToNodeSpace(v61, v62);
v63.n128_u32[0] = 1116864512;
v64.n128_u32[0] = 0;
sub_100022980(v63, v64, &v241);
*(float32x2_t *)&v65 = sub_1000229DC(&v242, &v241, (float32x2_t *)v226);
((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, double))v60->setPosition)(v60, v226, v65);
sub_100009900(v239, "Help");
sub_100009900(
v237,
"Add assigns up to 10 groups to the selected object(s).\n"
" P sets a single object as group parent.\n"
"Editor L1 and L2 places the object(s) on an editor layer.\n"
"Z layer sets the draw layer of the object(s). T layers are above, while B layers are below the player.\n"
"Z order sets the draw order of the object(s) within the Z layer.\n"
"CH sets the channel of the object(s).\n"
"ORD sets the order of the object(s).\n"
"Extra has more advanced options.\n"
"Preview makes touch toggled triggers preview in editor.\n"
"Playback starts playback from this object.");
v66 = (_DWORD *)InfoAlertButton::create(v239, v237, 0.8);
if ( v238 < 0 )
operator delete(v237[0]);
if ( v240 < 0 )
operator delete(v239[0]);
v66[138] = 1063675494;
v67 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, _DWORD *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v66);
v68 = a1->m_buttonMenu;
v67.n128_f32[0] = (float)((float)(v243 * 0.5) + 195.0) + -17.0;
v69.n128_f32[0] = (float)((float)(v244 * 0.5) + 155.0) + -17.0;
sub_100022980(v67, v69, &v242);
v245 = cocos2d::CCNode::convertToNodeSpace(v68, (const cocos2d::CCPoint *)&v242);
(*(void (__fastcall **)(_DWORD *, void **, float, float))(*(_QWORD *)v66 + 184LL))(v66, v226, v245.x, v245.y);
v70 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v19->getPosition)(v19);
v71.n128_u32[0] = 0;
v72.n128_u32[0] = -30.0;
sub_100022980(v71, v72, &v242);
sub_1000229DC(v70, &v242, (float32x2_t *)v226);
sub_100009900(v235, "L1");
a1->m_editorLayerInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput(a1, v226, 5, 6, v235, 2, 50.0);
if ( v236 < 0 )
operator delete(v235[0]);
v73 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v22->getPosition)(v22);
v74.n128_u32[0] = 0;
v75.n128_u32[0] = -30.0;
sub_100022980(v74, v75, &v242);
sub_1000229DC(v73, &v242, (float32x2_t *)v226);
sub_100009900(v233, "L2");
a1->m_editorLayer2Input = (CCTextInputNode *)SetGroupIDLayer::createTextInput(a1, v226, 6, 6, v233, 3, 50.0);
if ( v234 < 0 )
operator delete(v233[0]);
v76 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v25->getPosition)(v25);
v77.n128_u32[0] = 0;
v78.n128_u32[0] = -30.0;
sub_100022980(v77, v78, v226);
sub_1000229DC(v76, (float32x2_t *)v226, &v242);
sub_1000229B8((__int64 *)v226, (__int64 *)&v242);
if ( a1->m_groupIDValue == -1 )
v79 = "Mixed";
else
v79 = "Num";
sub_100009900(__p, v79);
a1->m_groupIDInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput(a1, v226, 1, 6, __p, 1, 50.0);
if ( v232 < 0 )
operator delete(__p[0]);
v80 = ButtonSprite::create_1("Next Free", 50, 0, 0.7, 1, "goldFont.fnt", "GJ_button_04.png", 25.0);
v253.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onNextGroupID1;
v253.adj = 0;
v81 = CCMenuItemSpriteExtra::create(v80, nullptr, a1, v253);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v81);
v82 = a1->m_buttonMenu;
v83 = (float)(v243 * 0.5) + -125.0;
v84.n128_u32[0] = *(_DWORD *)(((__int64 (__fastcall *)(CCTextInputNode *))a1->m_groupIDInput->getPosition)(a1->m_groupIDInput)
+ 4);
v85.n128_f32[0] = v83;
sub_100022980(v85, v84, &v241);
v246 = cocos2d::CCNode::convertToNodeSpace(v82, (const cocos2d::CCPoint *)&v241);
((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v81->setPosition)(v81, v226, v246.x, v246.y);
if ( a2 )
v86 = -20.0;
else
v86 = 0.0;
v87 = ButtonSprite::create_1("Add", 50, 0, 0.7, 1, "goldFont.fnt", "GJ_button_04.png", 25.0);
v254.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onAddGroup;
v254.adj = 0;
v88 = CCMenuItemSpriteExtra::create(v87, nullptr, a1, v254);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v88);
v89 = a1->m_buttonMenu;
v90 = v86 + (float)((float)(v243 * 0.5) + 125.0);
v91.n128_u32[0] = *(_DWORD *)(((__int64 (__fastcall *)(CCTextInputNode *))a1->m_groupIDInput->getPosition)(a1->m_groupIDInput)
+ 4);
v92.n128_f32[0] = v90;
sub_100022980(v92, v91, &v241);
v247 = cocos2d::CCNode::convertToNodeSpace(v89, (const cocos2d::CCPoint *)&v241);
((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, float, float))v88->setPosition)(v88, v226, v247.x, v247.y);
if ( a2 )
{
v93 = ButtonSprite::create_1("P", 50, 0, 0.7, 0, "goldFont.fnt", "GJ_button_04.png", 25.0);
v255.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onAddGroupParent;
v255.adj = 0;
v94 = CCMenuItemSpriteExtra::create(v93, nullptr, a1, v255);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v94);
v95 = (float32x2_t *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v88->getPosition)(v88);
v96.n128_u32[0] = 1114636288;
v97.n128_u32[0] = 0;
sub_100022980(v96, v97, &v241);
*(float32x2_t *)&v98 = sub_1000229DC(v95, &v241, (float32x2_t *)v226);
((void (__fastcall *)(CCMenuItemSpriteExtra *, void **, double))v94->setPosition)(v94, v226, v98);
}
v99 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v29->getPosition)(v29);
v100.n128_u32[0] = 0;
v101.n128_u32[0] = -30.0;
sub_100022980(v100, v101, &v241);
sub_1000229DC(v99, &v241, (float32x2_t *)v226);
sub_100009900(v229, "Z");
TextInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput(a1, v226, 7, 6, v229, 2, 50.0);
v208 = v34;
v209 = a2;
a1->m_zOrderInput = TextInput;
if ( v230 < 0 )
operator delete(v229[0]);
v103 = 4294967291LL;
v104 = (cocos2d::CCArray *)sub_10024A15C(TextInput);
v105 = 0;
do
{
if ( (unsigned int)v105 > 8 )
{
v107 = 0;
v106 = "Default";
}
else
{
v106 = off_10076E628[v105];
v107 = v103;
}
v108 = ButtonSprite::create_1(v106, 220, 0, 0.3, 0, "bigFont.fnt", "GJ_button_04.png", 25.0);
sub_10024A2D0(a1->m_zLayerButtons, v108);
v256.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onZLayer;
v256.adj = 0;
v109 = CCMenuItemSpriteExtra::create(v108, nullptr, a1, v256);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v109->setTag)(v109, v107);
((void (__fastcall *)(ButtonSprite *, __int64))v108->setTag)(v108, v107);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v109);
sub_10024A2D0(v104, v109);
++v105;
v103 = (unsigned int)(v103 + 2);
}
while ( (_DWORD)v103 != 15 );
v110 = a1->m_buttonMenu;
v111 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v208->getPosition)(v208);
v112.n128_u32[0] = 0;
v113.n128_u32[0] = -28.0;
sub_100022980(v112, v113, &v228);
sub_1000229DC(v111, &v228, &v241);
LODWORD(v264.x) = COERCE_UNSIGNED_INT(cocos2d::CCNode::convertToNodeSpace(v110, (const cocos2d::CCPoint *)&v241).y);
GameToolbox::alignItemsHorisontally(v104, 5.0, v264, (bool)v226);
SetGroupIDLayer::determineStartValues(a1);
if ( a1->m_zLayerValue != -100 )
{
v133 = 1109393408;
LABEL_50:
v134 = v133;
v115 = v209;
goto LABEL_52;
}
m_targetObjects = a1->m_targetObjects;
v115 = v209;
if ( m_targetObjects && (unsigned int)sub_10024A36C(m_targetObjects) )
{
v116 = 0;
v117 = 1;
do
{
v118 = v117;
if ( (v117 & 1) != 0 )
v119 = "-";
else
v119 = "+";
sub_100009900(v226, v119);
v120 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png");
v121 = v120;
if ( (v118 & 1) != 0 )
v122 = &unk_100635940;
else
v122 = &unk_100635943;
((void (__fastcall *)(cocos2d::CCSprite *, void *))v120->setColor)(v120, v122);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v121->__vftable[1].~CCNode_0)(v121, 100);
if ( v227 >= 0 )
v123 = v226;
else
v123 = (void **)v226[0];
v124 = cocos2d::CCLabelBMFont::create_1((const char *)v123, "bigFont.fnt");
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))v121->addChild)(v121, v124);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v124->setScale)(v124, 1.4);
cocos2d::CCNode::convertToNodeSpace(v121, &stru_10086A680);
v125.n128_u32[0] = 2.0;
v126.n128_u32[0] = 2.5;
sub_100022980(v125, v126, &v225);
*(float32x2_t *)&v127 = sub_1000229DC(&v228, &v225, &v241);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v124->setPosition)(v124, &v241, v127);
((void (__fastcall *)(cocos2d::CCNode *, float))v121->setScale)(v121, 0.3);
v257.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onZLayerShift;
v257.adj = 0;
v128 = CCMenuItemSpriteExtra::create(v121, nullptr, a1, v257);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v128);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v128->setTag)(v128, v116);
v129 = a1->m_buttonMenu;
v130 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v208->getPosition)(v208);
v132.n128_u32[0] = 1109393408;
if ( (v118 & 1) != 0 )
v132.n128_f32[0] = -40.0;
v131.n128_u32[0] = -2.0;
sub_100022980(v132, v131, &v225);
sub_1000229DC(v130, &v225, &v228);
v248 = cocos2d::CCNode::convertToNodeSpace(v129, (const cocos2d::CCPoint *)&v228);
((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))v128->setPosition)(
v128,
&v241,
v248.x,
v248.y);
CCMenuItemSpriteExtra::setSizeMult(v128, 2.0);
if ( v227 < 0 )
operator delete(v226[0]);
v117 = 0;
v116 = 1;
}
while ( (v118 & 1) != 0 );
v133 = 1113325568;
goto LABEL_50;
}
v134 = 1109393408;
LABEL_52:
m_targetObject = a1->m_targetObject;
if ( m_targetObject )
{
ParentMode = GameObject::getParentMode(m_targetObject);
}
else
{
v139 = a1->m_targetObjects;
if ( !v139 || !(unsigned int)sub_10024A36C(v139) )
goto LABEL_65;
v140 = 0;
ParentMode = -1;
do
{
v141 = (GameObject *)sub_10024A388(a1->m_targetObjects, v140);
v142 = GameObject::getParentMode(v141);
if ( ParentMode == -1 )
{
ParentMode = v142;
}
else if ( ParentMode != v142 )
{
goto LABEL_65;
}
v140 = (unsigned int)(v140 + 1);
}
while ( (unsigned int)v140 < (unsigned int)sub_10024A36C(a1->m_targetObjects) );
}
if ( ParentMode != -1 )
{
v137 = (cocos2d::CCString *)sub_100268F4C("(%i)", ParentMode);
CString = (char *)cocos2d::CCString::getCString(v137);
goto LABEL_66;
}
LABEL_65:
CString = "(-)";
LABEL_66:
sub_100009900(v226, CString);
if ( v227 >= 0 )
v143 = v226;
else
v143 = (void **)v226[0];
v144 = cocos2d::CCLabelBMFont::create_1((const char *)v143, "chatFont.fnt");
v145 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v208->getPosition)(v208);
v146.n128_u32[0] = -2.0;
v147.n128_u32[0] = v134;
sub_100022980(v147, v146, &v228);
*(float32x2_t *)&v148 = sub_1000229DC(v145, &v228, &v241);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v144->setPosition)(v144, &v241, v148);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v144);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v144->setScale)(v144, 0.6);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v144->setColor)(v144, &unk_100635946);
if ( a1->m_showChannelOrder )
{
v149.n128_f32[0] = (float)(v243 * 0.5) + -125.0;
v150.n128_f32[0] = (float)((float)(v244 * 0.5) + -155.0) + 25.0;
sub_100022980(v149, v150, &v241);
v151.n128_f32[0] = (float)(v243 * 0.5) + 125.0;
v152.n128_u32[0] = v241.u32[1];
sub_100022980(v151, v152, &v228);
sub_1000229B8((__int64 *)&v225, (__int64 *)&v241);
sub_100009900(v223, "ORD");
a1->m_orderInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput(a1, &v225, 3, 6, v223, 2, 50.0);
if ( v224 < 0 )
operator delete(v223[0]);
SetGroupIDLayer::updateEditorOrderLabel(a1);
sub_1000229B8((__int64 *)&v225, (__int64 *)&v228);
sub_100009900(v221, "CH");
a1->m_channelInput = (CCTextInputNode *)SetGroupIDLayer::createTextInput(a1, &v225, 4, 6, v221, 2, 50.0);
if ( v222 < 0 )
operator delete(v221[0]);
SetGroupIDLayer::updateOrderChannelLabel(a1);
v153 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v153->setScale)(v153, 0.8);
v258.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onNextFreeOrderChannel;
v258.adj = 0;
v154 = CCMenuItemSpriteExtra::create(v153, nullptr, a1, v258);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v154);
cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const cocos2d::CCPoint *)&v228);
v155.n128_u32[0] = -1030356992;
v156.n128_u32[0] = 0;
sub_100022980(v155, v156, &v219);
*(float32x2_t *)&v157 = sub_1000229DC(&v220, &v219, &v225);
((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v154->setPosition)(v154, &v225, v157);
}
SetGroupIDLayer::updateGroupIDLabel(a1);
SetGroupIDLayer::updateEditorLabel(a1);
SetGroupIDLayer::updateEditorLabel2(a1);
SetGroupIDLayer::updateZOrderLabel(a1);
SetGroupIDLayer::updateZLayerButtons(a1);
SetGroupIDLayer::updateGroupIDButtons(a1);
v158 = a1->m_buttonMenu;
v159.n128_f32[0] = (float)(v243 * 0.5) + 217.0;
v160.n128_f32[0] = (float)(v244 * 0.5) + 142.0;
sub_100022980(v159, v160, &v228);
cocos2d::CCNode::convertToNodeSpace(v158, (const cocos2d::CCPoint *)&v228);
v161 = ButtonSprite::create_1("Copy", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0);
v162 = ButtonSprite::create_1("Paste", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0);
v163 = ButtonSprite::create_1("Extra", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0);
v164 = ButtonSprite::create_1("Extra2", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0);
v165 = ButtonSprite::create_1("Anim", 20, 0, 0.5, 1, "goldFont.fnt", "GJ_button_04.png", 25.0);
v259.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onCopy;
v259.adj = 0;
v166 = CCMenuItemSpriteExtra::create(v161, nullptr, a1, v259);
v260.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onPaste;
v260.adj = 0;
v167 = CCMenuItemSpriteExtra::create(v162, nullptr, a1, v260);
v261.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onExtra;
v261.adj = 0;
v168 = CCMenuItemSpriteExtra::create(v163, nullptr, a1, v261);
v262.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onExtra2;
v262.adj = 0;
v169 = CCMenuItemSpriteExtra::create(v164, nullptr, a1, v262);
v263.ptr = (void (__cdecl *)(cocos2d::CCObject *))SetGroupIDLayer::onAnim;
v263.adj = 0;
v170 = CCMenuItemSpriteExtra::create(v165, nullptr, a1, v263);
if ( v115 )
{
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v166);
((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *))v166->setPosition)(v166, &v241);
LABEL_78:
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v167);
v172.n128_f32[0] = sub_1000229B8((__int64 *)&v228, (__int64 *)&v241);
if ( v115 )
{
v172.n128_u32[0] = 0;
v173.n128_u32[0] = -31.0;
sub_100022980(v172, v173, &v220);
sub_1000229DC(&v228, &v220, &v225);
v172.n128_f64[0] = sub_1000229D0(&v228, (double *)&v225);
}
((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, __n128))v167->setPosition)(v167, &v228, v172);
goto LABEL_81;
}
v171 = GameManager::sharedState();
if ( LevelEditorLayer::canPasteState(v171->m_levelEditorLayer) )
goto LABEL_78;
LABEL_81:
v174 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v168);
v175.n128_u32[0] = -1032323072;
v174.n128_u32[0] = 0;
sub_100022980(v174, v175, &v225);
*(float32x2_t *)&v176 = sub_1000229DC(&v241, &v225, &v228);
((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v168->setPosition)(v168, &v228, v176);
v177 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v169);
v178.n128_u32[0] = -1027997696;
v177.n128_u32[0] = 0;
sub_100022980(v177, v178, &v225);
*(float32x2_t *)&v179 = sub_1000229DC(&v241, &v225, &v228);
((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v169->setPosition)(v169, &v228, v179);
v180 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(
a1->m_buttonMenu,
v170);
v181.n128_u32[0] = -1023934464;
v180.n128_u32[0] = 0;
sub_100022980(v180, v181, &v225);
*(float32x2_t *)&v182 = sub_1000229DC(&v241, &v225, &v228);
v183 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v170->setPosition)(v170, &v228, v182);
v183.n128_u32[0] = 0;
v184.n128_u32[0] = 2.0;
sub_100022980(v183, v184, &v228);
v185.n128_f32[0] = (float)(v243 * 0.5) + 217.0;
v186.n128_f32[0] = (float)((float)(v244 * 0.5) + 142.0) + -164.0;
sub_100022980(v185, v186, &v225);
if ( v115 )
{
if ( v115->m_classType == Effect && GameManager::sharedState()->m_levelEditorLayer )
{
sub_100009900(v217, "Preview");
m_pobTexture_low = LOBYTE(v115[1].m_pobTexture);
v188 = a1->m_buttonMenu;
v189.n128_u32[0] = 0;
v190.n128_u64[0] = 0x8000000080000000LL;
sub_100022980(v189, v190, &v219);
sub_1000229DC(&v225, &v219, &v220);
sub_1000229B8(&v216, (__int64 *)&v228);
LOBYTE(v204) = 1;
GameToolbox::createToggleButton(
v217,
SetGroupIDLayer::onToggleGuide,
0,
m_pobTexture_low,
v188,
&v220,
a1,
a1,
0.7,
0.3,
80.0,
&v216,
"goldFont.fnt",
v204,
0);
if ( v218 < 0 )
operator delete(v217[0]);
m_playbackObject = GameManager::sharedState()->m_levelEditorLayer->m_playbackObject;
sub_100009900(v214, "Playback");
v192 = a1->m_buttonMenu;
v193.n128_u32[0] = -1038614528;
v194.n128_u32[0] = 0;
sub_100022980(v194, v193, &v219);
sub_1000229DC(&v225, &v219, &v220);
sub_1000229B8(&v216, (__int64 *)&v228);
LOBYTE(v205) = 1;
GameToolbox::createToggleButton(
v214,
SetGroupIDLayer::onToggleSelectedOrder,
0,
m_playbackObject == v115,
v192,
&v220,
a1,
a1,
0.7,
0.3,
80.0,
&v216,
"goldFont.fnt",
v205,
0);
if ( v215 < 0 )
operator delete(v214[0]);
m_traceOutObject = GameManager::sharedState()->m_levelEditorLayer->m_traceOutObject;
sub_100009900(v212, "Trace Out");
v196 = a1->m_buttonMenu;
v197.n128_u32[0] = -1030225920;
v198.n128_u32[0] = 0;
sub_100022980(v198, v197, &v219);
sub_1000229DC(&v225, &v219, &v220);
sub_1000229B8(&v216, (__int64 *)&v228);
LOBYTE(v206) = 1;
GameToolbox::createToggleButton(
v212,
SetGroupIDLayer::onToggleTraceOut,
0,
m_traceOutObject == v115,
v196,
&v220,
a1,
a1,
0.7,
0.3,
80.0,
&v216,
"goldFont.fnt",
v206,
0);
if ( v213 < 0 )
operator delete(v212[0]);
}
if ( GameManager::sharedState()->m_levelEditorLayer )
{
m_traceInObject = GameManager::sharedState()->m_levelEditorLayer->m_traceInObject;
sub_100009900(v210, "Trace In");
v200 = a1->m_buttonMenu;
v201.n128_u32[0] = -1025245184;
v202.n128_u32[0] = 0;
sub_100022980(v202, v201, &v219);
sub_1000229DC(&v225, &v219, &v220);
sub_1000229B8(&v216, (__int64 *)&v228);
LOBYTE(v204) = 1;
GameToolbox::createToggleButton(
v210,
SetGroupIDLayer::onToggleTraceIn,
0,
m_traceInObject == v115,
v200,
&v220,
a1,
a1,
0.7,
0.3,
80.0,
&v216,
"goldFont.fnt",
v204,
0);
if ( v211 < 0 )
operator delete(v210[0]);
}
}
a1->m_editorLayerEdited = 0;
if ( v227 < 0 )
operator delete(v226[0]);
LOBYTE(v6) = v207;
return v6;
}