Beispiel #1
0
        public override void PreLoadContent()
        {
            Size     = new Size(parent.Size.Width * 2 / 7, parent.Size.Height * 3 / 7);
            Location = (parent.Size / 2 - Size / 2).ToPoint();
            back     = new AnimeButton(graphicsDevice, this);
            // buts.Add(back);
            reset = new AnimeButton(graphicsDevice, this);
            //buts.Add(reset);
            title = new AnimeButton(graphicsDevice, this);
            //buts.Add(title);
            exit = new AnimeButton(graphicsDevice, this);
            //buts.Add(exit);

            back.Size      = new Size(Size.Width * 4 / 5, Size.Height / 5);
            reset.Size     = back.Size;
            title.Size     = back.Size;
            exit.Size      = back.Size;
            back.Location  = new Point(size.Width / 2 - back.Size.Width / 2, 30);
            reset.Location = back.Location + new Point(0, back.Size.Height + 10);
            title.Location = reset.Location + new Point(0, reset.Size.Height + 10);
            exit.Location  = title.Location + new Point(0, title.Size.Height + 10);

            RegistEvent();
            base.PreLoadContent();
        }
Beispiel #2
0
 public override void PreLoadContent()
 {
     size                   = parent.Size / 2;
     Location               = ((parent.Size - size) / 2).ToPoint();
     ok                     = new AnimeButton(this);
     ok.Size                = new Size(360, 60);
     ok.Location            = new Point((size.Width - ok.Size.Width) / 2, size.Height - ok.Size.Height - 20);
     ok.Text                = GetText("ok");
     ok.BDText.ForeColor    = System.Drawing.Color.White;
     lable                  = new Label(this);
     lable.BDText.ForeColor = System.Drawing.Color.White;
     lable.Text             = "       クレジット\r\n" +
                              " チーム        :Team02\r\n" +
                              " プランナー(リーダー):楊 海松\r\n" +
                              " メインプログラマー  :謝 少杰\r\n" +
                              " プログラマー     :謝 少杰\r\n" +
                              "             鶴見 昌之\r\n" +
                              "             中村 翔\r\n" +
                              "             總領 辰哉\r\n" +
                              " デザイナー      :楊 海松\r\n" +
                              " デザイン       :全員\r\n" +
                              " サウンド       :フリー素材";
     lable.Location = new Point((size.Width - lable.Size.Width) / 2, 20);
     base.PreLoadContent();
 }
 public override void PreLoadContent()
 {
     shutdown                    = new AnimeButton(graphicsDevice, this);
     shutdown.Text               = "";
     antivirus                   = new AnimeButton(graphicsDevice, this);
     antivirus.Text              = "";
     readme                      = new Button(graphicsDevice, this);
     readme.Text                 = "";
     readme.NormalColor          = Color.White * 0.0f;
     readme.Size                 = new Size(50, 50);
     readme.BorderOn             = false;
     shutdown.ImageEntity.Enable = false;
     downText                    = new Label(graphicsDevice, this);
     antivirusText               = new Label(graphicsDevice, this);
     readmeText                  = new Label(graphicsDevice, this);
     antivirusText.TextSize      = 16f;
     antivirusText.Text          = GetText("Antivirus");
     downText.TextSize           = 16f;
     downText.Text               = GetText("ShutDown");
     readmeText.TextSize         = 16f;
     readmeText.Text             = GetText("ReadmeText");
     Size     = new Size(300, 150);
     Location = new Point(0, parent.Size.Height - ((TitleScene)parent).TaskBar.Size.Height - size.Height);
     EventRegist();
     base.PreLoadContent();
 }
