public FrmOptions() { InitializeComponent(); origBounds = Bounds; origBorders = FormBorderStyle; origState = Game.GetGame().State; FullscreenHandler.Register(this); rdoFullscreenOn.Checked = Game.GetGame().Fullscreen; rdoSoundOn.Checked = Game.GetGame().SoundOn; }
private void FrmMap_Load(object sender, EventArgs e) { game = Game.GetGame(); map = new Map(); character = map.LoadMap(titleScreen, grpMap, //TLF changed titleScreen str => Resources.ResourceManager.GetObject(str) as Bitmap ); Width = grpMap.Width + 25; Height = grpMap.Height + 50; game.SetCharacter(character); character.EquipWeapon(new BasicSword()); FullscreenHandler.Register(this); if (game.Fullscreen) { FullscreenHandler.GoFullscreen(); } }
private void rdoFullscreenOff_Click(object sender, EventArgs e) { Game.GetGame().Fullscreen = false; FullscreenHandler.LeaveFullscreen(); }
private void rdoFullscreenOn_Click(object sender, EventArgs e) { Game.GetGame().Fullscreen = true; FullscreenHandler.GoFullscreen(); }