Ejemplo n.º 1
0
        public override void vmethod_1()
        {
            Texture2D texture2D_1 = this.contentManager_0.Load <Texture2D>("Images/uiHelpKeyboard");

            this.gclass141_1   = new GClass141(texture2D_1, new Microsoft.Xna.Framework.Rectangle(0, GClass138.graphicsDeviceManager_0.PreferredBackBufferHeight - texture2D_1.Height, texture2D_1.Width, texture2D_1.Height));
            this.soundEffect_1 = this.contentManager_0.Load <SoundEffect>("cursorMove");
            this.soundEffect_2 = this.contentManager_0.Load <SoundEffect>("cursorOk");
            this.video_0       = this.contentManager_0.Load <Video>("bgVid");
            this.spriteFont_0  = this.contentManager_0.Load <SpriteFont>("base");
            this.texture2D_0   = this.contentManager_0.Load <Texture2D>("Images/bgTest");
            this.texture2D_5   = this.contentManager_0.Load <Texture2D>("Images/videoBg");
            this.texture2D_3   = this.contentManager_0.Load <Texture2D>("Images/rectangleText");
            this.texture2D_4   = this.contentManager_0.Load <Texture2D>("Images/sel");
            this.gclass142_0   = new GClass142(this.video_0)
            {
                IsLooping = true
            };
            this.int_5       = (GClass138.graphicsDeviceManager_0.PreferredBackBufferHeight - 5 * (128 + this.int_3)) / 2;
            this.int_6       = (GClass138.graphicsDeviceManager_0.PreferredBackBufferWidth - 10 * (128 + this.int_3)) / 2;
            this.texture2D_2 = new Texture2D(GClass138.graphicsDevice_0, 1, 1);
            this.texture2D_2.SetData <Microsoft.Xna.Framework.Color>(new Microsoft.Xna.Framework.Color[1]
            {
                Microsoft.Xna.Framework.Color.Black
            });
            Vector2 vector2 = this.method_13(0, 0);

            this.gclass143_0.Cursor = new GClass141(this.texture2D_4, new Microsoft.Xna.Framework.Rectangle((int)vector2.X - this.int_8 / 2, (int)vector2.Y - this.int_8 / 2, this.int_8, this.int_8));
            this.gclass143_0.method_5(new Microsoft.Xna.Framework.Rectangle((int)vector2.X - this.int_8 / 2, (int)vector2.Y - this.int_8 / 2, this.int_8, this.int_8));
            this.gclass143_0.Cursor.method_1(new GClass137(new GClass134(1.0, 1.1, 250.0)
            {
                IsLooping = true
            }, "Scale"));
            this.method_9();
            base.vmethod_1();
        }
Ejemplo n.º 2
0
        public void method_5(Rectangle rectangle_1)
        {
            this.rectangle_0 = rectangle_1;
            GClass141 cursor = this.Cursor;

            if (cursor == null)
            {
                return;
            }
            cursor.method_3(new Vector2((float)this.rectangle_0.X, (float)rectangle_1.Y), true, 2.5f);
        }
Ejemplo n.º 3
0
        public void method_6(GameTime gameTime_0)
        {
            foreach (GClass140 gclass140 in this.list_0.ToArray())
            {
                gclass140.vmethod_1(gameTime_0);
            }
            GClass141 cursor = this.Cursor;

            if (cursor == null)
            {
                return;
            }
            cursor.vmethod_1(gameTime_0);
        }
Ejemplo n.º 4
0
        public void method_3(GameTime gameTime_0, SpriteBatch spriteBatch_0)
        {
            foreach (GClass140 gclass140 in ((IEnumerable <GClass140>) this.list_0.ToArray()).Where <GClass140>((Func <GClass140, bool>)(gclass140_0 => !gclass140_0.Hide)))
            {
                gclass140.vmethod_0(gameTime_0, spriteBatch_0);
            }
            GClass141 cursor = this.Cursor;

            if (cursor == null)
            {
                return;
            }
            cursor.vmethod_0(gameTime_0, spriteBatch_0);
        }
Ejemplo n.º 5
0
 private void method_18()
 {
     if (this.GClass32_0 == null)
     {
         return;
     }
     this.GClass32_0.method_28((Action <GClass74, GClass32>)((gclass74_0, gclass32_1) =>
     {
         try
         {
             if (gclass32_1 != this.GClass32_0)
             {
                 return;
             }
             Texture2D texture = this.gclass141_0.Texture;
             if (texture != null)
             {
                 // ISSUE: explicit non-virtual call
                 __nonvirtual(texture.Dispose());
             }
             this.gclass141_0.Texture = (Texture2D)null;
             GClass141 gclass1410     = this.gclass141_0;
             if (gclass1410 != null)
             {
                 gclass1410.method_5();
             }
             if (gclass74_0.Screenshots == null || gclass74_0.Screenshots.Screenshot.Count < 3)
             {
                 return;
             }
             Texture2D texture2D = this.method_4(gclass74_0.Screenshots.Screenshot[0].ImageUrl[0].Value);
             if (gclass32_1 == this.GClass32_0)
             {
                 this.gclass141_0.Texture = texture2D;
             }
             else
             {
                 if (texture2D == null)
                 {
                     return;
                 }
                 // ISSUE: explicit non-virtual call
                 __nonvirtual(texture2D.Dispose());
             }
         }
         catch
         {
         }
     }));
 }
