// // EditorUI::updateScaleControl from 0x1003ef2bc to 0x1003ef3e8 (300 bytes) // // 2 xrefs: // > sub_1003EF7E8 @ 0x1003ef7ec // > @ 0x100814078 // // 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 // void __fastcall EditorUI::updateScaleControl(EditorUI *a1) { GameObject *m_selectedObject; // x0 bool isTrigger; // w20 GJScaleControl *m_scaleControl; // x0 unsigned int v5; // w21 GameObject *v6; // x0 GameObject *v7; // x8 int v8; // w8 if ( ((unsigned int (__fastcall *)(GJScaleControl *))a1->m_scaleControl->isVisible)(a1->m_scaleControl) ) { m_selectedObject = a1->m_selectedObject; if ( m_selectedObject ) { isTrigger = GameObject::isTrigger(m_selectedObject); } else { if ( !(unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) { if ( a1->m_increaseScale ) goto LABEL_5; m_scaleControl = a1->m_scaleControl; m_scaleControl->m_lowerBound = 0.5; LABEL_17: v7 = a1->m_selectedObject; if ( !v7 || v7->m_objectID != 747 ) { v8 = 0x40000000; LABEL_23: LODWORD(m_scaleControl->m_upperBound) = v8; goto LABEL_24; } LABEL_22: v8 = 1082130432; goto LABEL_23; } if ( !(unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ) { if ( a1->m_increaseScale ) goto LABEL_5; m_scaleControl = a1->m_scaleControl; m_scaleControl->m_lowerBound = 0.5; goto LABEL_22; } v5 = 0; do { v6 = (GameObject *)sub_10024A388((__int64)a1->m_selectedObjects, v5); isTrigger = GameObject::isTrigger(v6); if ( !isTrigger ) break; ++v5; } while ( v5 < (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) ); } if ( a1->m_increaseScale ) { LABEL_5: m_scaleControl = a1->m_scaleControl; *(_QWORD *)&m_scaleControl->m_upperBound = 0x3E80000040800000LL; LABEL_24: GJScaleControl::loadValues(m_scaleControl, a1->m_selectedObject, a1->m_selectedObjects, &a1->m_objectEditorStates); return; } m_scaleControl = a1->m_scaleControl; m_scaleControl->m_lowerBound = 0.5; if ( isTrigger ) goto LABEL_22; goto LABEL_17; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source