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(); }
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(); }
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(); }
public override void LoadContent() { image = ImageManage.GetSImage("button03"); sounds["click"] = SoundManage.GetSound("click.wav"); sounds["enter"] = SoundManage.GetSound("enter.wav"); base.LoadContent(); }
public override void LoadContent() { Image = ImageManage.GetSImage("stagefield.png"); sounds["antiviruswin"] = SoundManage.GetSound("antiviruswin.wav"); sounds["viruswin"] = SoundManage.GetSound("viruswin.wav"); base.LoadContent(); }
private void SetContentImage() { backAB.Image = ImageManage.GetSImage("button01"); title.Image = ImageManage.GetSImage("button01"); reset.Image = ImageManage.GetSImage("button01"); exitAB.Image = ImageManage.GetSImage("button01"); }
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(); }
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(); }
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); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
public override void LoadContent() { Image = ImageManage.GetSImage(chara + ".png"); Size = Size.Parse(Image.Image.Size); base.LoadContent(); }
public override void LoadContent() { Image = ImageManage.GetSImage("mousetrash_logo.png"); antivirus.Image = ImageManage.GetSImage("antivirus_icon"); base.LoadContent(); }
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"), }; }
public static void SetCursor(Cursors cursors) { cursor = ImageManage.GetSImage($"cursor_{cursors.ToString()}.png"); size = cursor.Size; }
public override void LoadContent() { trailImage = ImageManage.GetSImage("trail.png"); sounds["death"] = SoundManage.GetSound("Player_Death.wav"); base.LoadContent(); }
public override void LoadContent() { border = ImageManage.GetSImage("fileiconborder.png"); sounds["click"] = SoundManage.GetSound("click.wav"); base.LoadContent(); }
public override void LoadContent() { Image = ImageManage.GetSImage("elasticitywall.png"); sounds["elasticitywall"] = SoundManage.GetSound("elasticitywall.wav"); base.LoadContent(); }
public override void LoadContent() { label.Location = Alignment.GetMXFAlignment(ContentAlignment.MiddleRight, size, label.Size); Image = ImageManage.GetSImage("warningmessage.png"); base.LoadContent(); }
public override void LoadContent() { Image = ImageManage.GetSImage("gameover.png"); base.LoadContent(); }