Beispiel #1
0
        public override void LoadContent()
        {
            Image                = ImageManage.GetSImage("help.png");
            ok.Image             = ImageManage.GetSImage("button01");
            messages[0].Location = Alignment.GetMXFAlignment(ContentAlignment.MiddleRight, size, messages[0].Size);

            /*messages[1].Location = new Point(0, TitleSize + 50);
             * messages[2].Location = new Point(size.Width - messages[2].Size.Width, TitleSize + 50);
             * messages[3].Location = new Point((size.Width - messages[3].Size.Width) / 2, messages[2].Location.Y + messages[2].Size.Height + 10);
             * messages[5].Location = new Point(0, messages[3].Location.Y + messages[3].Size.Height + 10);
             * messages[6].Location = new Point(size.Width - messages[6].Size.Width, messages[3].Location.Y + messages[3].Size.Height + 10);
             * messages[4].Location = new Point((size.Width - messages[4].Size.Width) / 2, messages[6].Location.Y + messages[6].Size.Height + 10);
             * messages[7].Location = new Point(0, messages[4].Location.Y + messages[4].Size.Height + 10);
             * messages[8].Location = new Point(size.Width - messages[8].Size.Width, messages[4].Location.Y + messages[4].Size.Height + 10);
             */

            time.Location = new Point(border_Left.Size.Width + 10, border_Top.Size.Height + 10);
            {
                for (int i = 0; i < Charas.Count; i++)
                {
                    Charas["cursor" + i.ToString()].Location = new Point(50 + 150 * (i % 6), border_Top.Size.Height + time.Size.Height + 50 + 180 * (i / 6));
                    charasDict.Add(new Point(i % 6, i / 6), "cursor" + i.ToString());
                }
            }
            sounds["hacking"] = SoundManage.GetSound("hacking.wav");
            sounds["hacking"].SetSELoopPlay(true);
            sounds["button"] = SoundManage.GetSound("button.wav");
            base.LoadContent();
        }
Beispiel #2
0
        private void DesignGameOver()
        {
            int sW = size.Width;
            int sH = size.Height;
            int eMSW, eMSH;//Size-----WidthとHeight

            eMSW              = (int)(sW * 0.8);
            eMSH              = (int)(sH * 0.8);
            gameOver.Size     = new Size(eMSW, eMSH);
            gameOver.Location = Alignment.GetMXFAlignment(ContentAlignment.MiddleCenter, size, gameOver.Size);
        }
Beispiel #3
0
 public override void LoadContent()
 {
     label.Location = Alignment.GetMXFAlignment(ContentAlignment.MiddleRight, size, label.Size);
     Image          = ImageManage.GetSImage("warningmessage.png");
     base.LoadContent();
 }
 public override void Initialize()
 {
     Visible  = false;
     Location = Alignment.GetMXFAlignment(ContentAlignment.MiddleCenter, parent.Size, Size);
     base.Initialize();
 }