Beispiel #1
0
        void SelectStage(object o, EventArgs a)
        {
            var f = new StageSelectionForm();

            f.ShowDialog();
            if (f.Result == null)
            {
                return;
            }
            if (File.Exists($"{GameFolder}StageData\\{f.Result}Map.szs"))
            {
                ViewForm.LoadLevel($"{GameFolder}StageData\\{f.Result}Map.szs");                 //Also it's possible to load a specific scenario with ViewForm.LoadLevel(new Level(f.result, id))
            }
        }