Ejemplo n.º 1
0
        public FrmOptions()
        {
            InitializeComponent();
            origBounds  = Bounds;
            origBorders = FormBorderStyle;
            origState   = Game.GetGame().State;

            FullscreenHandler.Register(this);

            rdoFullscreenOn.Checked = Game.GetGame().Fullscreen;
            rdoSoundOn.Checked      = Game.GetGame().SoundOn;
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        private void rdoFullscreenOff_Click(object sender, EventArgs e)
        {
            Game.GetGame().Fullscreen = false;

            FullscreenHandler.LeaveFullscreen();
        }
Ejemplo n.º 4
0
        private void rdoFullscreenOn_Click(object sender, EventArgs e)
        {
            Game.GetGame().Fullscreen = true;

            FullscreenHandler.GoFullscreen();
        }