Esempio n. 1
0
        ////////////////

        internal void Draw()
        {
            if (Main.mouseLeft && this.IsMouseOverMenuItem())
            {
                this.MenuItemScale = 0.8f;

                Main.PlaySound(SoundID.MenuClose);

                Timers.RunNow(() => {
                    this.MyAction();
                });
            }
            else
            {
                bool _;
                XNASpritebatchLibraries.DrawBatch((sb) => this.DrawMenuItem(),
                                                  SpriteSortMode.Deferred,
                                                  BlendState.AlphaBlend,
                                                  SamplerState.LinearClamp,
                                                  DepthStencilState.None,
                                                  RasterizerState.CullCounterClockwise,
                                                  null,
                                                  Main.UIScaleMatrix,
                                                  out _
                                                  );
            }
        }
Esempio n. 2
0
        private static void DebugModeMenuInfo(GameTime _)
        {
            bool __;

            XNASpritebatchLibraries.DrawBatch((sb) => {
                sb.DrawString(
                    Main.fontMouseText,
                    Main.menuMode + "",
                    new Vector2(Main.screenWidth - 32, Main.screenHeight - 32),
                    Color.White
                    );
            }, out __);
        }