コード例 #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();
        }
コード例 #2
0
ファイル: BackMenu.cs プロジェクト: AL-XQ/Team02
 public override void LoadContent()
 {
     back.Text                = GetText("Back");
     reset.Text               = GetText("Reset");
     title.Text               = GetText("Title");
     exit.Text                = GetText("Exit");
     back.BDText.ForeColor    = System.Drawing.Color.White;
     reset.BDText.ForeColor   = System.Drawing.Color.White;
     title.BDText.ForeColor   = System.Drawing.Color.White;
     exit.BDText.ForeColor    = System.Drawing.Color.White;
     back.TextAlign           = ContentAlignment.MiddleCenter;
     reset.TextAlign          = ContentAlignment.MiddleCenter;
     title.TextAlign          = ContentAlignment.MiddleCenter;
     exit.TextAlign           = ContentAlignment.MiddleCenter;
     back.Image               = ImageManage.GetSImage("button");
     reset.Image              = back.Image;
     title.Image              = back.Image;
     exit.Image               = back.Image;
     back.ImageEntity.Enable  = false;
     reset.ImageEntity.Enable = false;
     title.ImageEntity.Enable = false;
     exit.ImageEntity.Enable  = false;
     Image = ImageManage.GetSImage("window_ui.png");
     base.LoadContent();
 }
コード例 #3
0
 public override void LoadContent()
 {
     endText.Location = ((size - endText.Size) / 2).ToPoint();
     Image            = ImageManage.GetSImage("login_logout.png");
     sounds["logout"] = SoundManage.GetSound("logout.wav");
     base.LoadContent();
 }
コード例 #4
0
ファイル: TestUI.cs プロジェクト: AL-XQ/Team02
 public override void LoadContent()
 {
     image           = ImageManage.GetSImage("button03");
     sounds["click"] = SoundManage.GetSound("click.wav");
     sounds["enter"] = SoundManage.GetSound("enter.wav");
     base.LoadContent();
 }
コード例 #5
0
 public override void LoadContent()
 {
     Image = ImageManage.GetSImage("stagefield.png");
     sounds["antiviruswin"] = SoundManage.GetSound("antiviruswin.wav");
     sounds["viruswin"]     = SoundManage.GetSound("viruswin.wav");
     base.LoadContent();
 }
コード例 #6
0
 private void SetContentImage()
 {
     backAB.Image = ImageManage.GetSImage("button01");
     title.Image  = ImageManage.GetSImage("button01");
     reset.Image  = ImageManage.GetSImage("button01");
     exitAB.Image = ImageManage.GetSImage("button01");
 }
コード例 #7
0
ファイル: HeroHpUI.cs プロジェクト: AL-XQ/Team02
 public override void LoadContent()
 {
     image        = ImageManage.GetSImage("HeroHp.png");
     size         = new Size(image.Size.Width, image.Size.Height);
     backPa.Image = ImageManage.GetSImage("EnemyHp.png");
     backPa.Size  = new Size(image.Size.Width, image.Size.Height);
     base.LoadContent();
 }
コード例 #8
0
ファイル: Credit.cs プロジェクト: AL-XQ/Team02
 public override void LoadContent()
 {
     ok.Image  = ImageManage.GetSImage("button");
     ok.Click += OK_Click;
     ok.ImageEntity.Enable = false;
     image = ImageManage.GetSImage("window_ui.png");
     base.LoadContent();
 }
コード例 #9
0
ファイル: BossStage1.cs プロジェクト: AL-XQ/Team02
 public override void Initialize()
 {
     base.Initialize();
     Boss            = new BossPanel(this);
     Boss.Coordinate = new Vector2(12 * 64, 3 * 64);
     Boss.Size       = new Size(10 * 64, 11 * 64);
     Boss.Image      = ImageManage.GetSImage("boss");
     Boss.CreateHitSpace(3);
 }
コード例 #10
0
 public override void Initialize()
 {
     Visible      = true;
     Image        = ImageManage.GetSImage(wall[rnd.Next(wall.Length)]);
     Size         = Size.Parse(Image.Image.Size);
     Render.Scale = Vector2.One;
     Coordinate   = new Vector2(rnd.Next(Stage.EndOfLeftUp.X, Stage.EndOfRightDown.X - size.Width), rnd.Next(Stage.EndOfLeftUp.Y, Stage.EndOfRightDown.Y - size.Height));
     base.Initialize();
 }
コード例 #11
0
 public override void LoadContent()
 {
     time.Location = new Point(size.Width - date.Size.Width / 2 - time.Size.Width / 2 - 20, 5);
     date.Location = new Point(size.Width - date.Size.Width - 20, 30);
     menu.Location = new Point(start.Size.Width + 5, (size.Height - menu.Size.Height) / 2);
     Image         = ImageManage.GetSImage("taskbar.png");
     start.Image   = ImageManage.GetSImage("IG");
     base.LoadContent();
 }
