コード例 #1
0
        public void method_9(DrawingContext drawingContext_0, float float_0, float float_1, Gate gate_0)
        {
            System.Drawing.Color color = MapUtils.smethod_16(this.Map, gate_0);
            SolidColorBrush      brush = new SolidColorBrush(System.Windows.Media.Color.FromArgb(color.A, color.R, color.G, color.B));

            drawingContext_0.DrawRectangle(brush, null, MapControl.smethod_0((double)((float)gate_0.PosX * float_0), (double)((float)gate_0.PosY * float_1), 3.0, 3.0));
            drawingContext_0.DrawEllipse(null, new System.Windows.Media.Pen(brush, 2.0), new System.Windows.Point((double)((float)gate_0.PosX * float_0), (double)((float)gate_0.PosY * float_1)), 10.0, 10.0);
        }
コード例 #2
0
 public void method_8(DrawingContext drawingContext_0, float float_0, float float_1, GroupManager.GroupMember groupMember_0)
 {
     if (this.Map.method_4(groupMember_0.Id) == null)
     {
         if (groupMember_0.MapId == this.Map.MapId)
         {
             Vector2         position        = groupMember_0.Position;
             SolidColorBrush solidColorBrush = new SolidColorBrush(Colors.Lime);
             drawingContext_0.DrawRectangle(solidColorBrush, null, MapControl.smethod_0((double)(position.X * float_0), (double)(position.Y * float_1), 4.0, 4.0));
             drawingContext_0.DrawText(new FormattedText(groupMember_0.Name, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, new Typeface("Arial"), 9.0, solidColorBrush, 1.25), new System.Windows.Point((double)(position.X * float_0), (double)(position.Y * float_1)));
             return;
         }
     }
 }
コード例 #3
0
        public void method_7(DrawingContext drawingContext_0, float float_0, float float_1, Ship ship_0)
        {
            Vector2 position = ship_0.Position;

            System.Drawing.Color     color = MapUtils.smethod_16(this.Context.Map, ship_0);
            System.Windows.Media.Pen pen   = null;
            if (this.Map.SelectedShip == ship_0)
            {
                pen = new System.Windows.Media.Pen(System.Windows.Media.Brushes.Violet, 2.0);
            }
            SolidColorBrush solidColorBrush = new SolidColorBrush(System.Windows.Media.Color.FromArgb(color.A, color.R, color.G, color.B));

            drawingContext_0.DrawRectangle(solidColorBrush, pen, MapControl.smethod_0((double)(position.X * float_0), (double)(position.Y * float_1), 4.0, 4.0));
            drawingContext_0.DrawText(new FormattedText(ship_0.Name, CultureInfo.InvariantCulture, FlowDirection.LeftToRight, new Typeface("Arial"), 9.0, solidColorBrush, 1.25), new System.Windows.Point((double)((float)ship_0.PosX * float_0), (double)((float)ship_0.PosY * float_1)));
        }
コード例 #4
0
        public void method_6(DrawingContext drawingContext_0, float float_0, float float_1, Hero hero_0)
        {
            Vector2 position            = hero_0.Position;
            Vector2?movementDestination = hero_0.MovementDestination;

            if (movementDestination != null)
            {
                Vector2 value = movementDestination.Value;
                drawingContext_0.DrawLine(new System.Windows.Media.Pen(System.Windows.Media.Brushes.RoyalBlue, 2.0), new System.Windows.Point((double)(position.X * float_0), (double)(position.Y * float_1)), new System.Windows.Point((double)(value.X * float_0), (double)(value.Y * float_1)));
            }
            SolidColorBrush solidColorBrush = System.Windows.Media.Brushes.Chartreuse.Clone();

            solidColorBrush.Opacity = 0.3;
            drawingContext_0.DrawRectangle(solidColorBrush, null, MapControl.smethod_0((double)(position.X * float_0), (double)(position.Y * float_1), (double)(1920f * float_0), (double)(1080f * float_1)));
            drawingContext_0.DrawRectangle(System.Windows.Media.Brushes.DarkCyan, null, MapControl.smethod_0((double)(position.X * float_0), (double)(position.Y * float_1), 6.0, 6.0));
        }
コード例 #5
0
        public void method_11(DrawingContext drawingContext_0, float float_0, float float_1, GClass839 gclass839_0)
        {
            foreach (KeyValuePair <string, Collectible> keyValuePair in gclass839_0.DormantTargets)
            {
                Collectible value = keyValuePair.Value;
                drawingContext_0.DrawRectangle(System.Windows.Media.Brushes.Pink, null, MapControl.smethod_0((double)(value.Position.X * float_0), (double)(value.Position.Y * float_1), 2.0, 2.0));
            }
            if (gclass839_0.RoamTarget != Vector2.Zero)
            {
                Vector2 roamTarget = gclass839_0.RoamTarget;
                drawingContext_0.DrawEllipse(System.Windows.Media.Brushes.Magenta, null, new System.Windows.Point((double)(roamTarget.X * float_0), (double)(roamTarget.Y * float_1)), 6.0, 6.0);
            }
            GClass853        behavior = gclass839_0.Behavior;
            List <Rectangle> list     = (behavior != null) ? behavior.vmethod_17() : null;

            if (list != null)
            {
                foreach (Rectangle rectangle in list)
                {
                    Rect rectangle2 = new Rect((double)((float)rectangle.X * float_0), (double)((float)rectangle.Y * float_1), (double)((float)rectangle.Width * float_0), (double)((float)rectangle.Height * float_1));
                    drawingContext_0.DrawRectangle(null, new System.Windows.Media.Pen(System.Windows.Media.Brushes.Pink, 2.0), rectangle2);
                }
            }
        }
コード例 #6
0
 public void method_10(DrawingContext drawingContext_0, float float_0, float float_1, Collectible collectible_0)
 {
     System.Drawing.Color       color = MapUtils.smethod_16(this.Map, collectible_0);
     System.Windows.Media.Brush brush = new SolidColorBrush(System.Windows.Media.Color.FromArgb(color.A, color.R, color.G, color.B));
     drawingContext_0.DrawRectangle(brush, null, MapControl.smethod_0((double)((float)collectible_0.PosX * float_0), (double)((float)collectible_0.PosY * float_1), 3.0, 3.0));
 }