internal Vector2Drawer() : base(GearsetSettings.Instance.LineDrawerConfig) { _lines = new InternalLineDrawer(); _lines.CoordinateSpace = CoordinateSpace.GameSpace; Children.Add(_lines); }
internal Vector3Drawer() : base(GearsetSettings.Instance.LineDrawerConfig) { lines = new InternalLineDrawer(); this.Children.Add(lines); }
/// <summary> /// Helper methods, draws the border of the box. Must be called every frame. /// TODO: Move this to a UI debug drawer or something similar /// </summary> internal void DrawBorderLines(Color color, InternalLineDrawer lineDrawer) { var screenPos = GetScreenPosition(); var tl = screenPos; var tr = new Vector2(screenPos.X + _size.X, screenPos.Y); var br = new Vector2(screenPos.X + _size.X, screenPos.Y + _size.Y); var bl = new Vector2(screenPos.X, screenPos.Y + _size.Y); lineDrawer.ShowLineOnce(tl, tr, color); lineDrawer.ShowLineOnce(tr, br, color); lineDrawer.ShowLineOnce(br, bl, color); lineDrawer.ShowLineOnce(bl, tl, color); }
public void DrawCrossLines(Color color, InternalLineDrawer lineDrawer) { lineDrawer.ShowLineOnce(TopLeft, BottomRight, color); lineDrawer.ShowLineOnce(TopRight, BottomLeft, color); }
internal BoxDrawer() : base(GearsetSettings.Instance.LineDrawerConfig) { _lines = new InternalLineDrawer(); Children.Add(_lines); }