Beispiel #4
0
        public override void PreLoadContent()
        {
            Size     = parent.Size * 2 / 3;
            Location = ((parent.Size - size) / 2).ToPoint();
            time     = new Label(graphicsDevice, this);
            for (int i = 0; i < messages.Length; i++)
            {
                messages[i] = new Label(graphicsDevice, this);
            }
            ok          = new AnimeButton(graphicsDevice, this);
            ok.Text     = GetText("OK");
            ok.Size     = new Size(120, 40) * 2;
            ok.Location = new Point((size.Width - ok.Size.Width) / 2, size.Height - ok.Size.Height - 20);
            for (int i = 0; i < messages.Length; i++)
            {
                switch (i)
                {
                case 1:
                case 2:
                    messages[i].TextSize = 36f;
                    break;

                case 3:
                case 4:
                    messages[i].TextSize = 32f;
                    break;

                default:
                    messages[i].TextSize = 24f;
                    break;
                }
                messages[i].Text = GetText("Help" + i);
            }
            messages[0].BDText.ForeColor = System.Drawing.Color.Yellow;

            /*messages[1].BDText.ForeColor = System.Drawing.Color.Red;
             * messages[2].BDText.ForeColor = System.Drawing.Color.FromArgb(220, 220, 80);
             * messages[3].BDText.ForeColor = System.Drawing.Color.LawnGreen;
             * messages[4].BDText.ForeColor = System.Drawing.Color.Yellow;*/
            time.TextSize         = 16f;
            time.BDText.ForeColor = System.Drawing.Color.Yellow;
            for (int i = 0; i < 18; i++)
            {
                new CharaIcon("cursor" + i.ToString(), graphicsDevice, this);
            }
            for (int i = 0; i < 4; i++)
            {
                new PlayerCursor("P" + i.ToString(), graphicsDevice, this);
            }
            EventRegist();
            base.PreLoadContent();
        }
Beispiel #5
0
 public override void PreLoadContent()
 {
     Size            = parent.Size / 2;
     Location        = ((parent.Size - Size) / 2).ToPoint();
     warningText     = new Label(graphicsDevice, this);
     ok              = new AnimeButton(graphicsDevice, this);
     cancel          = new AnimeButton(graphicsDevice, this);
     ok.Text         = GetText("OK");
     cancel.Text     = GetText("Cancel");
     ok.Size         = new Size(120, 40) * 2;
     cancel.Size     = new Size(120, 40) * 2;
     ok.Location     = new Point(150, size.Height - ok.Size.Height - 20);
     cancel.Location = (size - cancel.Size).ToPoint() - new Point(150, 20);
     EventRegist();
     base.PreLoadContent();
 }
 public override void PreLoadContent()
 {
     time  = new Label(graphicsDevice, this);
     date  = new Label(graphicsDevice, this);
     menu  = new Label(graphicsDevice, this);
     start = new AnimeButton(graphicsDevice, this);
     start.ImageEntity.Enable = false;
     time.TextSize            = 12f;
     date.TextSize            = 12f;
     menu.TextSize            = 16f;
     time.Text  = DateTime.Now.ToString("HH:mm");
     date.Text  = DateTime.Now.ToString("yyyy/MM/dd");
     menu.Text  = GetText("Menu");
     Size       = new Size(parent.Size.Width, 50);
     start.Size = new Size(50, 50);
     Location   = new Point(0, parent.Size.Height - size.Height);
     EventRegist();
     base.PreLoadContent();
 }
Beispiel #7
0
        public override void PreLoadContent()
        {
            Size     = new Size(parent.Size.Width * 2 / 7, parent.Size.Height / 3);
            Location = new Point(0, parent.Size.Height - Size.Height);
            start    = new AnimeButton(graphicsDevice, this);
            //buts.Add(start);
            credit = new AnimeButton(graphicsDevice, this);
            //buts.Add(credit);
            exit = new AnimeButton(graphicsDevice, this);
            //buts.Add(exit);

            start.Size      = new Size(size.Width * 4 / 5, size.Height * 1 / 6);
            credit.Size     = start.Size;
            exit.Size       = start.Size;
            start.Location  = new Point(size.Width / 2 - start.Size.Width / 2, 30);
            credit.Location = start.Location + new Point(0, start.Size.Height + 10);
            exit.Location   = credit.Location + new Point(0, credit.Size.Height + 10);

            RegistEvent();
            base.PreLoadContent();
        }
        public override void PreLoadContent()
        {
            Text    = GetText("BackMenu");
            Size    = new Size(450, 420);
            Visible = false;
            backAB  = new AnimeButton(graphicsDevice, this);
            title   = new AnimeButton(graphicsDevice, this);
            reset   = new AnimeButton(graphicsDevice, this);
            exitAB  = new AnimeButton(graphicsDevice, this);

            /*backAB.BDText.ForeColor = System.Drawing.Color.Yellow;
             * title.BDText.ForeColor = System.Drawing.Color.Yellow;
             * reset.BDText.ForeColor = System.Drawing.Color.Yellow;
             * exitAB.BDText.ForeColor = System.Drawing.Color.Yellow;
             * backAB.ImageColor = Color.Blue;
             * title.ImageColor = Color.Blue;
             * reset.ImageColor = Color.Blue;
             * exitAB.ImageColor = Color.Blue;*/
            EventRegist();
            base.PreLoadContent();
        }