コード例 #12
0
 public override void LoadContent()
 {
     ok.Image            = ImageManage.GetSImage("button01");
     cancel.Image        = ImageManage.GetSImage("button01");
     sounds["warning01"] = SoundManage.GetSound("warning01.wav");
     sounds["warning02"] = SoundManage.GetSound("warning02.wav");
     sounds["warning02"].SetSELoopPlay(true);
     sounds["button"] = SoundManage.GetSound("button.wav");
     base.LoadContent();
 }
コード例 #13
0
 public override void LoadContent()
 {
     ((StageLabel)stageObjs["date"]).TextSize = 24f;
     ((StageLabel)stageObjs["time"]).TextSize = 24f;
     ((StageLabel)stageObjs["date"]).Text     = DateTime.Now.ToString("yyyy/MM/dd");
     ((StageLabel)stageObjs["time"]).Text     = DateTime.Now.ToString("HH:mm");
     stageObjs["date"].Coordinate             = new Vector2(ssize.Width - stageObjs["date"].Size.Width - 40, ssize.Height - 40);
     stageObjs["time"].Coordinate             = new Vector2(ssize.Width - stageObjs["date"].Size.Width / 2 - stageObjs["time"].Size.Width / 2 - 40, ssize.Height - stageObjs["date"].Size.Height - stageObjs["time"].Size.Height - 20);
     stageObjs["stageField0"].Image           = ImageManage.GetSImage("stagefield.png");
     base.LoadContent();
 }
コード例 #14
0
 public override void Initialize()
 {
     isDamage     = false;
     selfDamage   = 0;
     MovePriority = 5;
     if (playerControl != null && playerControl.Chara != null)
     {
         Image = ImageManage.GetSImage(playerControl.Chara + ".png");
         Size  = Size.Parse(Image.Image.Size) / 2;
     }
     base.Initialize();
 }
コード例 #15
0
        public override void LoadContent()
        {
            Image           = ImageManage.GetSImage("startmenu.png");
            shutdown.Image  = ImageManage.GetSImage("shutdown");
            antivirus.Image = ImageManage.GetSImage("antivirus_icon");
            readme.Image    = ImageManage.GetSImage("thedata.png");
            antivirus.Size  = new Size(100, 100);
            shutdown.Size   = Size.Parse(shutdown.Image.Image.Size);

            antivirus.Location     = new Point(-25, size.Height - shutdown.Size.Height - 75);
            shutdown.Location      = new Point(0, size.Height - shutdown.Size.Height);
            readme.Location        = new Point(0, size.Height - 150);
            downText.Location      = new Point(60, size.Height - downText.Size.Height - 15);
            antivirusText.Location = new Point(60, downText.Location.Y - 50);
            readmeText.Location    = new Point(60, antivirusText.Location.Y - 50);
            base.LoadContent();
        }
コード例 #16
0
        public override void LoadContent()
        {
            start.Text              = GetText("Start");
            credit.Text             = GetText("Credit");
            exit.Text               = GetText("Exit");
            start.BDText.ForeColor  = System.Drawing.Color.White;
            credit.BDText.ForeColor = System.Drawing.Color.White;
            exit.BDText.ForeColor   = System.Drawing.Color.White;
            start.TextAlign         = ContentAlignment.MiddleCenter;
            credit.TextAlign        = ContentAlignment.MiddleCenter;
            exit.TextAlign          = ContentAlignment.MiddleCenter;
            var im = ImageManage.GetSImage("button");

            start.Image               = im;
            credit.Image              = im;
            exit.Image                = im;
            start.ImageEntity.Enable  = false;
            credit.ImageEntity.Enable = false;
            exit.ImageEntity.Enable   = false;
            base.LoadContent();
        }
コード例 #17
0
        public override void LoadContent()
        {
            switch (player)
            {
            case "P0":
                lable.Location         = new Point(0, -lable.Size.Height);
                pad                    = PlayerIndex.One;
                lable.BDText.ForeColor = System.Drawing.Color.Blue;
                ImageColor             = Color.Blue;
                break;

            case "P1":
                lable.Location         = new Point(size.Width - lable.Size.Width, -lable.Size.Height);
                pad                    = PlayerIndex.Two;
                lable.BDText.ForeColor = System.Drawing.Color.Red;
                ImageColor             = Color.Red;
                break;

            case "P2":
                lable.Location         = new Point(0, size.Height);
                pad                    = PlayerIndex.Three;
                lable.BDText.ForeColor = System.Drawing.Color.Green;
                imageColor             = Color.Green;
                break;

            case "P3":
                lable.Location         = new Point(size.Width - lable.Size.Width, size.Height);
                pad                    = PlayerIndex.Four;
                lable.BDText.ForeColor = System.Drawing.Color.Yellow;
                imageColor             = Color.Yellow;
                break;
            }
            Image     = ImageManage.GetSImage("playercursor.png");
            gameStage = (GameStage)((StageScene)GameRun.Instance.scenes["stagescene"]).stages["Stage01"];
            base.LoadContent();
        }
