Exemplo n.º 1
0
        private void Init()
        {
            if (base.ContainsControl(btnUp))
            {
                base.RemoveControl(btnUp);
            }
            btnUp           = new Button();
            btnUp.OnClick  += new EventHandler <SdlDotNet.Input.MouseButtonEventArgs>(btnUp_OnClick);
            btnUp.Location  = new Point(0, 0);
            btnUp.Size      = new Size(this.Width, buttonHeight);
            btnUp.Backcolor = SystemColors.Control;
            this.AddControl(btnUp);

            if (base.ContainsControl(btnDown))
            {
                base.RemoveControl(btnDown);
            }
            btnDown           = new Button();
            btnDown.OnClick  += new EventHandler <SdlDotNet.Input.MouseButtonEventArgs>(btnDown_OnClick);
            btnDown.Location  = new Point(0, this.Height - buttonHeight);
            btnDown.Size      = new Size(this.Width, 10);
            btnDown.Backcolor = SystemColors.Control;
            this.AddControl(btnDown);

            mBackground = new SdlDotNet.Graphics.Surface(this.Width, this.Height - (buttonHeight * 2));
            cursorSurf  = new SdlDotNet.Graphics.Surface(7, 12);
            cursorSurf.Fill(Color.Gray);
        }
Exemplo n.º 2
0
        public winChars()
        {
            picBackground               = new Client.Logic.Gui.PictureBox();
            picBackground.Image         = Gfx.GuiManager.CharSelect;
            picBackground.ImageSizeMode = Client.Logic.Gui.PictureBox.SizeMode.AutoSize;
            picBackground.Location      = new Point(0, 0);

            this.Location      = GetCenter(picBackground.Size);
            this.Size          = picBackground.Size;
            this.Text          = "Pokemon Mystery Universe - Character Select";
            this.ShowInTaskBar = true;
            this.TaskBarText   = "Character Select";

            btnChar1              = new Client.Logic.Gui.Button(Gfx.FontManager.LoadFont("PMU", 24));
            btnChar1.Location     = new Point(16, 104);
            btnChar1.Size         = new Size(359, 41);
            btnChar1.FocusOnClick = true;
            btnChar1.Backcolor    = Color.SteelBlue;
            btnChar1.HoverColor   = Color.SkyBlue;
            btnChar1.Text         = "Character 1";

            btnChar2              = new Client.Logic.Gui.Button(Gfx.FontManager.LoadFont("PMU", 24));
            btnChar2.Location     = new Point(16, 145);
            btnChar2.Size         = new Size(359, 41);
            btnChar2.FocusOnClick = true;
            btnChar2.Backcolor    = Color.SteelBlue;
            btnChar2.HoverColor   = Color.SkyBlue;
            btnChar2.Text         = "Character 2";

            btnChar3              = new Client.Logic.Gui.Button(Gfx.FontManager.LoadFont("PMU", 24));
            btnChar3.Location     = new Point(16, 186);
            btnChar3.Size         = new Size(359, 41);
            btnChar3.FocusOnClick = true;
            btnChar3.Backcolor    = Color.SteelBlue;
            btnChar3.HoverColor   = Color.SkyBlue;
            btnChar3.Text         = "Character 3";

            lblUseCharacter             = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblUseCharacter.Location    = new Point(26, 232);
            lblUseCharacter.Size        = new Size(75, 14);
            lblUseCharacter.ForeColor   = Color.Black;
            lblUseCharacter.TextYOffset = -4;
            lblUseCharacter.Text        = "Use Character";
            lblUseCharacter.OnClick    += new EventHandler <SdlDotNet.Input.MouseButtonEventArgs>(lblUseCharacter_OnClick);

            lblDeleteCharacter             = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblDeleteCharacter.Location    = new Point(158, 232);
            lblDeleteCharacter.Size        = new Size(87, 14);
            lblDeleteCharacter.ForeColor   = Color.Black;
            lblDeleteCharacter.TextYOffset = -4;
            lblDeleteCharacter.Text        = "Delete Character";

            lblNewCharacter             = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblNewCharacter.Location    = new Point(286, 232);
            lblNewCharacter.Size        = new Size(78, 14);
            lblNewCharacter.ForeColor   = Color.Black;
            lblNewCharacter.TextYOffset = -4;
            lblNewCharacter.Text        = "New Character";

            lblLoginScreen             = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblLoginScreen.Location    = new Point(145, 349);
            lblLoginScreen.Size        = new Size(110, 14);
            lblLoginScreen.ForeColor   = Color.Black;
            lblLoginScreen.TextYOffset = -4;
            lblLoginScreen.TextXOffset = 3;
            lblLoginScreen.Text        = "Back to Login Screen";
            lblLoginScreen.OnClick    += new EventHandler <SdlDotNet.Input.MouseButtonEventArgs>(lblMainMenu_OnClick);

            this.AddControl(picBackground);
            this.AddControl(btnChar1);
            this.AddControl(btnChar2);
            this.AddControl(btnChar3);

            this.AddControl(lblUseCharacter);
            this.AddControl(lblDeleteCharacter);
            this.AddControl(lblNewCharacter);

            this.AddControl(lblLoginScreen);
            this.AddControl(lblUseCharacter);

            btnChar1.Focused = true;
        }
