// // SetItemIDLayer::init from 0x140401160 to 0x1404018bb (1883 bytes) // // 2 xrefs: // > EditorUI::editObjectSpecial @ 0x14011e456 // > @ 0x1406d884c // // 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 SetItemIDLayer::init(SetItemIDLayer *a1, EffectGameObject *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 int v12; // ebx int v13; // r8d int v14; // r9d int v15; // r8d int v16; // r9d int v17; // ebx int v18; // r8d int v19; // r9d int v20; // r8d int v21; // r9d int v22; // r8d int v23; // r9d float v24; // [rsp+88h] [rbp-80h] _QWORD v25[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v26; // [rsp+A0h] [rbp-68h] __int128 v27; // [rsp+A8h] [rbp-60h] BYREF __int64 v28; // [rsp+B8h] [rbp-50h] __int64 v29; // [rsp+C0h] [rbp-48h] __int128 v30; // [rsp+C8h] [rbp-40h] BYREF __int64 v31; // [rsp+D8h] [rbp-30h] __int64 v32; // [rsp+E0h] [rbp-28h] char v33; // [rsp+140h] [rbp+38h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 300.0, 260.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v28 = 13; v29 = 15; strcpy((char *)&v27, "Counter Label"); HIWORD(v27) = 0; SetupTriggerPopup::addTitle(a1, &v27); v27 = 0; v28 = 2; v29 = 15; strcpy((char *)&v27, "OK"); SetupTriggerPopup::addCloseButton(a1, &v27); v25[0] = &v27; v27 = 0; v28 = 0; v29 = 15; v5 = sub_14003AA10(0x170u); *(_QWORD *)&v27 = v5; v28 = 365; v29 = 367; v6 = v5; v7 = "Displays a set counter value depending on the setting. By default it displays Item ID.\n" "Use Time Counter to make it function as a timer.\n" "MainTime shows the exact game time.\n" "Use Points to show linked collectables.\n" "Attempts displays the current attempt.\n" "Left and Right Align changes the alignment of the display."; 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); v6[12] = *((_QWORD *)v7 + 12); *((_DWORD *)v6 + 26) = *((_DWORD *)v7 + 26); *((_BYTE *)v6 + 108) = v7[108]; *((_BYTE *)v5 + 365) = 0; v30 = 0; v31 = 4; v32 = 15; strcpy((char *)&v30, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v30, &v27); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v24 * 0.5); v25[1] = &v27; v27 = 0; v28 = 6; v29 = 15; strcpy((char *)&v27, "ItemID"); cocos2d::CCPoint::CCPoint(0.0, -60.0); cocos2d::CCPoint::operator+(&v33, v25); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 80, (unsigned int)&v27, (unsigned int)v25, 1061997773, 1, 3, 6, 1, 0, 1120403456, 0, 0, 0, 2, 0); v26 = &v27; v28 = 12; v29 = 15; strcpy((char *)&v27, "Time\nCounter"); BYTE13(v27) = 0; HIWORD(v27) = 0; cocos2d::CCPoint::CCPoint(7.0071489e22, -60.0); cocos2d::CCPoint::operator+(&v33, v25); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 466, (unsigned int)&v27, (unsigned int)v25, 0, 0, 0, 1065353216); v26 = &v27; v28 = 12; v29 = 15; strcpy((char *)&v27, "Seconds\nOnly"); BYTE13(v27) = 0; HIWORD(v27) = 0; cocos2d::CCPoint::CCPoint(7.0375591e28, 60.0); cocos2d::CCPoint::operator+(&v33, v25); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 389, (unsigned int)&v27, (unsigned int)v25, 0, 0, 0, 1065353216); v12 = (int)a1->getValue(a1, 391); v26 = &v27; *((_QWORD *)&v27 + 1) = 28263; v28 = 10; v29 = 15; *(_QWORD *)&v27 = 0x696C410A7466654CLL; cocos2d::CCPoint::CCPoint(7.3015309e31, 60.0); cocos2d::CCPoint::operator+(&v33, v25); LOBYTE(v13) = v12 == 1; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 1, v13, v14, (__int64)&v27, (__int64)v25, 0, 0, 0); v26 = &v27; v28 = 11; v29 = 15; *(_QWORD *)&v27 = 0x6C410A7468676952LL; *((_QWORD *)&v27 + 1) = 7235433; cocos2d::CCPoint::CCPoint(4.3712379e24, 60.0); cocos2d::CCPoint::operator+(&v33, v25); LOBYTE(v15) = v12 == 2; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 2, v15, v16, (__int64)&v27, (__int64)v25, 0, 0, 0); v17 = (int)a1->getValue(a1, 390); v26 = &v30; v31 = 8; v32 = 15; v30 = 0x656D69546E69614DuLL; cocos2d::CCPoint::CCPoint(0.0, -90.0); cocos2d::CCPoint::operator+(&v33, v25); LOBYTE(v18) = v17 == -1; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, -1, v18, v19, (__int64)&v30, (__int64)v25, 1, 0, 0); v26 = &v27; v27 = 0; v28 = 6; v29 = 15; strcpy((char *)&v27, "Points"); cocos2d::CCPoint::CCPoint(0.0, -15.0); cocos2d::CCPoint::operator+(&v33, v25); LOBYTE(v20) = v17 == -2; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, -2, v20, v21, (__int64)&v27, (__int64)v25, 1, 0, 0); v26 = &v30; v31 = 8; v32 = 15; v30 = 0x7374706D65747441uLL; cocos2d::CCPoint::CCPoint(0.0, 60.0); cocos2d::CCPoint::operator+(&v33, v25); LOBYTE(v22) = v17 == -3; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, -3, v22, v23, (__int64)&v30, (__int64)v25, 1, 0, 0); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source