コード例 #18
0
 public override void LoadContent()
 {
     Image = ImageManage.GetSImage(chara + ".png");
     Size  = Size.Parse(Image.Image.Size);
     base.LoadContent();
 }
コード例 #19
0
 public override void LoadContent()
 {
     Image           = ImageManage.GetSImage("mousetrash_logo.png");
     antivirus.Image = ImageManage.GetSImage("antivirus_icon");
     base.LoadContent();
 }
コード例 #20
0
ファイル: TutorialStage.cs プロジェクト: AL-XQ/Team02
        public override void Initialize()
        {
            base.Initialize();

            SImage arrow = ImageManage.GetSImage("arrow.png");

            //重力操作の説明
            new ObjUI(this)
            {
                Coordinate = new Vector2(3350, 1300),
                Size       = new Size(256, 64) * 3,
                Rotation   = (float)(-10 * Math.PI / 180),
                Image      = arrow,
            };

            //壁のぼりの説明

            new ObjUI(this)
            {
                Coordinate = new Vector2(5043, 1472),
                Size       = new Size(256, 64),
                Image      = arrow,
            };

            new ObjUI(this)
            {
                Coordinate = new Vector2(5400, 1500),
                Size       = new Size(256, 64),
                Rotation   = (float)(-90 * Math.PI / 180),
                Image      = arrow,
            };

            new ObjUI(this)
            {
                Coordinate = new Vector2(5500, 1300),
                Size       = new Size(192, 128),
                Image      = ImageManage.GetSImage("DKey.png"),
            };

            //天井歩行の説明

            new ObjUI(this)
            {
                Coordinate = new Vector2(5200, 80),
                Size       = new Size(64, 64),
                Image      = ImageManage.GetSImage("QKey.png"),
            };

            new ObjUI(this)
            {
                Coordinate = new Vector2(5734, 250),
                Size       = new Size(256, 64),
                Rotation   = (float)(-90 * Math.PI / 180),
                Image      = arrow,
            };

            new ObjUI(this)
            {
                Coordinate = new Vector2(6000, 75),
                Size       = new Size(256, 64),
                Image      = arrow,
            };

            new ObjUI(this)
            {
                Coordinate = new Vector2(5900, 60),
                Size       = new Size(192, 128),
                Image      = ImageManage.GetSImage("AKey.png"),
            };

            //戦闘のチュートリアル

            new ObjUI(this)
            {
                Coordinate = new Vector2(126, 9) * 64,
                Size       = new Size(128, 128),
                Image      = ImageManage.GetSImage("CombatTutorial.png"),
            };

            new ObjUI(this)
            {
                Coordinate = new Vector2(149, 7) * 64,
                Size       = new Size(128, 128),
                Image      = ImageManage.GetSImage("DeathBlockTutorial.png"),
            };
        }
コード例 #21
0
ファイル: DIYMouse.cs プロジェクト: AL-XQ/Team02
 public static void SetCursor(Cursors cursors)
 {
     cursor = ImageManage.GetSImage($"cursor_{cursors.ToString()}.png");
     size   = cursor.Size;
 }
コード例 #22
0
ファイル: Hero.cs プロジェクト: AL-XQ/Team02
 public override void LoadContent()
 {
     trailImage      = ImageManage.GetSImage("trail.png");
     sounds["death"] = SoundManage.GetSound("Player_Death.wav");
     base.LoadContent();
 }
コード例 #23
0
 public override void LoadContent()
 {
     border          = ImageManage.GetSImage("fileiconborder.png");
     sounds["click"] = SoundManage.GetSound("click.wav");
     base.LoadContent();
 }
コード例 #24
0
 public override void LoadContent()
 {
     Image = ImageManage.GetSImage("elasticitywall.png");
     sounds["elasticitywall"] = SoundManage.GetSound("elasticitywall.wav");
     base.LoadContent();
 }
コード例 #25
0
 public override void LoadContent()
 {
     label.Location = Alignment.GetMXFAlignment(ContentAlignment.MiddleRight, size, label.Size);
     Image          = ImageManage.GetSImage("warningmessage.png");
     base.LoadContent();
 }
コード例 #26
0
 public override void LoadContent()
 {
     Image = ImageManage.GetSImage("gameover.png");
     base.LoadContent();
 }