private void ShowCircle(CircleHighlightID id) { if (_circles == null) { D.AssertNotNull(_trackedClientTransform, DebugName); _circles = new HighlightCircle(CircleTitle, _trackedClientTransform, _circleRadius, _isCircleSizeDynamic, maxCircles: 3); _circles.Colors = new List<GameColor>() { TempGameValues.FocusedColor, TempGameValues.SelectedColor, TempGameValues.GeneralHighlightColor }; _circles.Widths = new List<float>() { 2F, 2F, 1F }; } _circles.Show(true, GetCircleIndex(id)); }
private int GetCircleIndex(CircleHighlightID id) { switch (id) { case CircleHighlightID.Focused: return 0; case CircleHighlightID.Selected: return 1; case CircleHighlightID.UnitElement: return 2; default: throw new NotImplementedException(ErrorMessages.UnanticipatedSwitchValue.Inject(id)); } }
private void HideCircle(CircleHighlightID id) { if (_circles == null) { return; } _circles.Show(false, GetCircleIndex(id)); }