public WinControlManager(Game1 game, GraphicsDeviceManager graphics) { ControlForm = new WinControl(game); this.graphics = graphics; XnaForm = Form.FromHandle(game.Window.Handle) as Form; XnaForm.FormBorderStyle = FormBorderStyle.None; //本来のXNAの枠を無くす XnaForm.Dock = DockStyle.Fill; //左上で揃える XnaForm.TopLevel = false; ControlForm.Controls.Add(XnaForm); //コントロール追加 ControlForm.Show(); }
public WinControlManager(Game1 game, GraphicsDeviceManager graphics) { ControlForm = new WinControl(game); this.graphics = graphics; XnaForm = Form.FromHandle(game.Window.Handle) as Form; XnaForm.FormBorderStyle = FormBorderStyle.None;//本来のXNAの枠を無くす XnaForm.Dock = DockStyle.Fill;//左上で揃える XnaForm.TopLevel = false; ControlForm.Controls.Add(XnaForm);//コントロール追加 ControlForm.Show(); }
public override void Load() { base.Load(); button[0].texture = content.Load <Texture2D>("General\\Menu\\StageClear"); SoundControl.IniMusic("Audio\\BGM\\clear", false); if (!game.isMuted) { SoundControl.Play(); } // Scoreをcastして確定 this.scoreToDisplay = (int)game.stageScores[game.stageNum - 1]; if (game.stageNum == 3) { form = new WinControl(game); form.Show(); } }
public override void Load() { base.Load(); button[0].texture = content.Load<Texture2D>("General\\Menu\\StageClear"); SoundControl.IniMusic("Audio\\BGM\\clear", false); if (!game.isMuted) SoundControl.Play(); // Scoreをcastして確定 this.scoreToDisplay = (int)game.stageScores[game.stageNum-1]; if (game.stageNum == 3) { form = new WinControl(game); form.Show(); } }