// // SetupDashRingPopup::init from 0x1404731f0 to 0x14047387c (1676 bytes) // // 2 xrefs: // > EditorUI::editObjectSpecial @ 0x14011e136 // > @ 0x1406db39c // // 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 SetupDashRingPopup::init(SetupDashRingPopup *a1, DashRingObject *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; // eax char v13; // [rsp+80h] [rbp-88h] __int64 v14; // [rsp+80h] [rbp-88h] __int64 v15; // [rsp+80h] [rbp-88h] float v16; // [rsp+88h] [rbp-80h] _QWORD v17[2]; // [rsp+90h] [rbp-78h] BYREF __int128 *v18; // [rsp+A0h] [rbp-68h] __int128 v19; // [rsp+A8h] [rbp-60h] BYREF __int64 v20; // [rsp+B8h] [rbp-50h] __int64 v21; // [rsp+C0h] [rbp-48h] __int128 v22; // [rsp+C8h] [rbp-40h] BYREF __int64 v23; // [rsp+D8h] [rbp-30h] __int64 v24; // [rsp+E0h] [rbp-28h] char v25; // [rsp+160h] [rbp+58h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 320.0, 240.0, 1); if ( result ) { a1->m_disableTextDelegate = 1; a1->determineStartValues(a1); v20 = 8; v21 = 15; v19 = 0x62724F2068736144uLL; SetupTriggerPopup::addTitle(a1, &v19); v19 = 0; v20 = 2; v21 = 15; strcpy((char *)&v19, "OK"); SetupTriggerPopup::addCloseButton(a1, &v19); v17[0] = &v19; v19 = 0; v20 = 0; v21 = 15; v5 = sub_14003AA10(0x120u); *(_QWORD *)&v19 = v5; v20 = 281; v21 = 287; v6 = v5; v7 = "Speed changes the speed of the dash.\n" "End Boost is the force applied when the dash stops.\n" "Max Duration will end the dash automatically after this time.\n" "Allow Collide makes the dash not end on collision.\n" "Stop Slide will limit the end momentum."; 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; v6[2] = *((_QWORD *)v7 + 2); *((_BYTE *)v6 + 24) = v7[24]; *((_BYTE *)v5 + 281) = 0; v22 = 0; v23 = 4; v24 = 15; strcpy((char *)&v22, "Help"); v9 = SetupTriggerPopup::addHelpButton(a1, &v22, &v19); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11); cocos2d::CCPoint::CCPoint(*(float *)&v9, v16 * 0.5); v17[1] = &v19; v19 = 0; v20 = 5; v21 = 15; strcpy((char *)&v19, "Speed"); cocos2d::CCPoint::CCPoint(0.0, 0.0); cocos2d::CCPoint::operator+(&v25, v17); v13 = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 586, (unsigned int)&v19, (unsigned int)v17, 1061997773, 0, 1, 6, 0, 0, 0x40000000, 0, 0, 1, 2, v13); v18 = &v19; *((_QWORD *)&v19 + 1) = 116; v20 = 9; v21 = 15; *(_QWORD *)&v19 = 0x736F6F4220646E45LL; cocos2d::CCPoint::CCPoint(1.9348836e-19, 0.0); cocos2d::CCPoint::operator+(&v25, v17); LOBYTE(v14) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 588, (unsigned int)&v19, (unsigned int)v17, 1061997773, 0, 1, 6, 0, 0, 0x40000000, 0, 0, 1, 2, v14); v18 = &v19; v20 = 12; v21 = 15; strcpy((char *)&v19, "Max Duration"); BYTE13(v19) = 0; HIWORD(v19) = 0; cocos2d::CCPoint::CCPoint(2.1038611e-19, 0.0); cocos2d::CCPoint::operator+(&v25, v17); LOBYTE(v15) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 590, (unsigned int)&v19, (unsigned int)v17, 1061997773, 0, 1, 6, 0, 0, 0x40000000, 0, 0, 1, 2, v15); v18 = &v19; v20 = 13; v21 = 15; strcpy((char *)&v19, "Allow\nCollide"); HIWORD(v19) = 0; cocos2d::CCPoint::CCPoint(7.3169333e28, -80.0); cocos2d::CCPoint::operator+(&v25, v17); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 587, (unsigned int)&v19, (unsigned int)v17, 0, 0, 0, 1065353216); v18 = &v19; *((_QWORD *)&v19 + 1) = 25956; v20 = 10; v21 = 15; *(_QWORD *)&v19 = 0x696C530A706F7453LL; cocos2d::CCPoint::CCPoint(2.9643018e29, 20.0); cocos2d::CCPoint::operator+(&v25, v17); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 589, (unsigned int)&v19, (unsigned int)v17, 0, 0, 0, 1065353216); v18 = &v19; v19 = 0; v20 = 0; v21 = 15; *(_QWORD *)&v19 = sub_14003AA10(0x20u); v20 = 17; v21 = 31; strcpy((char *)v19, "NO Multi\nActivate"); cocos2d::CCPoint::CCPoint(a1->m_width * 0.5, (float)((float)(v16 * 0.5) - (float)(a1->m_width * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 444, (unsigned int)&v19, v12, 0, 0, 0, 1065353216); a1->updateDefaultTriggerValues(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source