Пример #1
0
        public void ExibirBotoes(Botoes configuracao)
        {
            Point posBotao = new Point(_tela.Size.Width - btnFechar.Width, 0);

            btnFechar.Visible = (configuracao & Botoes.Fechar) != 0;
            if (btnFechar.Visible)
            {
                posBotao.X -= btnFechar.Width;
            }

            if ((configuracao & Botoes.Maximizar) != 0)
            {
                btnRestaurar.Visible = _tela.WindowState == FormWindowState.Maximized;
                btnMaximizar.Visible = _tela.WindowState != FormWindowState.Maximized;

                btnRestaurar.Location = posBotao;
                btnMaximizar.Location = posBotao;

                posBotao.X -= btnMaximizar.Width;
            }
            else
            {
                btnRestaurar.Visible = false;
                btnMaximizar.Visible = false;
            }

            btnMinimizar.Visible = (configuracao & Botoes.Minimizar) != 0;
            if (btnMinimizar.Visible)
            {
                btnMinimizar.Location = posBotao;
            }
        }
Пример #2
0
 public UIMessage(string vMessage, string vMessageMenu, 
     Botoes vBotoes, Icones vIcone):base(vMessage: vMessage,
     vMessageMenu: vMessageMenu, vBotoes: vBotoes, vIcone: vIcone)
 {
     InitializeComponent();
 }
Пример #3
0
 public UIMessage(string vMessage, string vMessageMenu,
                  Botoes vBotoes, Icones vIcone) : base(vMessage: vMessage,
                                                        vMessageMenu: vMessageMenu, vBotoes: vBotoes, vIcone: vIcone)
 {
     InitializeComponent();
 }
Пример #4
0
        protected override void Initialize()
        {
            player = new Player();
            cube = new Cube(new Vector3(0, .5f, -3));
            plano = new Plano(GraphicsDevice);

            // Cria a "chasing camera", que segue o cubo
            InicializaCamera(graphics.GraphicsDevice);

            telas = new Telas();
            timeRect = new Rectangle(700, 40, 25, 100);
            botoes = new Botoes();

            base.Initialize();
        }