Exemplo n.º 3
0
        public winChars()
        {
            picBackground = new Client.Logic.Gui.PictureBox();
            picBackground.Image = Gfx.GuiManager.CharSelect;
            picBackground.ImageSizeMode = Client.Logic.Gui.PictureBox.SizeMode.AutoSize;
            picBackground.Location = new Point(0, 0);

            this.Location = GetCenter(picBackground.Size);
            this.Size = picBackground.Size;
            this.Text = "Pokemon Mystery Universe - Character Select";
            this.ShowInTaskBar = true;
            this.TaskBarText = "Character Select";

            btnChar1 = new Client.Logic.Gui.Button(Gfx.FontManager.LoadFont("PMU", 24));
            btnChar1.Location = new Point(16, 104);
            btnChar1.Size = new Size(359, 41);
            btnChar1.FocusOnClick = true;
            btnChar1.Backcolor = Color.SteelBlue;
            btnChar1.HoverColor = Color.SkyBlue;
            btnChar1.Text = "Character 1";

            btnChar2 = new Client.Logic.Gui.Button(Gfx.FontManager.LoadFont("PMU", 24));
            btnChar2.Location = new Point(16, 145);
            btnChar2.Size = new Size(359, 41);
            btnChar2.FocusOnClick = true;
            btnChar2.Backcolor = Color.SteelBlue;
            btnChar2.HoverColor = Color.SkyBlue;
            btnChar2.Text = "Character 2";

            btnChar3 = new Client.Logic.Gui.Button(Gfx.FontManager.LoadFont("PMU", 24));
            btnChar3.Location = new Point(16, 186);
            btnChar3.Size = new Size(359, 41);
            btnChar3.FocusOnClick = true;
            btnChar3.Backcolor = Color.SteelBlue;
            btnChar3.HoverColor = Color.SkyBlue;
            btnChar3.Text = "Character 3";

            lblUseCharacter = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblUseCharacter.Location = new Point(26, 232);
            lblUseCharacter.Size = new Size(75, 14);
            lblUseCharacter.ForeColor = Color.Black;
            lblUseCharacter.TextYOffset = -4;
            lblUseCharacter.Text = "Use Character";
            lblUseCharacter.OnClick += new EventHandler<SdlDotNet.Input.MouseButtonEventArgs>(lblUseCharacter_OnClick);

            lblDeleteCharacter = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblDeleteCharacter.Location = new Point(158, 232);
            lblDeleteCharacter.Size = new Size(87, 14);
            lblDeleteCharacter.ForeColor = Color.Black;
            lblDeleteCharacter.TextYOffset = -4;
            lblDeleteCharacter.Text = "Delete Character";

            lblNewCharacter = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblNewCharacter.Location = new Point(286, 232);
            lblNewCharacter.Size = new Size(78, 14);
            lblNewCharacter.ForeColor = Color.Black;
            lblNewCharacter.TextYOffset = -4;
            lblNewCharacter.Text = "New Character";

            lblLoginScreen = new Client.Logic.Gui.Label(Gfx.FontManager.LoadFont("PMU", 18));
            lblLoginScreen.Location = new Point(145, 349);
            lblLoginScreen.Size = new Size(110, 14);
            lblLoginScreen.ForeColor = Color.Black;
            lblLoginScreen.TextYOffset = -4;
            lblLoginScreen.TextXOffset = 3;
            lblLoginScreen.Text = "Back to Login Screen";
            lblLoginScreen.OnClick += new EventHandler<SdlDotNet.Input.MouseButtonEventArgs>(lblMainMenu_OnClick);

            this.AddControl(picBackground);
            this.AddControl(btnChar1);
            this.AddControl(btnChar2);
            this.AddControl(btnChar3);

            this.AddControl(lblUseCharacter);
            this.AddControl(lblDeleteCharacter);
            this.AddControl(lblNewCharacter);

            this.AddControl(lblLoginScreen);
            this.AddControl(lblUseCharacter);

            btnChar1.Focused = true;
        }
Exemplo n.º 4
0
        private void Init()
        {
            if (base.ContainsControl(btnUp)) {
                base.RemoveControl(btnUp);
            }
            btnUp = new Button();
            btnUp.OnClick += new EventHandler<SdlDotNet.Input.MouseButtonEventArgs>(btnUp_OnClick);
            btnUp.Location = new Point(0, 0);
            btnUp.Size = new Size(this.Width, buttonHeight);
            btnUp.Backcolor = SystemColors.Control;
            this.AddControl(btnUp);

            if (base.ContainsControl(btnDown)) {
                base.RemoveControl(btnDown);
            }
            btnDown = new Button();
            btnDown.OnClick += new EventHandler<SdlDotNet.Input.MouseButtonEventArgs>(btnDown_OnClick);
            btnDown.Location = new Point(0, this.Height - buttonHeight);
            btnDown.Size = new Size(this.Width, 10);
            btnDown.Backcolor = SystemColors.Control;
            this.AddControl(btnDown);

            mBackground = new SdlDotNet.Graphics.Surface(this.Width, this.Height - (buttonHeight * 2));
            cursorSurf = new SdlDotNet.Graphics.Surface(7, 12);
            cursorSurf.Fill(Color.Gray);
        }