// // SetupAreaTintTriggerPopup::init from 0x1405a6f30 to 0x1405a7998 (2664 bytes) // // 2 xrefs: // > EditorUI::editObject @ 0x1401bc0b9 // > @ 0x14092d5cc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:34:39 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall SetupAreaTintTriggerPopup::init(_BYTE *a1, int a2, int a3, int a4) { char result; // al _QWORD *v6; // r9 _QWORD *v7; // rcx const char *v8; // rdx __int64 v9; // r8 __int64 v10; // rcx __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax __int64 v17; // rax int v18; // eax cocos2d::CCObject *v19; // rax __int64 v20; // rax __int64 *v21; // rdi __int64 v22; // rbx __int64 v23; // rax struct cocos2d::CCObject *v24; // rbx cocos2d::CCArray *GroupContainer; // rax struct cocos2d::CCObject *v26; // rbx cocos2d::CCArray *PageContainer; // rax __int64 v28; // rax __int64 v29; // rax __int64 v30; // rax __int64 v31; // r8 __int64 v32; // r8 float v33[2]; // [rsp+88h] [rbp-80h] BYREF __int128 *v34; // [rsp+90h] [rbp-78h] BYREF __int128 *v35; // [rsp+98h] [rbp-70h] BYREF __int128 *v36; // [rsp+A0h] [rbp-68h] BYREF __int128 v37; // [rsp+A8h] [rbp-60h] BYREF __int64 v38; // [rsp+B8h] [rbp-50h] __int64 v39; // [rsp+C0h] [rbp-48h] __int128 v40; // [rsp+C8h] [rbp-40h] BYREF __int64 v41; // [rsp+D8h] [rbp-30h] __int64 v42; // [rsp+E0h] [rbp-28h] char v43; // [rsp+190h] [rbp+88h] BYREF result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1133248512, 1, 0); if ( result ) { (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1); v37 = 0; *(_QWORD *)&v37 = sub_14003D460(0x20u); v38 = 17; v39 = 31; strcpy((char *)v37, "Area Tint Trigger"); SetupTriggerPopup::addTitle(a1, &v37); v37 = 0; v38 = 2; v39 = 15; strcpy((char *)&v37, "OK"); SetupTriggerPopup::addCloseButton(a1, &v37); v34 = &v37; v37 = 0; v38 = 0; v39 = 0; v6 = sub_14003D460(0x140u); *(_QWORD *)&v37 = v6; v38 = 310; v39 = 319; v7 = v6; v8 = "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."; v9 = 2; do { *(_OWORD *)v7 = *(_OWORD *)v8; *((_OWORD *)v7 + 1) = *((_OWORD *)v8 + 1); *((_OWORD *)v7 + 2) = *((_OWORD *)v8 + 2); *((_OWORD *)v7 + 3) = *((_OWORD *)v8 + 3); *((_OWORD *)v7 + 4) = *((_OWORD *)v8 + 4); *((_OWORD *)v7 + 5) = *((_OWORD *)v8 + 5); *((_OWORD *)v7 + 6) = *((_OWORD *)v8 + 6); v7 += 16; *((_OWORD *)v7 - 1) = *((_OWORD *)v8 + 7); v8 += 128; --v9; } while ( v9 ); *(_OWORD *)v7 = *(_OWORD *)v8; *((_OWORD *)v7 + 1) = *((_OWORD *)v8 + 1); *((_OWORD *)v7 + 2) = *((_OWORD *)v8 + 2); *((_DWORD *)v7 + 12) = *((_DWORD *)v8 + 12); *((_WORD *)v7 + 26) = *((_WORD *)v8 + 26); *((_BYTE *)v6 + 310) = 0; v40 = 0; v41 = 4; v42 = 15; strcpy((char *)&v40, "Help"); SetupTriggerPopup::addHelpButton(a1, &v40, &v37); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v11 = cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11, v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v43, v33[0] * 0.5, (float)(v33[1] * 0.5) + 95.0); v35 = &v37; v37 = 0; v38 = 6; v39 = 15; strcpy((char *)&v37, "Length"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, -75.0, 0.0); cocos2d::CCPoint::operator+(&v43, &v34, v12); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 222, (unsigned int)&v37, (unsigned int)&v34, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, 0); v36 = &v40; v40 = 0; v41 = 2; v42 = 15; strcpy((char *)&v40, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 75.0, 0.0); cocos2d::CCPoint::operator+(&v43, &v34, v13); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 223, (unsigned int)&v40, (unsigned int)&v34, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, 0); v36 = &v37; v37 = 0; v38 = 6; v39 = 15; strcpy((char *)&v37, "Offset"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, -75.0, -25.0); cocos2d::CCPoint::operator+(&v43, &v34, v14); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 220, (unsigned int)&v37, (unsigned int)&v34, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, 0); v36 = &v40; v40 = 0; v41 = 2; v42 = 15; strcpy((char *)&v40, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 75.0, -25.0); cocos2d::CCPoint::operator+(&v43, &v34, v15); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 221, (unsigned int)&v40, (unsigned int)&v34, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, 0); v36 = &v37; v38 = 14; v39 = 15; strcpy((char *)&v37, "Color Channel:"); HIBYTE(v37) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, -75.0, -75.0); cocos2d::CCPoint::operator+(&v43, &v34, v16); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 260, (unsigned int)&v37, (unsigned int)&v34, 1059481190, 1, 3, 6, 1, 0, 1120403456, 0, 1, 0, 2, 0); v36 = &v40; v40 = 0; v41 = 4; v42 = 15; strcpy((char *)&v40, "Tint"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 75.0, -75.0); cocos2d::CCPoint::operator+(&v43, &v34, v17); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 265, (unsigned int)&v40, (unsigned int)&v34, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 1, 1, 2, 0); v18 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_hsvBtn_001.png"); v19 = CCMenuItemSpriteExtra::create(v18, 0, (int)a1, (__int64)SetupAreaTintTriggerPopup::onHSV); *((_QWORD *)a1 + 128) = v19; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)a1 + 69) + 464LL))(*((_QWORD *)a1 + 69), v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, -75.0); cocos2d::CCPoint::operator+(&v43, &v34, v20); v21 = *((__int64 **)a1 + 128); v22 = *v21; cocos2d::CCNode::convertToNodeSpace(*((_QWORD *)a1 + 69), &v35, &v34); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v21, v23); v24 = *((struct cocos2d::CCObject **)a1 + 128); GroupContainer = (cocos2d::CCArray *)SetupTriggerPopup::getGroupContainer(a1, 2); cocos2d::CCArray::addObject(GroupContainer, v24); v26 = *((struct cocos2d::CCObject **)a1 + 128); PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(a1, 0); cocos2d::CCArray::addObject(PageContainer, v26); SetupAreaTintTriggerPopup::updateHSVButton(a1); v36 = &v37; *((_QWORD *)&v37 + 1) = 121; v38 = 9; v39 = 15; *(_QWORD *)&v37 = 0x6C6E4F0A6E69614DLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, -140.0, -125.0); cocos2d::CCPoint::operator+(&v43, &v34, v28); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 65, (unsigned int)&v37, (unsigned int)&v34, 0, 0, 0, 1065353216); v36 = &v37; v38 = 14; v39 = 15; strcpy((char *)&v37, "Secondary\nOnly"); HIBYTE(v37) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, -20.0, -125.0); cocos2d::CCPoint::operator+(&v43, &v34, v29); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 66, (unsigned int)&v37, (unsigned int)&v34, 0, 0, 0, 1065353216); v36 = &v37; v37 = 0; v38 = 3; v39 = 15; LODWORD(v37) = 5657416; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v35, 100.0, -125.0); cocos2d::CCPoint::operator+(&v43, &v34, v30); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 278, (unsigned int)&v37, (unsigned int)&v34, 0, 0, 0, 1065353216); SetupAreaMoveTriggerPopup::addAreaDefaultControls((__int64)a1, 3010); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1); SetupTriggerPopup::createPageButtons(a1); if ( (*(float (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 278) == 0.0 ) LOBYTE(v31) = 1; else v31 = 0; (*(void (__fastcall **)(_BYTE *, __int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 1, v31); if ( (*(float (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 278) == 0.0 ) v32 = 0; else LOBYTE(v32) = 1; (*(void (__fastcall **)(_BYTE *, __int64, __int64))(*(_QWORD *)a1 + 1088LL))(a1, 2, v32); SetupTriggerPopup::goToPage(a1, 0, 0); a1[744] = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source