Beispiel #1
0
 internal Vector2Drawer()
     : base(GearsetSettings.Instance.LineDrawerConfig)
 {
     _lines = new InternalLineDrawer();
     _lines.CoordinateSpace = CoordinateSpace.GameSpace;
     Children.Add(_lines);
 }
Beispiel #2
0
 internal Vector2Drawer()
     : base(GearsetSettings.Instance.LineDrawerConfig)
 {
     _lines = new InternalLineDrawer();
     _lines.CoordinateSpace = CoordinateSpace.GameSpace;
     Children.Add(_lines);
 }
Beispiel #3
0
 internal Vector3Drawer()
     : base(GearsetSettings.Instance.LineDrawerConfig)
 {
     lines = new InternalLineDrawer();
     this.Children.Add(lines);
 }
Beispiel #4
0
 /// <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);
 }
Beispiel #5
0
 public void DrawCrossLines(Color color, InternalLineDrawer lineDrawer)
 {
     lineDrawer.ShowLineOnce(TopLeft, BottomRight, color);
     lineDrawer.ShowLineOnce(TopRight, BottomLeft, color);
 }
Beispiel #6
0
 internal Vector3Drawer()
     : base(GearsetSettings.Instance.LineDrawerConfig)
 {
     lines = new InternalLineDrawer();
     this.Children.Add(lines);
 }
Beispiel #7
0
 internal BoxDrawer()
     : base(GearsetSettings.Instance.LineDrawerConfig)
 {
     _lines = new InternalLineDrawer();
     Children.Add(_lines);
 }
Beispiel #8
0
 internal BoxDrawer()
     : base(GearsetSettings.Instance.LineDrawerConfig)
 {
     _lines = new InternalLineDrawer();
     Children.Add(_lines);
 }