// // SetupAreaTintTriggerPopup::init from 0xa0eb38 to 0xa0f790 (3160 bytes) // // 2 xrefs: // > SetupAreaTintTriggerPopup::create @ 0xa0f960 // > @ 0x799e0 // // 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 SetupAreaTintTriggerPopup::init(SetupAreaTintTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { bool v4; // w27 char *v6; // x0 __int64 v7; // x2 __int64 v8; // x3 __int64 v9; // x4 __int64 v10; // x5 const char *v11; // x6 char *v12; // x0 char *v13; // x0 void *v14; // x0 cocos2d::CCDirector *v15; // x0 float v16; // s3 float v17; // s4 char *v18; // x0 float v19; // s3 float v20; // s4 char *v21; // x0 float v22; // s3 float v23; // s4 char *v24; // x0 float v25; // s3 float v26; // s4 char *v27; // x0 float v28; // s3 float v29; // s4 char *v30; // x0 float v31; // s3 float v32; // s4 char *v33; // x0 cocos2d::CCSprite *v34; // x0 CCMenuItemSpriteExtra *v35; // x0 cocos2d::CCMenu *m_buttonMenu; // x2 CCMenuItemSpriteExtra *m_hsvButton; // x28 CCMenuItemSpriteExtra_vtbl *v38; // x1 char *v39; // x0 char *v40; // x0 char *v41; // x20 void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // x20 float v43; // s0 void (__fastcall *v44)(SetupTriggerPopup *__hidden, int, bool); // x20 float v45; // s0 unsigned int *v46; // x1 int v47; // w2 unsigned int *v48; // x1 int v49; // w2 unsigned int *v50; // x1 int v51; // w2 unsigned int *v52; // x1 int v53; // w2 unsigned int *v54; // x1 int v55; // w2 unsigned int *v56; // x1 int v57; // w2 unsigned int *v58; // x1 int v59; // w2 unsigned int *v60; // x1 int v61; // w2 unsigned int *v62; // x1 int v63; // w2 unsigned int *v64; // x1 int v65; // w2 unsigned int *v66; // x1 int v67; // w2 unsigned int *v68; // x1 int v69; // w2 unsigned int *v70; // x22 int v71; // w0 cocos2d::CCNode *v72[2]; // [xsp+30h] [xbp+0h] BYREF cocos2d::CCNode *v73; // [xsp+C0h] [xbp+90h] void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+C8h] [xbp+98h] float v75; // [xsp+E0h] [xbp+B0h] float v76; // [xsp+E4h] [xbp+B4h] cocos2d::CCPoint v77; // [xsp+E8h] [xbp+B8h] BYREF cocos2d::CCPoint v78; // [xsp+F0h] [xbp+C0h] BYREF cocos2d::CCPoint v79; // [xsp+F8h] [xbp+C8h] BYREF char *v80; // [xsp+100h] [xbp+D0h] BYREF cocos2d::CCPoint v81; // 0:kr08_8.8 cocos2d::SEL_MenuHandler v82; // 0:x2.16 cocos2d::CCPoint v83; // 0:s0.4,4:s1.4 cocos2d::CCPoint v84; // 0:s0.4,4:s1.4 cocos2d::CCPoint v85; // 0:s0.4,4:s1.4 cocos2d::CCPoint v86; // 0:s0.4,4:s1.4 cocos2d::CCPoint v87; // 0:s0.4,4:s1.4 cocos2d::CCPoint v88; // 0:s0.4,4:s1.4 v4 = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( v4 ) { a1->determineStartValues(a1); sub_D153B8((unsigned int)v72 + 208, "Area Tint Trigger"); SetupTriggerPopup::addTitle((__int64)a1); v6 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v46 = (unsigned int *)(v80 - 8); do v47 = __ldaxr(v46); while ( __stlxr(v47 - 1, v46) ); } else { v47 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v47 - 1; } if ( v47 <= 0 ) operator delete(v6); } sub_D153B8((unsigned int)v72 + 208, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (ButtonSprite **)&v80, v7, v8, v9, v10, v11); v12 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v48 = (unsigned int *)(v80 - 8); do v49 = __ldaxr(v48); while ( __stlxr(v49 - 1, v48) ); } else { v49 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v49 - 1; } if ( v49 <= 0 ) operator delete(v12); } sub_D153B8((int)&v79, "Help"); sub_D153B8( (int)&v80, "Tints objects using Target Group ID within an area around Center Group ID. The area can be specifi" "ed by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area tint depending on how close they are to the center.\n" "Check the other pages for more settings."); SetupTriggerPopup::addHelpButton((__int64)a1, 1.0); v13 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v56 = (unsigned int *)(v80 - 8); do v57 = __ldaxr(v56); while ( __stlxr(v57 - 1, v56) ); } else { v57 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v57 - 1; } if ( v57 <= 0 ) operator delete(v13); } v14 = (void *)(*(_QWORD *)&v79 - 24LL); if ( (__int64 *)(*(_QWORD *)&v79 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v52 = (unsigned int *)(*(_QWORD *)&v79 - 8LL); do v53 = __ldaxr(v52); while ( __stlxr(v53 - 1, v52) ); } else { v53 = *(_DWORD *)(*(_QWORD *)&v79 - 8LL); *(_DWORD *)(*(_QWORD *)&v79 - 8LL) = v53 - 1; } if ( v53 <= 0 ) operator delete(v14); } SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(&v77, v75 * 0.5, (float)(v76 * 0.5) + 95.0); sub_D153B8((int)&v80, "Length"); cocos2d::CCPoint::CCPoint(&v78, -75.0, 0.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); v83.y = 0.0; v83.x = 0.65; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDEu, v83, 100.0, v16, v17, (std::string)&v80, &v79, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v18 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v60 = (unsigned int *)(v80 - 8); do v61 = __ldaxr(v60); while ( __stlxr(v61 - 1, v60) ); } else { v61 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v61 - 1; } if ( v61 <= 0 ) operator delete(v18); } sub_D153B8((int)&v80, "+-"); cocos2d::CCPoint::CCPoint(&v78, 75.0, 0.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); v84.x = 0.65; v84.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDFu, v84, 100.0, v19, v20, (std::string)&v80, &v79, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v21 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v50 = (unsigned int *)(v80 - 8); do v51 = __ldaxr(v50); while ( __stlxr(v51 - 1, v50) ); } else { v51 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v51 - 1; } if ( v51 <= 0 ) operator delete(v21); } sub_D153B8((int)&v80, "Offset"); cocos2d::CCPoint::CCPoint(&v78, -75.0, -25.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); v85.x = 0.65; v85.y = -100.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDCu, v85, 100.0, v22, v23, (std::string)&v80, &v79, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v24 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v64 = (unsigned int *)(v80 - 8); do v65 = __ldaxr(v64); while ( __stlxr(v65 - 1, v64) ); } else { v65 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v65 - 1; } if ( v65 <= 0 ) operator delete(v24); } sub_D153B8((int)&v80, "+-"); cocos2d::CCPoint::CCPoint(&v78, 75.0, -25.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); v86.x = 0.65; v86.y = -100.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0xDDu, v86, 100.0, v25, v26, (std::string)&v80, &v79, (InputValueType)0, Int, 6, 0, 0, 0, 1, 2, 0); v27 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v58 = (unsigned int *)(v80 - 8); do v59 = __ldaxr(v58); while ( __stlxr(v59 - 1, v58) ); } else { v59 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v59 - 1; } if ( v59 <= 0 ) operator delete(v27); } sub_D153B8((int)&v80, "Color Channel:"); cocos2d::CCPoint::CCPoint(&v78, -75.0, -75.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); v87.x = 0.65; v87.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x104u, v87, 100.0, v28, v29, (std::string)&v80, &v79, Float, Uint, 6, 1u, 0, 1, 0, 2, 0); v30 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v68 = (unsigned int *)(v80 - 8); do v69 = __ldaxr(v68); while ( __stlxr(v69 - 1, v68) ); } else { v69 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v69 - 1; } if ( v69 <= 0 ) operator delete(v30); } sub_D153B8((int)&v80, "Tint"); cocos2d::CCPoint::CCPoint(&v78, 75.0, -75.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); v88.x = 0.65; v88.y = 0.0; SetupTriggerPopup::createValueControlAdvanced( a1, 0x109u, v88, 1.0, v31, v32, (std::string)&v80, &v79, (InputValueType)0, Float, 6, 0, 0, 1, 1, 2, 0); v33 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v54 = (unsigned int *)(v80 - 8); do v55 = __ldaxr(v54); while ( __stlxr(v55 - 1, v54) ); } else { v55 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v55 - 1; } if ( v55 <= 0 ) operator delete(v33); } v34 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png"); v82.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v82.adj = (size_t)SetupAreaTintTriggerPopup::onHSV; v35 = CCMenuItemSpriteExtra::create(v34, nullptr, v82); m_buttonMenu = a1->m_buttonMenu; a1->m_hsvButton = v35; m_buttonMenu->addChild(m_buttonMenu, v35); m_hsvButton = a1->m_hsvButton; v38 = m_hsvButton->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v73 = a1->m_buttonMenu; setPosition = v38->setPosition; cocos2d::CCPoint::CCPoint(&v78, 0.0, -75.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); v81 = cocos2d::CCNode::convertToNodeSpace(v73, &v79); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char **, float, float))setPosition)(m_hsvButton, &v80, v81.x, v81.y); SetupTriggerPopup::addObjectToGroup(a1, a1->m_hsvButton, 2); SetupTriggerPopup::addObjectToPage(a1, a1->m_hsvButton, 0); SetupAreaTintTriggerPopup::updateHSVButton(a1); sub_D153B8((int)&v80, "Main\nOnly"); cocos2d::CCPoint::CCPoint(&v78, -140.0, -125.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); SetupTriggerPopup::createToggleValueControl(a1, 65, 1.0, (__int64)&v80, &v79, 0, 0, 0); v39 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v66 = (unsigned int *)(v80 - 8); do v67 = __ldaxr(v66); while ( __stlxr(v67 - 1, v66) ); } else { v67 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v67 - 1; } if ( v67 <= 0 ) operator delete(v39); } sub_D153B8((int)&v80, "Secondary\nOnly"); cocos2d::CCPoint::CCPoint(&v78, -20.0, -125.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); SetupTriggerPopup::createToggleValueControl(a1, 66, 1.0, (__int64)&v80, &v79, 0, 0, 0); v40 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v62 = (unsigned int *)(v80 - 8); do v63 = __ldaxr(v62); while ( __stlxr(v63 - 1, v62) ); } else { v63 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v63 - 1; } if ( v63 <= 0 ) operator delete(v40); } sub_D153B8((int)&v80, "HSV"); cocos2d::CCPoint::CCPoint(&v78, 100.0, -125.0); cocos2d::CCPoint::operator+(&v79, &v77, &v78); SetupTriggerPopup::createToggleValueControl(a1, 278, 1.0, (__int64)&v80, &v79, 0, 0, 0); v41 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v70 = (unsigned int *)(v80 - 8); do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v71 - 1; } if ( v71 <= 0 ) operator delete(v41); } SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3010); a1->updateDefaultTriggerValues(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, 1); toggleGroup = a1->toggleGroup; v43 = a1->getValue(a1, 278); toggleGroup(a1, 1, v43 == 0.0); v44 = a1->toggleGroup; v45 = a1->getValue(a1, 278); v44(a1, 2, v45 != 0.0); SetupTriggerPopup::goToPage(a1, 0, 0); a1->m_disableTextDelegate = 0; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source