Esempio n. 1
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));
 }
Esempio n. 2
0
        public void method_11(DrawingContext drawingContext_0, float float_0, float float_1, GClass890 gclass890_0)
        {
            foreach (KeyValuePair <string, Collectible> keyValuePair in gclass890_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 (gclass890_0.RoamTarget != Vector2.Zero)
            {
                Vector2 roamTarget = gclass890_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);
            }
            GClass904        behavior = gclass890_0.Behavior;
            List <Rectangle> list     = (behavior != null) ? behavior.vmethod_16() : 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);
                }
            }
        }
Esempio n. 3
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));
        }