// // SetupAreaTintTriggerPopup::init from 0x14040f900 to 0x140410339 (2617 bytes) // // 2 xrefs: // > EditorUI::editObject @ 0x14011ca81 // > @ 0x1406d8c3c // // 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=3 bool SetupAreaTintTriggerPopup::init(SetupAreaTintTriggerPopup *a1, EnterEffectObject *a2, cocos2d::CCArray *a3) { bool result; // al _QWORD *v5; // r9 _QWORD *v6; // rcx const char *v7; // rdx __int64 v8; // r8 double v9; // xmm0_8 __int64 v10; // rcx cocos2d::CCDirector *v11; // rax struct cocos2d::CCSprite *v12; // rax CCMenuItemSpriteExtra *v13; // rax float v14; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v15; // rbx struct cocos2d::CCPoint v16; // rax CCMenuItemSpriteExtra *m_hsvButton; // rbx cocos2d::CCArray *GroupContainer; // rax CCMenuItemSpriteExtra *v19; // rbx cocos2d::CCArray *PageContainer; // rax int v21; // r8d _BOOL8 v22; // r8 _BOOL8 v23; // r8 char v24; // [rsp+80h] [rbp-88h] __int64 v25; // [rsp+80h] [rbp-88h] __int64 v26; // [rsp+80h] [rbp-88h] __int64 v27; // [rsp+80h] [rbp-88h] __int64 v28; // [rsp+80h] [rbp-88h] __int64 v29; // [rsp+80h] [rbp-88h] float v30; // [rsp+88h] [rbp-80h] __int128 *v31; // [rsp+90h] [rbp-78h] BYREF __int128 *v32; // [rsp+98h] [rbp-70h] BYREF __int128 *v33; // [rsp+A0h] [rbp-68h] __int128 v34; // [rsp+A8h] [rbp-60h] BYREF __int64 v35; // [rsp+B8h] [rbp-50h] __int64 v36; // [rsp+C0h] [rbp-48h] __int128 v37; // [rsp+C8h] [rbp-40h] BYREF __int64 v38; // [rsp+D8h] [rbp-30h] __int64 v39; // [rsp+E0h] [rbp-28h] char v40; // [rsp+180h] [rbp+78h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 420.0, 280.0, 1); if ( result ) { a1->determineStartValues(a1); v34 = 0; *(_QWORD *)&v34 = sub_14003AA10(0x20u); v35 = 17; v36 = 31; strcpy((char *)v34, "Area Tint Trigger"); SetupTriggerPopup::addTitle(a1, &v34); v34 = 0; v35 = 2; v36 = 15; strcpy((char *)&v34, "OK"); SetupTriggerPopup::addCloseButton(a1, &v34); v31 = &v34; v34 = 0; v35 = 0; v36 = 15; v5 = sub_14003AA10(0x140u); *(_QWORD *)&v34 = v5; v35 = 310; v36 = 319; v6 = v5; v7 = "Tints objects using Target Group ID within an area around Center Group ID. The area can be spec" "ified 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."; v8 = 2; do { *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); *((_OWORD *)v6 + 6) = *((_OWORD *)v7 + 6); v6 += 16; *((_OWORD *)v6 - 1) = *((_OWORD *)v7 + 7); v7 += 128; --v8; } while ( v8 ); *(_OWORD *)v6 = *(_OWORD *)v7; *((_OWORD *)v6 + 1) = *((_OWORD *)v7 + 1); *((_OWORD *)v6 + 2) = *((_OWORD *)v7 + 2); *((_DWORD *)v6 + 12) = *((_DWORD *)v7 + 12); *((_WORD *)v6 + 26) = *((_WORD *)v7 + 26); *((_BYTE *)v5 + 310) = 0; v37 = 0; v38 = 4; v39 = 15; strcpy((char *)&v37, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v37, &v34); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v30 * 0.5); v32 = &v34; v34 = 0; v35 = 6; v36 = 15; strcpy((char *)&v34, "Length"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(&v40, &v31); v24 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 222, (unsigned int)&v34, (unsigned int)&v31, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, v24); v33 = &v37; v37 = 0; v38 = 2; v39 = 15; strcpy((char *)&v37, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(&v40, &v31); LOBYTE(v25) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 223, (unsigned int)&v37, (unsigned int)&v31, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, v25); v33 = &v34; v34 = 0; v35 = 6; v36 = 15; strcpy((char *)&v34, "Offset"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(&v40, &v31); LOBYTE(v26) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 220, (unsigned int)&v34, (unsigned int)&v31, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, v26); v33 = &v37; v37 = 0; v38 = 2; v39 = 15; strcpy((char *)&v37, "+-"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(&v40, &v31); LOBYTE(v27) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 221, (unsigned int)&v37, (unsigned int)&v31, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, v27); v33 = &v34; v35 = 14; v36 = 15; strcpy((char *)&v34, "Color Channel:"); HIBYTE(v34) = 0; cocos2d::CCPoint::CCPoint(7.3172969e28, -75.0); cocos2d::CCPoint::operator+(&v40, &v31); LOBYTE(v28) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 260, (unsigned int)&v34, (unsigned int)&v31, 1059481190, 1, 3, 6, 1, 0, 1120403456, 0, 1, 0, 2, v28); v33 = &v37; v37 = 0; v38 = 4; v39 = 15; strcpy((char *)&v37, "Tint"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(&v40, &v31); LOBYTE(v29) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 265, (unsigned int)&v37, (unsigned int)&v31, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 1, 1, 2, v29); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png"); v13 = CCMenuItemSpriteExtra::create(v12, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupAreaTintTriggerPopup::onHSV); a1->m_hsvButton = v13; v14 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v13); cocos2d::CCPoint::CCPoint(v14, 0.0); cocos2d::CCPoint::operator+(&v40, &v31); v15 = a1->m_hsvButton->__vftable; v16 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v32); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v15->setPosition_0)(a1->m_hsvButton, v16); m_hsvButton = a1->m_hsvButton; GroupContainer = SetupTriggerPopup::getGroupContainer(a1, 2); cocos2d::CCArray::addObject(GroupContainer, m_hsvButton); v19 = a1->m_hsvButton; PageContainer = SetupTriggerPopup::getPageContainer(a1, 0); cocos2d::CCArray::addObject(PageContainer, v19); SetupAreaTintTriggerPopup::updateHSVButton(a1); v33 = &v34; *((_QWORD *)&v34 + 1) = 121; v35 = 9; v36 = 15; *(_QWORD *)&v34 = 0x6C6E4F0A6E69614DLL; cocos2d::CCPoint::CCPoint(1.8056909e28, -140.0); cocos2d::CCPoint::operator+(&v40, &v31); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 65, (unsigned int)&v34, (unsigned int)&v31, 0, 0, 0, 1065353216); v33 = &v34; v35 = 14; v36 = 15; strcpy((char *)&v34, "Secondary\nOnly"); HIBYTE(v34) = 0; cocos2d::CCPoint::CCPoint(7.0375591e28, -20.0); cocos2d::CCPoint::operator+(&v40, &v31); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 66, (unsigned int)&v34, (unsigned int)&v31, 0, 0, 0, 1065353216); v33 = &v34; v34 = 0; v35 = 3; v36 = 15; LODWORD(v34) = 5657416; cocos2d::CCPoint::CCPoint(0.0, 100.0); cocos2d::CCPoint::operator+(&v40, &v31); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 278, (unsigned int)&v34, (unsigned int)&v31, 0, 0, 0, 1065353216); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3010); a1->updateDefaultTriggerValues(a1); SetupTriggerPopup::createPageButtons(a1, (float)(a1->m_width * 0.5) + 15.0, v21); if ( a1->getValue(a1, 278) == 0.0 ) LOBYTE(v22) = 1; else v22 = 0; a1->toggleGroup(a1, 1, v22); if ( a1->getValue(a1, 278) == 0.0 ) v23 = 0; else LOBYTE(v23) = 1; a1->toggleGroup(a1, 2, v23); SetupTriggerPopup::goToPage(a1, 0, 0); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source