private static void RemoveObjectHighlightInternal(ref MyHudSelectedObjectStatus status, bool reset) { switch (status.Style) { case MyHudObjectHighlightStyle.OutlineHighlight: { MyRenderProxy.UpdateModelHighlight((uint)status.Instance.RenderObjectID, null, status.SubpartIndices, null, -1, 0, status.Instance.InstanceID); break; } } if (reset) { status.Reset(); } }
private static void RemoveObjectHighlightInternal(ref MyHudSelectedObjectStatus status, bool reset) { switch (status.Style) { case MyHudObjectHighlightStyle.HighlightStyle2: { MyRenderProxy.UpdateModelHighlight((uint)status.Instance.RenderObjectID, 0, null, null, null, null, -1); break; } } if (reset) { status.Reset(); } }
private static void RemoveObjectHighlightInternal(ref MyHudSelectedObjectStatus status, bool reset) { switch (status.Style) { case MyHudObjectHighlightStyle.OutlineHighlight: { var data = new MyHighlightSystem.MyHighlightData(status.Instance.Owner.EntityId); //MyRenderProxy.UpdateModelHighlight((uint)status.Instance.RenderObjectID, null, status.SubpartIndices, null, -1, 0, status.Instance.InstanceID); MySession.Static.GetComponent <MyHighlightSystem>().RequestHighlightChange(data); break; } } if (reset) { status.Reset(); } }
private static void RemoveObjectHighlightInternal(ref MyHudSelectedObjectStatus status, bool reset) { switch (status.Style) { case MyHudObjectHighlightStyle.OutlineHighlight: { if (!MySession.Static.GetComponent <MyHighlightSystem>().IsReserved(status.Instance.Owner.EntityId)) { MyRenderProxy.UpdateModelHighlight((uint)status.Instance.RenderObjectID, null, status.SubpartIndices, null, -1, 0, status.Instance.InstanceID); } break; } } if (reset) { status.Reset(); } }
private void DoTransition() { PreviousObject = CurrentObject; State = MyHudSelectedObjectState.MarkedForVisible; }
private static void RemoveObjectHighlightInternal(ref MyHudSelectedObjectStatus status, bool reset) { switch (status.Style) { case MyHudObjectHighlightStyle.OutlineHighlight: { if (!MySession.Static.GetComponent<MyHighlightSystem>().IsReserved(status.Instance.Owner.EntityId)) MyRenderProxy.UpdateModelHighlight((uint)status.Instance.RenderObjectID, null, status.SubpartIndices, null, -1, 0, status.Instance.InstanceID); break; } } if (reset) status.Reset(); }
private static void RemoveObjectHighlightInternal(ref MyHudSelectedObjectStatus status, bool reset) { switch (status.Style) { case MyHudObjectHighlightStyle.HighlightStyle2: { MyRenderProxy.UpdateModelHighlight((uint)status.Instance.RenderObjectID, 0, null, null, null, null, -1); break; } } if (reset) status.Reset(); }
private static void RemoveObjectHighlightInternal(ref MyHudSelectedObjectStatus status, bool reset) { switch (status.Style) { case MyHudObjectHighlightStyle.OutlineHighlight: { MyRenderProxy.UpdateModelHighlight((uint)status.Instance.RenderObjectID, null, status.SubpartIndices, null, -1, 0, status.Instance.InstanceID); break; } } if (reset) status.Reset(); }