// // SetupPulsePopup::init from 0x140437700 to 0x14043aaf8 (13304 bytes) // // 2 xrefs: // > SetupPulsePopup::create @ 0x1404376bc // > @ 0x1406d9e54 // // 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 // // Hidden C++ exception states: #wind=14 bool SetupPulsePopup::init(SetupPulsePopup *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { bool result; // al __int64 v5; // rcx cocos2d::CCArray *v6; // rax __int64 v7; // rcx cocos2d::CCArray *v8; // rax __int64 v9; // rcx cocos2d::CCDirector *v10; // rax struct cocos2d::CCLabelBMFont *v11; // rdi float v12; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v13; // rbx const cocos2d::CCPoint *v14; // rax ButtonSprite *v15; // rbx CCMenuItemSpriteExtra *m_groupButton; // r15 CCMenuItemSpriteExtra *v17; // rax float v18; // xmm0_4 double v19; // xmm0_8 struct cocos2d::CCLabelBMFont *v20; // rdi float v21; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v22; // rbx const cocos2d::CCPoint *v23; // rax struct cocos2d::CCRect *v24; // rax struct cocos2d::extension::CCScale9Sprite *v25; // rdi float v26; // xmm0_4 const char *v27; // r9 const char *v28; // rsi CCTextInputNode *v29; // rax CCTextInputNode_vtbl *v30; // rbx __int64 v31; // rax CCTextInputNode *m_fadeInInput; // rcx CCTextInputNode *v33; // rcx std::string *p_m_allowedChars; // rcx CCTextInputNode *v35; // rcx CCTextInputNode *v36; // rcx TextInputDelegate *v37; // r13 const char *v38; // r8 Slider *v39; // rax __int64 v40; // rdx float v41; // xmm0_4 SliderThumb *m_thumb; // rcx float m_fadeInTime; // xmm0_4 float v44; // xmm1_4 Slider *m_fadeInSlider; // rdi float Value; // xmm0_4 float m_width; // xmm3_4 cocos2d::CCSprite_vtbl *v48; // rbx double v49; // xmm0_8 const cocos2d::CCRect *v50; // rax struct cocos2d::CCLabelBMFont *v51; // rdi float v52; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v53; // rbx const cocos2d::CCPoint *v54; // rax struct cocos2d::CCRect *v55; // rax struct cocos2d::extension::CCScale9Sprite *v56; // rdi float v57; // xmm0_4 const char *v58; // r9 CCTextInputNode *v59; // rax CCTextInputNode_vtbl *v60; // rbx __int64 v61; // rax CCTextInputNode *m_holdInput; // rcx CCTextInputNode *v63; // rcx std::string *v64; // rcx CCTextInputNode *v65; // rcx CCTextInputNode *v66; // rcx const char *v67; // r8 Slider *v68; // rax __int64 v69; // rdx float v70; // xmm0_4 SliderThumb *v71; // rcx float m_holdTime; // xmm0_4 float v73; // xmm1_4 Slider *m_holdSlider; // rdi float v75; // xmm0_4 float v76; // xmm3_4 cocos2d::CCSprite_vtbl *v77; // rbx double v78; // xmm0_8 const cocos2d::CCRect *v79; // rax struct cocos2d::CCLabelBMFont *v80; // rdi float v81; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v82; // rbx const cocos2d::CCPoint *v83; // rax struct cocos2d::CCRect *v84; // rax struct cocos2d::extension::CCScale9Sprite *v85; // rdi float v86; // xmm0_4 const char *v87; // r9 CCTextInputNode *v88; // rax CCTextInputNode_vtbl *v89; // rbx __int64 v90; // rax CCTextInputNode *m_fadeOutInput; // rcx CCTextInputNode *v92; // rcx std::string *v93; // rcx CCTextInputNode *v94; // rcx CCTextInputNode *v95; // rcx const char *v96; // r8 Slider *v97; // rax __int64 v98; // rdx float v99; // xmm0_4 SliderThumb *v100; // rcx __int64 v101; // r12 float m_fadeOutTime; // xmm0_4 float v103; // xmm1_4 Slider *m_fadeOutSlider; // rdi float v105; // xmm0_4 float v106; // xmm3_4 cocos2d::CCSprite_vtbl *v107; // rbx double v108; // xmm0_8 const cocos2d::CCRect *v109; // rax struct cocos2d::CCLabelBMFont *v110; // rbx float v111; // xmm0_4 ButtonSprite *v112; // rbx CCMenuItemSpriteExtra *v113; // rax ButtonSprite *v114; // rbx CCMenuItemSpriteExtra *v115; // rax float v116; // xmm0_4 float v117; // xmm0_4 cocos2d::CCLabelBMFont *v118; // rax float v119; // xmm0_4 float v120; // xmm0_4 struct cocos2d::CCRect *v121; // rax struct cocos2d::extension::CCScale9Sprite *v122; // rdi __int64 v123; // rdx const char *v124; // r9 CCTextInputNode *v125; // rax CCTextInputNode *m_idInput; // rcx CCTextInputNode *v127; // rcx std::string *v128; // rcx CCTextInputNode *v129; // rcx CCTextInputNode *v130; // rcx struct cocos2d::CCSprite *v131; // rbx cocos2d::CCNode *v132; // rbx float v133; // xmm0_4 struct cocos2d::CCSprite *v134; // rbx cocos2d::CCNode *v135; // rbx float v136; // xmm0_4 struct cocos2d::CCSprite *v137; // rax CCMenuItemSpriteExtra *v138; // rax float v139; // xmm0_4 struct cocos2d::CCLabelBMFont *v140; // rdi float v141; // xmm0_4 float v142; // xmm0_4 __int64 v143; // rax ButtonSprite *v144; // rbx CCMenuItemSpriteExtra *v145; // rax ButtonSprite *v146; // rbx CCMenuItemSpriteExtra *v147; // rax float v148; // xmm0_4 float v149; // xmm0_4 float v150; // xmm0_4 float *v151; // rax float *v152; // rbx struct cocos2d::CCPoint v153; // rax double v154; // xmm0_8 float *v155; // rax double v156; // xmm0_8 float *v157; // rax float *v158; // rbx struct cocos2d::CCPoint v159; // rax double v160; // xmm0_8 float *v161; // rax float *v162; // rbx double v163; // xmm0_8 struct cocos2d::CCPoint v164; // rax float *v165; // rax float *v166; // rbx struct cocos2d::CCPoint v167; // rax double v168; // xmm0_8 float *v169; // rax double v170; // xmm0_8 float *v171; // rax cocos2d::CCLabelBMFont *m_staticHSVLabel; // rdx struct cocos2d::CCRect *v173; // rax struct cocos2d::extension::CCScale9Sprite *v174; // rdi __int64 v175; // rdx cocos2d::extension::CCScale9Sprite_vtbl *v176; // rbx const cocos2d::CCSize *v177; // rax float v178; // xmm0_4 cocos2d::extension::CCScale9Sprite_vtbl *v179; // rbx const cocos2d::CCPoint *v180; // rax cocos2d::extension::CCControlColourPicker *v181; // rax float v182; // xmm0_4 cocos2d::extension::CCControlColourPicker_vtbl *v183; // rbx const cocos2d::CCPoint *v184; // rax ButtonSprite *v185; // rdi ButtonSprite *v186; // rbx CCMenuItemSpriteExtra *v187; // rsi CCMenuItemSpriteExtra *v188; // rdi float v189; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v190; // rbx struct cocos2d::CCPoint v191; // rax float v192; // xmm0_4 __int64 v193; // rax cocos2d::CCSprite *v194; // rax float v195; // xmm0_4 cocos2d::CCSprite_vtbl *v196; // rbx const cocos2d::CCPoint *v197; // rax cocos2d::CCSprite *v198; // rax float v199; // xmm0_4 const cocos2d::CCPoint *v200; // rax double v201; // xmm0_8 int v202; // esi int v203; // eax const char *v204; // rcx struct cocos2d::CCLabelBMFont *v205; // rdi float v206; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v207; // rbx double v208; // xmm0_8 const cocos2d::CCPoint *v209; // rax int v210; // eax struct cocos2d::CCRect *v211; // rax struct cocos2d::extension::CCScale9Sprite *v212; // rdi __int64 v213; // rdx const char *v214; // r9 int v215; // eax CCTextInputNode *v216; // rbx int v217; // eax __int64 *v218; // rdx size_t v219; // r8 void **v220; // rdx bool v221; // dl ConfigureHSVWidget *v222; // rax float v223; // xmm0_4 ConfigureHSVWidget_vtbl *v224; // rbx __int64 v225; // rax double v226; // xmm0_8 __int64 v227; // rax struct cocos2d::CCLabelBMFont *v228; // rbx double v229; // xmm0_8 struct cocos2d::CCRect *v230; // rax struct cocos2d::extension::CCScale9Sprite *v231; // rdi __int64 v232; // rdx const char *v233; // r9 CCTextInputNode *v234; // rax CCTextInputNode *m_colorIDInput; // rcx CCTextInputNode *v236; // rcx std::string *v237; // rcx CCTextInputNode *v238; // rcx CCTextInputNode *v239; // rcx struct cocos2d::CCPoint v240; // rax struct cocos2d::CCSprite *v241; // rdi CCMenuItemSpriteExtra *v242; // rax cocos2d::CCNode *v243; // rbx float v244; // xmm0_4 struct cocos2d::CCSprite *v245; // rdi CCMenuItemSpriteExtra *v246; // rax cocos2d::CCNode *v247; // rbx float v248; // xmm0_4 struct cocos2d::CCSprite *v249; // rbx CCMenuItemSpriteExtra *v250; // rdi float v251; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v252; // rbx struct cocos2d::CCPoint v253; // rax _QWORD *v254; // rdx _OWORD *v255; // rcx const char *v256; // rax char *v257; // rdi __int64 v258; // rbx struct cocos2d::CCPoint v259; // rax CCMenuItemSpriteExtra *m_hsvButton; // rdx int m_pulseMode; // eax int m_pulseTargetType; // eax int v263; // [rsp+28h] [rbp-E0h] int v264; // [rsp+28h] [rbp-E0h] int v265; // [rsp+28h] [rbp-E0h] int v266; // [rsp+28h] [rbp-E0h] int v267; // [rsp+28h] [rbp-E0h] __int16 v268; // [rsp+88h] [rbp-80h] BYREF char v269; // [rsp+8Ah] [rbp-7Eh] cocos2d::CCPoint v270; // [rsp+90h] [rbp-78h] BYREF struct cocos2d::CCPoint v271[2]; // [rsp+98h] [rbp-70h] BYREF __int16 v272; // [rsp+A8h] [rbp-60h] BYREF GLubyte b; // [rsp+AAh] [rbp-5Eh] float v274; // [rsp+B8h] [rbp-50h] cocos2d::CCRect v275; // [rsp+C0h] [rbp-48h] BYREF __int64 v276; // [rsp+D0h] [rbp-38h] __int64 v277; // [rsp+D8h] [rbp-30h] char v278[8]; // [rsp+E0h] [rbp-28h] BYREF ButtonSprite *v279; // [rsp+E8h] [rbp-20h] BYREF cocos2d::CCRect v280; // [rsp+F0h] [rbp-18h] BYREF cocos2d::CCPoint v281; // [rsp+100h] [rbp-8h] BYREF cocos2d::CCPoint v282; // [rsp+108h] [rbp+0h] BYREF __int16 v283; // [rsp+110h] [rbp+8h] BYREF char v284; // [rsp+112h] [rbp+Ah] struct cocos2d::CCPoint v285; // [rsp+118h] [rbp+10h] BYREF cocos2d::CCPoint v286; // [rsp+120h] [rbp+18h] BYREF cocos2d::CCSize v287; // [rsp+130h] [rbp+28h] BYREF cocos2d::CCPoint v288; // [rsp+138h] [rbp+30h] BYREF char v289[8]; // [rsp+140h] [rbp+38h] BYREF cocos2d::CCSize v290; // [rsp+148h] [rbp+40h] BYREF struct cocos2d::CCPoint v291; // [rsp+150h] [rbp+48h] BYREF char Src[12]; // [rsp+158h] [rbp+50h] BYREF int v293; // [rsp+164h] [rbp+5Ch] __int64 v294; // [rsp+168h] [rbp+60h] __int64 v295; // [rsp+170h] [rbp+68h] _DWORD v296[4]; // [rsp+178h] [rbp+70h] BYREF __int64 v297; // [rsp+188h] [rbp+80h] __int64 v298; // [rsp+190h] [rbp+88h] _DWORD v299[4]; // [rsp+198h] [rbp+90h] BYREF __int64 v300; // [rsp+1A8h] [rbp+A0h] __int64 v301; // [rsp+1B0h] [rbp+A8h] struct cocos2d::CCPoint v302; // [rsp+1B8h] [rbp+B0h] BYREF struct cocos2d::CCPoint v303; // [rsp+1C0h] [rbp+B8h] BYREF char v304[8]; // [rsp+1C8h] [rbp+C0h] BYREF void **v305; // [rsp+1D0h] [rbp+C8h] _QWORD v306[4]; // [rsp+1D8h] [rbp+D0h] BYREF void *v307[2]; // [rsp+1F8h] [rbp+F0h] BYREF size_t Size; // [rsp+208h] [rbp+100h] unsigned __int64 v309; // [rsp+210h] [rbp+108h] _QWORD v310[4]; // [rsp+218h] [rbp+110h] BYREF cocos2d::ccHSVValue m_hsv; // [rsp+238h] [rbp+130h] BYREF __int64 v312; // [rsp+248h] [rbp+140h] __int64 v313; // [rsp+250h] [rbp+148h] char v314[8]; // [rsp+258h] [rbp+150h] BYREF cocos2d::CCRect v315; // [rsp+260h] [rbp+158h] BYREF cocos2d::CCRect v316[11]; // [rsp+270h] [rbp+168h] BYREF _BYTE v317[3]; // [rsp+370h] [rbp+268h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 450.0, 310.0, 1); if ( !result ) return result; a1->m_modesInitializing = 1; v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); a1->m_colorObjects = v6; cocos2d::CCObject::retain(v6); v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); a1->m_hsvObjects = v8; cocos2d::CCObject::retain(v8); a1->m_colorInitializing = 1; a1->determineStartValues(a1); v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(v10); v11 = cocos2d::CCLabelBMFont::create("Setup Pulse Effect", "goldFont.fnt"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v11); v12 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *))v11->setScale_0)(v11); v13 = v11->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v12, (float)(v274 * 0.5) - 65.0); v13->setPosition_0(v11, v14); v271[0] = (struct cocos2d::CCPoint)operator new(0x2C0u); v15 = ButtonSprite::ButtonSprite(*(ButtonSprite **)v271); m_groupButton = nullptr; if ( v15 ) { if ( ButtonSprite::init_1(v15, "OK", 40, 0, 0.80000001, 1, "goldFont.fnt", "GJ_button_01.png", 30.0) ) { cocos2d::CCObject::autorelease(v15); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v15->~ButtonSprite)(v15, 1); v15 = nullptr; } } v17 = CCMenuItemSpriteExtra::create(v15, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_14009BEF0); v18 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v17); v268 = 15468; qmemcpy(v317, "l<$", sizeof(v317)); v19 = cocos2d::CCPoint::CCPoint(v18, -10.0); cocos2d::CCPoint::CCPoint(*(float *)&v19, (float)(v274 * 0.5) - 29.0); v20 = cocos2d::CCLabelBMFont::create("Fade In: ", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v20->setScale_0)(v20); cocos2d::CCPoint::operator+(v278, &v270); v21 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, cocos2d::CCPoint *))v20->setPosition_0)(v20, &v270); v22 = v20->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v21, 1.0); v22->setAnchorPoint(v20, v23); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v20, 10); cocos2d::CCRect::CCRect(&v315, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v280, &v315); v25 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v24); v25->setColor(&v25->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v317); cocos2d::CCSize::CCSize(&v287, 60.0, 20.0); v25->setContentSize(v25, &v287); v26 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v25, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v26, 40.0); cocos2d::CCPoint::operator+(v278, &v270); v25->setPosition_0(v25, &v270); v28 = "Num"; if ( a1->m_fadeInTime == -0.1 ) v28 = "Mixed"; v29 = CCTextInputNode::create(50.0, 20.0, v28, v27, v263, (const char *)&qword_14052A4D8); a1->m_fadeInInput = v29; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v29, 20); v30 = a1->m_fadeInInput->__vftable; v31 = (__int64)v25->getPosition_0(v25); v30->setPosition_0(a1->m_fadeInInput, (const cocos2d::CCPoint *)v31); m_fadeInInput = a1->m_fadeInInput; m_fadeInInput->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(m_fadeInInput); v33 = a1->m_fadeInInput; v33->m_maxLabelWidth = 50.0; CCTextInputNode::refreshLabel(v33); a1->m_fadeInInput->m_textField->setVisible(a1->m_fadeInInput->m_textField, 0); a1->m_fadeInInput->m_maxLabelLength = 4; v293 = 0; v294 = 11; v295 = 15; strcpy(Src, "0123456789."); v271[0] = (struct cocos2d::CCPoint)Src; p_m_allowedChars = &a1->m_fadeInInput->m_allowedChars; if ( p_m_allowedChars != (std::string *)Src ) sub_14003CCE0((void **)p_m_allowedChars, Src, 0xBu); sub_14003A830((__int64)Src); v268 = -21896; v35 = a1->m_fadeInInput; *(_WORD *)&v35->m_placeholderColor.r = -21896; v35->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v35); v36 = a1->m_fadeInInput; v36->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v36); v37 = &a1->TextInputDelegate; a1->m_fadeInInput->m_delegate = &a1->TextInputDelegate; a1->m_fadeInInput->setTag(a1->m_fadeInInput, 8); a1->m_fadeInInput->m_numberInput = 1; v39 = Slider::create( a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::sliderChanged, v38, "slidergroove.png", "sliderthumb.png", "sliderthumbsel.png", 0.80000001); a1->m_fadeInSlider = v39; a1->m_mainLayer->addChild_1(a1->m_mainLayer, v39); LOBYTE(v40) = 1; v41 = ((float (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_fadeInSlider->m_sliderBar->setVisible)( a1->m_fadeInSlider->m_sliderBar, v40); cocos2d::CCPoint::CCPoint(v41, -96.0); cocos2d::CCPoint::operator+(v278, &v270); a1->m_fadeInSlider->setPosition_0(a1->m_fadeInSlider, &v270); m_thumb = a1->m_fadeInSlider->m_touchLogic->m_thumb; m_thumb->setTag(m_thumb, 1); m_fadeInTime = a1->m_fadeInTime; if ( m_fadeInTime == -0.1 || (v44 = fminf(1.0, m_fadeInTime / 10.0), v44 < 0.0) ) v44 = 0.0; m_fadeInSlider = a1->m_fadeInSlider; SliderThumb::setValue(m_fadeInSlider->m_touchLogic->m_thumb, v44); Value = SliderThumb::getValue(m_fadeInSlider->m_touchLogic->m_thumb); m_width = m_fadeInSlider->m_width; if ( (float)(m_width * Value) <= m_width ) m_width = Value * m_width; v48 = m_fadeInSlider->m_sliderBar->__vftable; v49 = cocos2d::CCRect::CCRect(&v280, 0.0, 0.0, m_width, m_fadeInSlider->m_height); v48->setTextureRect_0(m_fadeInSlider->m_sliderBar, v50); SetupPulsePopup::updateFadeInLabel(a1, 0); cocos2d::CCPoint::CCPoint(*(float *)&v49, 0.0); cocos2d::CCPoint::operator+(v278, &v270); cocos2d::CCPoint::operator=(v278, &v270); v51 = cocos2d::CCLabelBMFont::create("Hold: ", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v51->setScale_0)(v51); cocos2d::CCPoint::operator+(v278, &v270); v52 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, cocos2d::CCPoint *))v51->setPosition_0)(v51, &v270); v53 = v51->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v52, 1.0); v53->setAnchorPoint(v51, v54); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v51, 10); cocos2d::CCRect::CCRect(&v280, &v315); v56 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v55); v56->setColor(&v56->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v317); v56->setContentSize(v56, &v287); v57 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v56, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v57, 40.0); cocos2d::CCPoint::operator+(v278, &v270); v56->setPosition_0(v56, &v270); if ( a1->m_holdTime == -0.1 ) v28 = "Mixed"; v59 = CCTextInputNode::create(50.0, 20.0, v28, v58, v264, (const char *)&qword_14052A4D8); a1->m_holdInput = v59; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v59, 20); v60 = a1->m_holdInput->__vftable; v61 = (__int64)v56->getPosition_0(v56); v60->setPosition_0(a1->m_holdInput, (const cocos2d::CCPoint *)v61); m_holdInput = a1->m_holdInput; m_holdInput->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(m_holdInput); v63 = a1->m_holdInput; v63->m_maxLabelWidth = 50.0; CCTextInputNode::refreshLabel(v63); a1->m_holdInput->m_textField->setVisible(a1->m_holdInput->m_textField, 0); a1->m_holdInput->m_maxLabelLength = 4; v296[3] = 0; v297 = 11; v298 = 15; strcpy((char *)v296, "0123456789."); v271[0] = (struct cocos2d::CCPoint)v296; v64 = &a1->m_holdInput->m_allowedChars; if ( v64 != (std::string *)v296 ) sub_14003CCE0((void **)v64, v296, 0xBu); sub_14003A830((__int64)v296); v268 = -21896; v65 = a1->m_holdInput; *(_WORD *)&v65->m_placeholderColor.r = -21896; v65->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v65); v66 = a1->m_holdInput; v66->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v66); a1->m_holdInput->m_delegate = v37; a1->m_holdInput->setTag(a1->m_holdInput, 9); a1->m_holdInput->m_numberInput = 1; v68 = Slider::create( a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::sliderChanged, v67, "slidergroove.png", "sliderthumb.png", "sliderthumbsel.png", 0.80000001); a1->m_holdSlider = v68; a1->m_mainLayer->addChild_1(a1->m_mainLayer, v68); LOBYTE(v69) = 1; v70 = ((float (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_holdSlider->m_sliderBar->setVisible)( a1->m_holdSlider->m_sliderBar, v69); cocos2d::CCPoint::CCPoint(v70, -96.0); cocos2d::CCPoint::operator+(v278, &v270); a1->m_holdSlider->setPosition_0(a1->m_holdSlider, &v270); v71 = a1->m_holdSlider->m_touchLogic->m_thumb; v71->setTag(v71, 2); m_holdTime = a1->m_holdTime; if ( m_holdTime == -0.1 || (v73 = fminf(1.0, m_holdTime / 10.0), v73 < 0.0) ) v73 = 0.0; m_holdSlider = a1->m_holdSlider; SliderThumb::setValue(m_holdSlider->m_touchLogic->m_thumb, v73); v75 = SliderThumb::getValue(m_holdSlider->m_touchLogic->m_thumb); v76 = m_holdSlider->m_width; if ( (float)(v76 * v75) <= v76 ) v76 = v76 * v75; v77 = m_holdSlider->m_sliderBar->__vftable; v78 = cocos2d::CCRect::CCRect(&v280, 0.0, 0.0, v76, m_holdSlider->m_height); v77->setTextureRect_0(m_holdSlider->m_sliderBar, v79); SetupPulsePopup::updateHoldLabel(a1, 0); cocos2d::CCPoint::CCPoint(*(float *)&v78, 0.0); cocos2d::CCPoint::operator+(v278, &v270); cocos2d::CCPoint::operator=(v278, &v270); v80 = cocos2d::CCLabelBMFont::create("Fade Out: ", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v80->setScale_0)(v80); cocos2d::CCPoint::operator+(v278, &v270); v81 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, cocos2d::CCPoint *))v80->setPosition_0)(v80, &v270); v82 = v80->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v81, 1.0); v82->setAnchorPoint(v80, v83); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v80, 10); cocos2d::CCRect::CCRect(&v280, &v315); v85 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v84); v85->setColor(&v85->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v317); v85->setContentSize(v85, &v287); v86 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v85, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v86, 40.0); cocos2d::CCPoint::operator+(v278, &v270); v85->setPosition_0(v85, &v270); if ( a1->m_fadeOutTime == -0.1 ) v28 = "Mixed"; v88 = CCTextInputNode::create(50.0, 20.0, v28, v87, v265, (const char *)&qword_14052A4D8); a1->m_fadeOutInput = v88; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v88, 20); v89 = a1->m_fadeOutInput->__vftable; v90 = (__int64)v85->getPosition_0(v85); v89->setPosition_0(a1->m_fadeOutInput, (const cocos2d::CCPoint *)v90); m_fadeOutInput = a1->m_fadeOutInput; m_fadeOutInput->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(m_fadeOutInput); v92 = a1->m_fadeOutInput; v92->m_maxLabelWidth = 50.0; CCTextInputNode::refreshLabel(v92); a1->m_fadeOutInput->m_textField->setVisible(a1->m_fadeOutInput->m_textField, 0); a1->m_fadeOutInput->m_maxLabelLength = 4; v299[3] = 0; v300 = 11; v301 = 15; strcpy((char *)v299, "0123456789."); v271[0] = (struct cocos2d::CCPoint)v299; v93 = &a1->m_fadeOutInput->m_allowedChars; if ( v93 != (std::string *)v299 ) sub_14003CCE0((void **)v93, v299, 0xBu); sub_14003A830((__int64)v299); v268 = -21896; v94 = a1->m_fadeOutInput; *(_WORD *)&v94->m_placeholderColor.r = -21896; v94->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v94); v95 = a1->m_fadeOutInput; v95->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v95); a1->m_fadeOutInput->m_delegate = v37; a1->m_fadeOutInput->setTag(a1->m_fadeOutInput, 10); a1->m_fadeOutInput->m_numberInput = 1; v97 = Slider::create( a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::sliderChanged, v96, "slidergroove.png", "sliderthumb.png", "sliderthumbsel.png", 0.80000001); a1->m_fadeOutSlider = v97; a1->m_mainLayer->addChild_1(a1->m_mainLayer, v97); LOBYTE(v98) = 1; v99 = ((float (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_fadeOutSlider->m_sliderBar->setVisible)( a1->m_fadeOutSlider->m_sliderBar, v98); cocos2d::CCPoint::CCPoint(v99, -96.0); cocos2d::CCPoint::operator+(v278, &v270); a1->m_fadeOutSlider->setPosition_0(a1->m_fadeOutSlider, &v270); v100 = a1->m_fadeOutSlider->m_touchLogic->m_thumb; v101 = 3; v100->setTag(v100, 3); m_fadeOutTime = a1->m_fadeOutTime; if ( m_fadeOutTime == -0.1 || (v103 = fminf(1.0, m_fadeOutTime / 10.0), v103 < 0.0) ) v103 = 0.0; m_fadeOutSlider = a1->m_fadeOutSlider; SliderThumb::setValue(m_fadeOutSlider->m_touchLogic->m_thumb, v103); v105 = SliderThumb::getValue(m_fadeOutSlider->m_touchLogic->m_thumb); v106 = m_fadeOutSlider->m_width; if ( (float)(v106 * v105) <= v106 ) v106 = v105 * v106; v107 = m_fadeOutSlider->m_sliderBar->__vftable; v108 = cocos2d::CCRect::CCRect(&v280, 0.0, 0.0, v106, m_fadeOutSlider->m_height); v107->setTextureRect_0(m_fadeOutSlider->m_sliderBar, v109); SetupPulsePopup::updateFadeOutLabel(a1, 0); cocos2d::CCPoint::CCPoint(*(float *)&v108, (float)(v274 * 0.5) + 145.0); cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v302); v110 = cocos2d::CCLabelBMFont::create("Target Type", "goldFont.fnt"); v111 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v110); cocos2d::CCPoint::CCPoint(v111, 0.0); cocos2d::CCPoint::operator+(&v281, &v270); v110->setPosition_0(v110, &v270); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v110->setScale_0)(v110); v271[0] = (struct cocos2d::CCPoint)operator new(0x2C0u); v112 = ButtonSprite::ButtonSprite(*(ButtonSprite **)v271); if ( v112 ) { if ( ButtonSprite::init_1( v112, "Channel", 45, 0, 0.44999999, 1, (const char *)&qword_14052A4D8, "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v112); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v112->~ButtonSprite)(v112, 1); v112 = nullptr; } } v113 = CCMenuItemSpriteExtra::create( v112, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onSelectTargetMode); a1->m_channelButton = v113; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v113); a1->m_channelButton->setTag(a1->m_channelButton, 0); v271[0] = (struct cocos2d::CCPoint)operator new(0x2C0u); v114 = ButtonSprite::ButtonSprite(*(ButtonSprite **)v271); if ( v114 ) { if ( ButtonSprite::init_1( v114, "Group", 45, 0, 0.44999999, 1, (const char *)&qword_14052A4D8, "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v114); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v114->~ButtonSprite)(v114, 1); v114 = nullptr; } } v115 = CCMenuItemSpriteExtra::create( v114, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onSelectTargetMode); a1->m_groupButton = v115; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v115); v116 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_groupButton->setTag)(a1->m_groupButton, 1); cocos2d::CCPoint::CCPoint(v116, -35.0); cocos2d::CCPoint::operator+(&v302, &v270); v117 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))a1->m_channelButton->setPosition_0)( a1->m_channelButton, &v270); cocos2d::CCPoint::CCPoint(v117, 35.0); cocos2d::CCPoint::operator+(&v302, &v270); a1->m_groupButton->setPosition_0(a1->m_groupButton, &v270); v118 = cocos2d::CCLabelBMFont::create("Channel ID", "goldFont.fnt"); a1->m_idLabel = v118; a1->m_mainLayer->addChild_1(a1->m_mainLayer, v118); v119 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_idLabel->setScale_0)(a1->m_idLabel); cocos2d::CCPoint::CCPoint(v119, 0.0); cocos2d::CCPoint::operator+(&v281, &v270); v120 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::CCPoint *))a1->m_idLabel->setPosition_0)( a1->m_idLabel, &v270); cocos2d::CCPoint::CCPoint(v120, 0.0); cocos2d::CCPoint::operator+(&v281, &v288); cocos2d::CCRect::CCRect(v316, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v280, v316); v122 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v121); LOBYTE(v123) = 100; v122->setOpacity(&v122->cocos2d::CCRGBAProtocol, v123); v268 = 0; v269 = 0; v122->setColor(&v122->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v268); cocos2d::CCSize::CCSize(&v290, 50.0, 30.0); v122->setContentSize(v122, &v290); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v122, -1); v122->setPosition_0(v122, &v288); v125 = CCTextInputNode::create(50.0, 40.0, "Num", v124, v266, (const char *)&qword_14052A4D8); a1->m_idInput = v125; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v125, 20); a1->m_idInput->setPosition_0(a1->m_idInput, &v288); m_idInput = a1->m_idInput; m_idInput->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(m_idInput); v127 = a1->m_idInput; v127->m_maxLabelWidth = 200.0; CCTextInputNode::refreshLabel(v127); a1->m_idInput->m_textField->setVisible(a1->m_idInput->m_textField, 0); a1->m_idInput->m_maxLabelLength = 6; v306[1] = 14648; v306[2] = 10; v306[3] = 15; v306[0] = 0x3736353433323130LL; v271[0] = (struct cocos2d::CCPoint)v306; v128 = &a1->m_idInput->m_allowedChars; if ( v128 != (std::string *)v306 ) sub_14003CCE0((void **)v128, v306, 0xAu); sub_14003A830((__int64)v306); v268 = -21896; v129 = a1->m_idInput; *(_WORD *)&v129->m_placeholderColor.r = -21896; v129->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v129); v130 = a1->m_idInput; v130->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v130); a1->m_idInput->m_delegate = v37; a1->m_idInput->setTag(a1->m_idInput, 4); a1->m_idInput->m_numberInput = 1; cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v285); v131 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v131->setScale_0)(v131); v132 = CCMenuItemSpriteExtra::create( v131, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onUpdateCustomColor); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v132); v133 = ((float (__fastcall *)(cocos2d::CCNode *, __int64))v132->setTag)(v132, 1); cocos2d::CCPoint::CCPoint(v133, -50.0); cocos2d::CCPoint::operator+(&v285, &v270); v132->setPosition_0(v132, &v270); v132[1].m_unknown5 = 0x40000000; v134 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v134->setScale_0)(v134); v135 = CCMenuItemSpriteExtra::create( v134, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onUpdateCustomColor); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v135); v136 = ((float (__fastcall *)(cocos2d::CCNode *, __int64))v135->setTag)(v135, 2); cocos2d::CCPoint::CCPoint(v136, 50.0); cocos2d::CCPoint::operator+(&v285, &v270); v135->setPosition_0(v135, &v270); v135[1].m_unknown5 = 0x40000000; v137 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); v138 = CCMenuItemSpriteExtra::create( v137, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onSelectSpecialTargetID); a1->m_specialColorButton = v138; v139 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v138); cocos2d::CCPoint::CCPoint(v139, 50.0); cocos2d::CCPoint::operator+(&v285, &v270); a1->m_specialColorButton->setPosition_0(a1->m_specialColorButton, &v270); a1->m_specialColorButton->setVisible(a1->m_specialColorButton, 0); v140 = cocos2d::CCLabelBMFont::create("Pulse Mode", "goldFont.fnt"); v141 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v140); cocos2d::CCPoint::CCPoint(v141, 0.0); cocos2d::CCPoint::operator+(&v281, &v270); v140->setPosition_0(v140, &v270); v142 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *))v140->setScale_0)(v140); cocos2d::CCPoint::CCPoint(v142, 0.0); v143 = (__int64)v140->getPosition_0(v140); cocos2d::CCPoint::operator+(v143, &v270); cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v303); v271[0] = (struct cocos2d::CCPoint)operator new(0x2C0u); v144 = ButtonSprite::ButtonSprite(*(ButtonSprite **)v271); if ( v144 ) { if ( ButtonSprite::init_1( v144, "Color", 45, 0, 0.44999999, 1, (const char *)&qword_14052A4D8, "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v144); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v144->~ButtonSprite)(v144, 1); v144 = nullptr; } } v145 = CCMenuItemSpriteExtra::create( v144, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onSelectPulseMode); a1->m_colorButton = v145; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v145); a1->m_colorButton->setTag(a1->m_colorButton, 0); v271[0] = (struct cocos2d::CCPoint)operator new(0x2C0u); v146 = ButtonSprite::ButtonSprite(*(ButtonSprite **)v271); if ( v146 ) { if ( ButtonSprite::init_1( v146, (const char *)&dword_1405DB8E0, 45, 0, 0.44999999, 1, (const char *)&qword_14052A4D8, "GJ_button_04.png", 25.0) ) { cocos2d::CCObject::autorelease(v146); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v146->~ButtonSprite)(v146, 1); v146 = nullptr; } } v147 = CCMenuItemSpriteExtra::create( v146, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onSelectPulseMode); a1->m_hsvButton = v147; a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v147); v148 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_hsvButton->setTag)(a1->m_hsvButton, 1); cocos2d::CCPoint::CCPoint(v148, -35.0); cocos2d::CCPoint::operator+(&v303, &v270); v149 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))a1->m_colorButton->setPosition_0)( a1->m_colorButton, &v270); cocos2d::CCPoint::CCPoint(v149, 35.0); cocos2d::CCPoint::operator+(&v303, &v270); v150 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))a1->m_hsvButton->setPosition_0)( a1->m_hsvButton, &v270); cocos2d::CCPoint::CCPoint(v150, (float)(v274 * 0.5) - 200.0); v271[0] = (struct cocos2d::CCPoint)&v275; v276 = 15; v277 = 15; strcpy((char *)&v275, "Touch\nTriggered"); cocos2d::CCPoint::CCPoint(4.5274743e21, 8.0); v152 = v151; cocos2d::CCPoint::CCPoint(&v282); a1->m_touchToggle = GameToolbox::createToggleButton( (const char *)&v275, (cocos2d::SEL_MenuHandler *)SetupTriggerPopup::onTouchTriggered, a1->m_touchTriggered, a1->m_buttonMenu, v153, a1, a1->m_mainLayer, 0.69999999, 0.30000001, 0.0, v152, (const char *)&qword_14052A4D8, 0, 0, nullptr); v271[0] = (struct cocos2d::CCPoint)&v275; v276 = 15; v277 = 15; strcpy((char *)&v275, "Spawn\nTriggered"); cocos2d::CCPoint::CCPoint(4.5724414e33, 90.0); v154 = cocos2d::CCPoint::operator+(v304, &v270); cocos2d::CCPoint::CCPoint(*(float *)&v154, 8.0); a1->m_spawnToggle = GameToolbox::createToggleButton( (const char *)&v275, (cocos2d::SEL_MenuHandler *)SetupTriggerPopup::onSpawnedByTrigger, a1->m_spawnTriggered, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v270, a1, a1->m_mainLayer, 0.69999999, 0.30000001, 0.0, v155, (const char *)&qword_14052A4D8, 0, 0, nullptr); v279 = (ButtonSprite *)&v275; v276 = 13; v277 = 15; strcpy((char *)&v275, "Multi\nTrigger"); HIWORD(v275.size.height) = 0; v156 = cocos2d::CCPoint::CCPoint(7.4936597e31, 2.0); v158 = v157; cocos2d::CCPoint::CCPoint(*(float *)&v156, (float)(v274 * 0.5) + 60.0); GameToolbox::createToggleButton( (const char *)&v275, (cocos2d::SEL_MenuHandler *)SetupTriggerPopup::onMultiTrigger, a1->m_multiTriggered, a1->m_buttonMenu, v159, a1, a1->m_mainLayer, 0.60000002, 0.25, 0.0, v158, (const char *)&qword_14052A4D8, 1, 0, a1->m_multiTriggerContainer); SetupTriggerPopup::updateMultiTriggerBtn(a1); v279 = (ButtonSprite *)&v275; v276 = 9; v277 = 15; v275.origin = *(cocos2d::CCPoint *)"Exclusive"; v275.size = (cocos2d::CCSize)(unsigned __int8)aExclusive[8]; BYTE1(v275.size.width) = 0; v160 = cocos2d::CCPoint::CCPoint(1.0999765e27, 0.0); v162 = v161; v163 = cocos2d::CCPoint::CCPoint(*(float *)&v160, (float)(v274 * 0.5) + 60.0); GameToolbox::createToggleButton( (const char *)&v275, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onExclusive, a1->m_pulseExclusive, a1->m_buttonMenu, v164, a1, a1->m_mainLayer, 0.69999999, 0.30000001, 0.0, v162, (const char *)&qword_14052A4D8, 1, 0, nullptr); cocos2d::CCPoint::CCPoint(*(float *)&v163, (float)(v274 * 0.5) + 95.0); v279 = (ButtonSprite *)&v275; v275.size = (cocos2d::CCSize)121LL; v276 = 9; v277 = 15; v275.origin = (cocos2d::CCPoint)0x6C6E4F0A6E69614DLL; cocos2d::CCPoint::CCPoint(1.8056909e28, 8.0); v166 = v165; cocos2d::CCPoint::CCPoint(&v270); a1->m_mainOnlyToggler = GameToolbox::createToggleButton( (const char *)&v275, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onGroupMainOnly, a1->m_groupMainOnly, a1->m_buttonMenu, v167, a1, a1->m_mainLayer, 0.69999999, 0.30000001, 0.0, v166, (const char *)&qword_14052A4D8, 0, 1100, nullptr); a1->m_mainOnlyLabel = (cocos2d::CCLabelBMFont *)a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 1100); v279 = (ButtonSprite *)&v275; v276 = 11; v277 = 15; v275.origin = (cocos2d::CCPoint)0x4F0A6C6961746544LL; v275.size = (cocos2d::CCSize)7957614LL; cocos2d::CCPoint::CCPoint(2.8176891e20, 0.0); v168 = cocos2d::CCPoint::operator+(v289, &v270); cocos2d::CCPoint::CCPoint(*(float *)&v168, 8.0); a1->m_secondaryOnlyToggler = GameToolbox::createToggleButton( (const char *)&v275, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onGroupSecondaryOnly, a1->m_groupSecondaryOnly, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v270, a1, a1->m_mainLayer, 0.69999999, 0.30000001, 0.0, v169, (const char *)&qword_14052A4D8, 0, 1200, nullptr); a1->m_secondaryOnlyLabel = (cocos2d::CCLabelBMFont *)a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 1200); v279 = (ButtonSprite *)&v275; v275.size = (cocos2d::CCSize)22099LL; v276 = 10; v277 = 15; v275.origin = (cocos2d::CCPoint)0x480A636974617453LL; cocos2d::CCPoint::CCPoint(7.1449349e31, 68.0); v170 = cocos2d::CCPoint::operator+(v289, &v270); cocos2d::CCPoint::CCPoint(*(float *)&v170, 8.0); a1->m_staticHSVToggler = GameToolbox::createToggleButton( (const char *)&v275, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onHSVLegacyMode, !a1->m_staticHSV, a1->m_buttonMenu, (struct cocos2d::CCPoint)&v270, a1, a1->m_mainLayer, 0.69999999, 0.30000001, 0.0, v171, (const char *)&qword_14052A4D8, 0, 1300, nullptr); a1->m_staticHSVLabel = (cocos2d::CCLabelBMFont *)a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 1300); cocos2d::CCArray::addObject(a1->m_hsvObjects, a1->m_staticHSVToggler); m_staticHSVLabel = a1->m_staticHSVLabel; if ( m_staticHSVLabel ) cocos2d::CCArray::addObject(a1->m_hsvObjects, m_staticHSVLabel); cocos2d::CCRect::CCRect(&v280, 0.0, 0.0, 80.0, 80.0); v174 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v173); LOBYTE(v175) = 75; v174->setOpacity(&v174->cocos2d::CCRGBAProtocol, v175); v176 = v174->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v279, 260.0, 145.0); v176->setContentSize(v174, v177); v178 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v174, 0xFFFFFFFFLL); v179 = v174->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v178, (float)(v274 * 0.5) - 65.0); v179->setPosition_0(v174, v180); cocos2d::CCArray::addObject(a1->m_colorObjects, v174); v181 = (cocos2d::extension::CCControlColourPicker *)cocos2d::extension::CCControlColourPicker::create(); a1->m_colorPicker = v181; v181->m_delegate = &a1->cocos2d::extension::ColorPickerDelegate; v182 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCControlColourPicker *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, a1->m_colorPicker, 2); v183 = a1->m_colorPicker->__vftable; cocos2d::CCPoint::CCPoint(v182, (float)(v274 * 0.5) - 25.0); v183->setPosition_0(a1->m_colorPicker, v184); ((void (__fastcall *)(cocos2d::extension::CCControlColourPicker *))a1->m_colorPicker->setScale_0)(a1->m_colorPicker); cocos2d::CCArray::addObject(a1->m_colorObjects, a1->m_colorPicker); v279 = (ButtonSprite *)operator new(0x2C0u); v185 = ButtonSprite::ButtonSprite(v279); if ( v185 ) { if ( ButtonSprite::init_1(v185, "Copy", 40, 0, 0.60000002, 1, "goldFont.fnt", "GJ_button_04.png", 30.0) ) { cocos2d::CCObject::autorelease(v185); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v185->~ButtonSprite)(v185, 1); v185 = nullptr; } } v279 = (ButtonSprite *)operator new(0x2C0u); v186 = ButtonSprite::ButtonSprite(v279); if ( v186 ) { if ( ButtonSprite::init_1(v186, "Paste", 40, 0, 0.60000002, 1, "goldFont.fnt", "GJ_button_04.png", 30.0) ) { cocos2d::CCObject::autorelease(v186); } else { ((void (__fastcall *)(ButtonSprite *, __int64))v186->~ButtonSprite)(v186, 1); v186 = nullptr; } } v187 = CCMenuItemSpriteExtra::create(v185, nullptr, a1, (cocos2d::SEL_MenuHandler *)ColorSelectPopup::onCopy); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v187); v188 = CCMenuItemSpriteExtra::create(v186, nullptr, a1, (cocos2d::SEL_MenuHandler *)ColorSelectPopup::onPaste); v189 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v188); v190 = v187->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v189, (float)(v274 * 0.5) + 190.0); v191 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, v271); v192 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v190->setPosition_0)(v187, v191); cocos2d::CCPoint::CCPoint(v192, 0.0); v193 = (__int64)v187->getPosition_0(v187); cocos2d::CCPoint::operator+(v193, &v270); v188->setPosition_0(v188, &v270); cocos2d::CCArray::addObject(a1->m_colorObjects, v187); cocos2d::CCArray::addObject(a1->m_colorObjects, v188); v194 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); a1->m_currentColorSprite = v194; ((void (__fastcall *)(cocos2d::CCSprite *))v194->setScale_0)(v194); v195 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, a1->m_currentColorSprite, 5); v196 = a1->m_currentColorSprite->__vftable; cocos2d::CCPoint::CCPoint(v195, (float)((float)(v274 * 0.5) - 135.0) - 35.0); v196->setPosition_0(a1->m_currentColorSprite, v197); cocos2d::CCArray::addObject(a1->m_colorObjects, a1->m_currentColorSprite); a1->m_currentColorSprite->getContentSize(a1->m_currentColorSprite); v198 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); a1->m_originalColorSprite = v198; ((void (__fastcall *)(cocos2d::CCSprite *))v198->setScaleX)(v198); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_originalColorSprite->setScaleY)(a1->m_originalColorSprite); v199 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, a1->m_originalColorSprite, 5); cocos2d::CCPoint::CCPoint(v199, 0.0); v200 = a1->m_currentColorSprite->getPosition_0(a1->m_currentColorSprite); v201 = cocos2d::CCPoint::operator+(v200, &v270); a1->m_originalColorSprite->setPosition_0(a1->m_originalColorSprite, &v270); cocos2d::CCArray::addObject(a1->m_colorObjects, a1->m_originalColorSprite); cocos2d::CCPoint::CCPoint(*(float *)&v201, (float)(v274 * 0.5) - 120.0); v202 = 0; v268 = 0; v305 = v307; v272 = -21896; while ( 1 ) { while ( 1 ) { while ( 1 ) { v203 = 0; if ( v202 < 3 ) v203 = 15; cocos2d::CCPoint::CCPoint((float)v202, (float)v203); cocos2d::CCPoint::operator+(v314, &v282); if ( v202 ) { if ( v202 == 1 ) { v204 = "G:"; } else { v204 = "HEX:"; if ( v202 == 2 ) v204 = "B:"; } } else { v204 = (const char *)&unk_14053FEC0; } v205 = cocos2d::CCLabelBMFont::create(v204, "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v205->setScale_0)(v205); v206 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v205); v207 = v205->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v208 = cocos2d::CCPoint::CCPoint(v206, 1.0); v207->setAnchorPoint(v205, v209); v210 = -17; if ( v202 == 3 ) v210 = -32; cocos2d::CCPoint::CCPoint(*(float *)&v208, (float)v210); cocos2d::CCPoint::operator+(&v282, v271); v205->setPosition_0(v205, v271); cocos2d::CCArray::addObject(a1->m_colorObjects, v205); cocos2d::CCRect::CCRect(&v275, v316); v212 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v211); LOBYTE(v213) = 100; v212->setOpacity(&v212->cocos2d::CCRGBAProtocol, v213); v283 = v268; v284 = 0; v212->setColor(&v212->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v283); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v270, &v290); if ( v202 == 3 ) v270.x = 100.0; v212->setContentSize(v212, (const cocos2d::CCSize *)&v270); ((void (__fastcall *)(struct cocos2d::extension::CCScale9Sprite *))v212->setScale_0)(v212); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v212, -1); v212->setPosition_0(v212, &v282); cocos2d::CCArray::addObject(a1->m_colorObjects, v212); v215 = 80; if ( v202 < 3 ) v215 = 40; v216 = CCTextInputNode::create((float)v215, 20.0, "Num", v214, v267, (const char *)&qword_14052A4D8); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v216, 20); v216->setPosition_0(v216, &v282); v216->m_maxLabelScale = 0.40000001; CCTextInputNode::refreshLabel(v216); v216->m_maxLabelWidth = 50.0; CCTextInputNode::refreshLabel(v216); v216->m_textField->setVisible(v216->m_textField, 0); v217 = 7; if ( v202 < 3 ) v217 = 4; v216->m_maxLabelLength = v217; v218 = (__int64 *)"0123456789ABCDEFabcdef"; if ( v202 < 3 ) v218 = &qword_14053E3E8; *(_OWORD *)v307 = 0; Size = 0; v309 = 0; v219 = -1; do ++v219; while ( *((_BYTE *)v218 + v219) ); sub_14003A930(v307, v218, v219); if ( &v216->m_allowedChars != (std::string *)v307 ) { v220 = v307; if ( v309 > 0xF ) v220 = (void **)v307[0]; sub_14003CCE0((void **)&v216->m_allowedChars, v220, Size); } sub_14003A830((__int64)v307); *(_WORD *)&v216->m_placeholderColor.r = v272; v216->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v216); v216->m_placeholderScale = 0.40000001; CCTextInputNode::refreshLabel(v216); v216->m_delegate = v37; v216->m_numberInput = v202 < 3; cocos2d::CCArray::addObject(a1->m_colorObjects, v216); if ( v202 ) break; a1->m_rInput = v216; v216->setTag(v216, 11); v202 = 1; } if ( v202 != 1 ) break; a1->m_gInput = v216; v216->setTag(v216, 12); v202 = 2; } if ( v202 != 2 ) break; a1->m_bInput = v216; v216->setTag(v216, 13); v202 = 3; } a1->m_hexInput = v216; v216->setTag(v216, 14); v272 = *(_WORD *)&a1->m_currentColor.r; b = a1->m_currentColor.b; a1->m_colorPicker->setColorValue(a1->m_colorPicker, (const cocos2d::ccColor3B *)&v272); m_hsv = a1->m_hsv; v222 = ConfigureHSVWidget::create(&m_hsv, v221, 0); a1->m_hsvWidget = v222; v223 = ((float (__fastcall *)(SetupPulsePopup *, ConfigureHSVWidget *))a1->addChild_1)(a1, v222); v224 = a1->m_hsvWidget->__vftable; cocos2d::CCPoint::CCPoint(v223, (float)(v274 * 0.5) - 75.0); v226 = ((double (__fastcall *)(ConfigureHSVWidget *, __int64))v224->setPosition_0)(a1->m_hsvWidget, v225); ((void (__fastcall *)(ConfigureHSVWidget *))a1->m_hsvWidget->setScale_0)(a1->m_hsvWidget); cocos2d::CCArray::addObject(a1->m_hsvObjects, a1->m_hsvWidget); cocos2d::CCPoint::CCPoint(*(float *)&v226, (float)(v274 * 0.5) + 142.0); cocos2d::CCPoint::operator=(&v281, v227); v228 = cocos2d::CCLabelBMFont::create("Color ID", "goldFont.fnt"); v229 = ((double (__fastcall *)(SetupPulsePopup *, struct cocos2d::CCLabelBMFont *))a1->addChild_1)(a1, v228); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v228->setScale_0)(v228); v228->setPosition_0(v228, &v281); cocos2d::CCArray::addObject(a1->m_hsvObjects, v228); cocos2d::CCPoint::CCPoint(*(float *)&v229, 0.0); cocos2d::CCPoint::operator+(&v281, &v286); cocos2d::CCRect::CCRect(&v275, v316); v231 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v230); LOBYTE(v232) = 100; v231->setOpacity(&v231->cocos2d::CCRGBAProtocol, v232); v272 = 0; b = 0; v231->setColor(&v231->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v272); v231->setContentSize(v231, &v290); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v231, -1); v231->setPosition_0(v231, &v286); cocos2d::CCArray::addObject(a1->m_hsvObjects, v231); v234 = CCTextInputNode::create(50.0, 40.0, "Num", v233, v267, (const char *)&qword_14052A4D8); a1->m_colorIDInput = v234; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v234, 20); a1->m_colorIDInput->setPosition_0(a1->m_colorIDInput, &v286); m_colorIDInput = a1->m_colorIDInput; m_colorIDInput->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(m_colorIDInput); v236 = a1->m_colorIDInput; v236->m_maxLabelWidth = 200.0; CCTextInputNode::refreshLabel(v236); a1->m_colorIDInput->m_textField->setVisible(a1->m_colorIDInput->m_textField, 0); a1->m_colorIDInput->m_maxLabelLength = 6; v310[1] = 14648; v310[2] = 10; v310[3] = 15; v310[0] = 0x3736353433323130LL; v280.origin = (cocos2d::CCPoint)v310; v237 = &a1->m_colorIDInput->m_allowedChars; if ( v237 != (std::string *)v310 ) sub_14003CCE0((void **)v237, v310, 0xAu); sub_14003A830((__int64)v310); v272 = -21896; v238 = a1->m_colorIDInput; *(_WORD *)&v238->m_placeholderColor.r = -21896; v238->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v238); v239 = a1->m_colorIDInput; v239->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v239); a1->m_colorIDInput->m_delegate = v37; a1->m_colorIDInput->setTag(a1->m_colorIDInput, 5); a1->m_colorIDInput->m_numberInput = 1; cocos2d::CCArray::addObject(a1->m_hsvObjects, a1->m_colorIDInput); v240 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v280.origin); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v285, v240); v241 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v241->setScale_0)(v241); v280.origin = (cocos2d::CCPoint)operator new(0x208u); v242 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v280.origin); v243 = v242; if ( v242 ) { if ( CCMenuItemSpriteExtra::init( v242, v241, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onUpdateCopyColor) ) { cocos2d::CCObject::autorelease(v243); goto LABEL_100; } ((void (__fastcall *)(cocos2d::CCNode *, __int64))v243->~CCNode)(v243, 1); } v243 = nullptr; LABEL_100: a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v243); v244 = ((float (__fastcall *)(cocos2d::CCNode *, __int64))v243->setTag)(v243, 1); cocos2d::CCPoint::CCPoint(v244, -50.0); cocos2d::CCPoint::operator+(&v285, v271); v243->setPosition_0(v243, v271); v243[1].m_unknown5 = 0x40000000; cocos2d::CCArray::addObject(a1->m_hsvObjects, v243); v245 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v245->setScale_0)(v245); v280.origin = (cocos2d::CCPoint)operator new(0x208u); v246 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v280.origin); v247 = v246; if ( v246 ) { if ( CCMenuItemSpriteExtra::init( v246, v245, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onUpdateCopyColor) ) { cocos2d::CCObject::autorelease(v247); goto LABEL_105; } ((void (__fastcall *)(cocos2d::CCNode *, __int64))v247->~CCNode)(v247, 1); } v247 = nullptr; LABEL_105: a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v247); v248 = ((float (__fastcall *)(cocos2d::CCNode *, __int64))v247->setTag)(v247, 2); cocos2d::CCPoint::CCPoint(v248, 50.0); cocos2d::CCPoint::operator+(&v285, v271); v247->setPosition_0(v247, v271); v247[1].m_unknown5 = 0x40000000; cocos2d::CCArray::addObject(a1->m_hsvObjects, v247); v249 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); v280.origin = (cocos2d::CCPoint)operator new(0x208u); v250 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(*(CCMenuItemSpriteExtra **)&v280.origin); if ( v250 ) { if ( CCMenuItemSpriteExtra::init( v250, v249, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupPulsePopup::onSelectSpecialColor) ) { cocos2d::CCObject::autorelease(v250); goto LABEL_110; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v250->~CCMenuItemSpriteExtra)(v250, 1); } v250 = nullptr; LABEL_110: v251 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v250); cocos2d::CCPoint::CCPoint(v251, 50.0); cocos2d::CCPoint::operator+(&v286, v271); v252 = v250->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v253 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v291); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v252->setPosition_0)(v250, v253); cocos2d::CCArray::addObject(a1->m_hsvObjects, v250); v280.origin = (cocos2d::CCPoint)&v275; v275 = 0; v276 = 0; v277 = 15; v254 = sub_14003AA10(0x1A0u); v275.origin = (cocos2d::CCPoint)v254; v276 = 408; v277 = 415; v255 = v254; v256 = "Applies a temporary color effect to a group or channel. Set which using Target Type.\n" "If set to group, you can toggle between main and detail colors.\n" "Color Mode tints the target to the selected color.\n" "HSV Mode modifies the base color's hue, saturation, and brightness values.\n" "Exclusive disables all other pulses using the same ID when activated (not visible in editor)."; do { *v255 = *(_OWORD *)v256; v255[1] = *((_OWORD *)v256 + 1); v255[2] = *((_OWORD *)v256 + 2); v255[3] = *((_OWORD *)v256 + 3); v255[4] = *((_OWORD *)v256 + 4); v255[5] = *((_OWORD *)v256 + 5); v255[6] = *((_OWORD *)v256 + 6); v255 += 8; *(v255 - 1) = *((_OWORD *)v256 + 7); v256 += 128; --v101; } while ( v101 ); *v255 = *(_OWORD *)v256; *((_QWORD *)v255 + 2) = *((_QWORD *)v256 + 2); *((_BYTE *)v254 + 408) = 0; m_hsv = 0; v312 = 4; v313 = 15; strcpy((char *)&m_hsv, "Help"); v257 = InfoAlertButton::create((__int64)&m_hsv, (__int64)&v275); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, (cocos2d::CCNode *)v257); v258 = *(_QWORD *)v257; cocos2d::CCPoint::CCPoint(a1->m_width * 0.5, (float)((float)(v274 * 0.5) - (float)(a1->m_width * 0.5)) + 18.0); v259 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v291); (*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v258 + 184))(v257, v259); m_hsvButton = nullptr; m_pulseMode = a1->m_pulseMode; if ( m_pulseMode ) { if ( m_pulseMode == 1 ) m_hsvButton = a1->m_hsvButton; } else { m_hsvButton = a1->m_colorButton; } SetupPulsePopup::onSelectPulseMode(a1, m_hsvButton); m_pulseTargetType = a1->m_pulseTargetType; if ( m_pulseTargetType ) { if ( m_pulseTargetType == 1 ) m_groupButton = a1->m_groupButton; } else { m_groupButton = a1->m_channelButton; } SetupPulsePopup::onSelectTargetMode(a1, m_groupButton); SetupPulsePopup::updateTextInputLabel(a1); SetupPulsePopup::updateCopyColorTextInputLabel(a1); a1->m_colorInitializing = 0; a1->m_modesInitializing = 0; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source