Ejemplo n.º 6
0
        public Class120(Game game_0)
            : base(game_0)
        {
            GClass141 gclass141 = new GClass141((Texture2D)null, new Microsoft.Xna.Framework.Rectangle(0, 0, GClass138.graphicsDeviceManager_0.PreferredBackBufferWidth, GClass138.graphicsDeviceManager_0.PreferredBackBufferHeight));

            gclass141.color_0 = Microsoft.Xna.Framework.Color.Blue;
            gclass141.Opacity = 0.300000011920929;
            this.gclass141_0  = gclass141;
            this.gclass141_0.method_1(new GClass137(new GClass134(1.0, 1.25, 6000.0)
            {
                IsLooping = true
            }, "Scale"));
            WebBrowser webBrowser = new WebBrowser()
            {
                ScriptErrorsSuppressed = true, DocumentText = string.Format("<html><head><title></title></head><body>{0}</body></html>", (object)"<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/yg2u_De8j5o?autoplay=1\" frameborder=\"0\" allowfullscreen></iframe>")
            };
        }
Ejemplo n.º 7
0
 public override void vmethod_3(GameTime gameTime_0)
 {
     this.gclass143_0.method_6(gameTime_0);
     if (this.bool_2)
     {
         return;
     }
     Keyboard.GetState();
     if (this.gclass139_0.method_2(Microsoft.Xna.Framework.Input.Keys.Right))
     {
         this.method_16(true, false);
     }
     if (this.gclass139_0.method_2(Microsoft.Xna.Framework.Input.Keys.Left))
     {
         this.method_16(true, true);
     }
     if (this.gclass139_0.method_2(Microsoft.Xna.Framework.Input.Keys.Up))
     {
         this.method_16(false, true);
     }
     if (this.gclass139_0.method_2(Microsoft.Xna.Framework.Input.Keys.Down))
     {
         this.method_16(false, false);
     }
     if (this.gclass139_0.method_2(Microsoft.Xna.Framework.Input.Keys.Enter))
     {
         this.gclass143_0.method_1();
     }
     if (this.gclass139_0.method_2(Microsoft.Xna.Framework.Input.Keys.Space) && this.Int32_0 > -1)
     {
         if (this.int_7 == 0)
         {
             try
             {
                 this.int_4 = this.Int32_0;
                 GClass141 gclass141 = this.list_0.First <GClass141>((Func <GClass141, bool>)(gclass141_2 => gclass141_2.Tag == this.gclass32_0[this.int_4]));
                 ++this.int_7;
                 Microsoft.Xna.Framework.Color orange = Microsoft.Xna.Framework.Color.Orange;
                 gclass141.color_0 = orange;
             }
             catch
             {
             }
         }
         else if (this.int_7 == 1)
         {
             GClass141 gclass141_1 = (GClass141)null;
             GClass141 gclass141_3 = (GClass141)null;
             try
             {
                 gclass141_1 = this.list_0.First <GClass141>((Func <GClass141, bool>)(gclass141_2 => gclass141_2.Tag == this.gclass32_0[this.int_4]));
             }
             catch
             {
             }
             try
             {
                 gclass141_3 = this.list_0.First <GClass141>((Func <GClass141, bool>)(gclass141_2 => gclass141_2.Tag == this.gclass32_0[this.Int32_0]));
             }
             catch
             {
             }
             if (gclass141_1 == gclass141_3)
             {
                 gclass141_1.color_0 = Microsoft.Xna.Framework.Color.White;
                 this.int_7          = 0;
                 return;
             }
             GClass32 gclass32 = this.gclass32_0[this.int_4];
             this.gclass32_0[this.int_4]   = this.gclass32_0[this.Int32_0];
             this.gclass32_0[this.Int32_0] = gclass32;
             gclass141_1.color_0           = Microsoft.Xna.Framework.Color.White;
             if (gclass141_3 != null)
             {
                 gclass141_3.method_3(gclass141_1.Vector2_0, true, 2f);
             }
             if (gclass141_1 != null)
             {
                 gclass141_1.method_3(this.method_12(this.int_9, this.int_10), true, 2f);
             }
             this.method_19();
             this.int_7 = 0;
         }
     }
     try
     {
         if (!GamePad.GetCapabilities(PlayerIndex.One).IsConnected)
         {
             return;
         }
         GamePadState       state       = GamePad.GetState(PlayerIndex.One);
         GamePadThumbSticks thumbSticks = state.ThumbSticks;
         if ((double)thumbSticks.Left.X < 0.5)
         {
             this.method_16(true, true);
         }
         thumbSticks = state.ThumbSticks;
         if ((double)thumbSticks.Left.X > 0.5)
         {
             this.method_16(true, false);
         }
         thumbSticks = state.ThumbSticks;
         if ((double)thumbSticks.Left.Y < 0.5)
         {
             this.method_16(false, true);
         }
         thumbSticks = state.ThumbSticks;
         if ((double)thumbSticks.Left.Y <= 0.5)
         {
             return;
         }
         this.method_16(false, false);
     }
     catch
     {
     }
 }