// // UIObjectSettingsPopup::init from 0x140469990 to 0x14046a4ce (2878 bytes) // // 3 xrefs: // > UIObjectSettingsPopup::create @ 0x14046994e // > @ 0x1406db174 // > @ 0x1406db180 // // 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 UIObjectSettingsPopup::init(UIObjectSettingsPopup *a1, UISettingsGameObject *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 double ValueControlAdvanced; // xmm0_8 unsigned int v13; // edi int v14; // r14d int v15; // r8d int v16; // r9d int v17; // r8d int v18; // r9d int v19; // r8d int v20; // r9d int v21; // r8d int v22; // r9d int v23; // r8d bool v24; // bl int v25; // r9d int v26; // r8d int v27; // r9d int v28; // r8d int v29; // r9d int v30; // r8d int v31; // r9d int v32; // [rsp+28h] [rbp-E0h] int v33; // [rsp+28h] [rbp-E0h] char v34; // [rsp+80h] [rbp-88h] __int128 *v35; // [rsp+88h] [rbp-80h] BYREF __int128 v36; // [rsp+90h] [rbp-78h] BYREF __int64 v37; // [rsp+A0h] [rbp-68h] __int64 v38; // [rsp+A8h] [rbp-60h] __int128 *v39; // [rsp+B0h] [rbp-58h] __int128 *v40; // [rsp+B8h] [rbp-50h] __int128 v41; // [rsp+C0h] [rbp-48h] BYREF __int64 v42; // [rsp+D0h] [rbp-38h] __int64 v43; // [rsp+D8h] [rbp-30h] float v44; // [rsp+E0h] [rbp-28h] _BYTE v45[112]; // [rsp+E8h] [rbp-20h] BYREF char v46; // [rsp+190h] [rbp+88h] BYREF float v47; // [rsp+194h] [rbp+8Ch] result = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v36 = 0; *(_QWORD *)&v36 = sub_14003AA10(0x20u); v37 = 18; v38 = 31; strcpy((char *)v36, "UI Object Settings"); SetupTriggerPopup::addTitle(a1, &v36); v36 = 0; v37 = 2; v38 = 15; strcpy((char *)&v36, "OK"); SetupTriggerPopup::addCloseButton(a1, &v36); v35 = &v36; v36 = 0; v37 = 0; v38 = 15; v5 = sub_14003AA10(0x170u); *(_QWORD *)&v36 = v5; v37 = 355; v38 = 367; v6 = v5; v7 = "Group ID specify the objects to use for the UI. This is permanent from the start and cannot be edited.\n" "UI Target is a single object used as a reference for the camera center. Camera Guide is a recommended t" "ool.\n" "XRef and YRef are reference points for aligning the object.\n" "Relative makes UI positions scale with aspect ratio."; 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); *((_OWORD *)v6 + 3) = *((_OWORD *)v7 + 3); *((_OWORD *)v6 + 4) = *((_OWORD *)v7 + 4); *((_OWORD *)v6 + 5) = *((_OWORD *)v7 + 5); *((_WORD *)v6 + 48) = *((_WORD *)v7 + 48); *((_BYTE *)v6 + 98) = v7[98]; *((_BYTE *)v5 + 355) = 0; v41 = 0; v42 = 4; v43 = 15; strcpy((char *)&v41, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v41, &v36); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v44 * 0.5); v39 = &v36; *((_QWORD *)&v36 + 1) = 58; v37 = 9; v38 = 15; *(_QWORD *)&v36 = 0x44492070756F7247LL; cocos2d::CCPoint::CCPoint(3.0353437e32, -70.0); cocos2d::CCPoint::operator+(v45, &v35); v34 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 51, (unsigned int)&v36, (unsigned int)&v35, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, v34, v35); v40 = &v36; *((_QWORD *)&v36 + 1) = 14964; v37 = 10; v38 = 15; *(_QWORD *)&v36 = 0x6567726154204955LL; cocos2d::CCPoint::CCPoint(2.7537003e12, 70.0); cocos2d::CCPoint::operator+(v45, &v35); ValueControlAdvanced = SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 71, (unsigned int)&v36, (unsigned int)&v35, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0); cocos2d::CCPoint::CCPoint(*(float *)&ValueControlAdvanced, (float)(v44 * 0.5) - 25.0); v13 = (int)a1->getValue(a1, 385); v14 = (int)a1->getValue(a1, 386); v40 = &v36; v36 = 0; v37 = 5; v38 = 15; strcpy((char *)&v36, "XRef:"); cocos2d::CCPoint::CCPoint(0.0, -125.0); cocos2d::CCPoint::operator+(&v46, &v35); SetupTriggerPopup::addInfoLabel((_DWORD)a1, (unsigned int)&v36, v15, (unsigned int)&v35, v32, 0); v40 = &v41; v41 = 0; v42 = 4; v43 = 15; strcpy((char *)&v41, "Auto"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(&v46, &v35); SetupTriggerPopup::createCustomToggleValueControl( (_DWORD)a1, 1, v13 <= 1, v16, (__int64)&v41, (__int64)&v35, 1, 0, 0); v40 = &v36; v36 = 0; v37 = 6; v38 = 15; strcpy((char *)&v36, "Center"); cocos2d::CCPoint::CCPoint(0.0, -25.0); cocos2d::CCPoint::operator+(&v46, &v35); LOBYTE(v17) = v13 == 2; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 2, v17, v18, (__int64)&v36, (__int64)&v35, 1, 0, 0); v40 = &v41; v41 = 0; v42 = 4; v43 = 15; strcpy((char *)&v41, "Left"); cocos2d::CCPoint::CCPoint(0.0, 25.0); cocos2d::CCPoint::operator+(&v46, &v35); LOBYTE(v19) = v13 == 3; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 3, v19, v20, (__int64)&v41, (__int64)&v35, 1, 0, 0); v40 = &v36; v36 = 0; v37 = 5; v38 = 15; strcpy((char *)&v36, "Right"); cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(&v46, &v35); LOBYTE(v21) = v13 == 4; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 4, v21, v22, (__int64)&v36, (__int64)&v35, 1, 0, 0); v40 = &v41; v42 = 8; v43 = 15; v41 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint(0.0, 150.0); cocos2d::CCPoint::operator+(&v46, &v35); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 387, (unsigned int)&v41, (unsigned int)&v35, 1, 0, 0, 1065353216); v47 = v47 + -60.0; v40 = &v36; v36 = 0; v37 = 5; v38 = 15; strcpy((char *)&v36, "YRef:"); cocos2d::CCPoint::CCPoint(0.0, -125.0); cocos2d::CCPoint::operator+(&v46, &v35); SetupTriggerPopup::addInfoLabel((_DWORD)a1, (unsigned int)&v36, v23, (unsigned int)&v35, v33, 0); v40 = &v41; v24 = v14 == 5 || !v14; v41 = 0; v42 = 4; v43 = 15; strcpy((char *)&v41, "Auto"); cocos2d::CCPoint::CCPoint(0.0, -75.0); cocos2d::CCPoint::operator+(&v46, &v35); SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 5, v24, v25, (__int64)&v41, (__int64)&v35, 1, 0, 0); v40 = &v36; v36 = 0; v37 = 6; v38 = 15; strcpy((char *)&v36, "Center"); cocos2d::CCPoint::CCPoint(0.0, -25.0); cocos2d::CCPoint::operator+(&v46, &v35); LOBYTE(v26) = v14 == 6; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 6, v26, v27, (__int64)&v36, (__int64)&v35, 1, 0, 0); v40 = &v36; v36 = 0; v37 = 6; v38 = 15; strcpy((char *)&v36, "Bottom"); cocos2d::CCPoint::CCPoint(0.0, 25.0); cocos2d::CCPoint::operator+(&v46, &v35); LOBYTE(v28) = v14 == 7; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 7, v28, v29, (__int64)&v36, (__int64)&v35, 1, 0, 0); v40 = &v36; v36 = 0; v37 = 3; v38 = 15; LODWORD(v36) = 7368532; cocos2d::CCPoint::CCPoint(0.0, 75.0); cocos2d::CCPoint::operator+(&v46, &v35); LOBYTE(v30) = v14 == 8; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 8, v30, v31, (__int64)&v36, (__int64)&v35, 1, 0, 0); v40 = &v41; v42 = 8; v43 = 15; v41 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint(0.0, 150.0); cocos2d::CCPoint::operator+(&v46, &v35); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 388, (unsigned int)&v41, (unsigned int)&v35, 1, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source