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; } }
public UIMessage(string vMessage, string vMessageMenu, Botoes vBotoes, Icones vIcone):base(vMessage: vMessage, vMessageMenu: vMessageMenu, vBotoes: vBotoes, vIcone: vIcone) { InitializeComponent(); }
public UIMessage(string vMessage, string vMessageMenu, Botoes vBotoes, Icones vIcone) : base(vMessage: vMessage, vMessageMenu: vMessageMenu, vBotoes: vBotoes, vIcone: vIcone) { InitializeComponent(); }
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(); }