Esempio n. 1
0
        private async void load()
        {
            AGSGameSettings.CurrentSkin = new AGSBlueSkin(_game.Factory.Graphics, AGSGame.GLUtils).CreateSkin();
            string file = await AGSSelectFileDialog.SelectFile("Select file to load", FileSelection.FileOnly);

            AGSGameSettings.CurrentSkin = null;
            if (file == null)
            {
                return;
            }
            _game.SaveLoad.Load(file);
            Hide();
        }
Esempio n. 2
0
        private async void load()
        {
            _game.Settings.Defaults.Skin = new AGSBlueSkin(_game.Factory.Graphics).CreateSkin();
            string file = await AGSSelectFileDialog.SelectFile("Select file to load", FileSelection.FileOnly);

            _game.Settings.Defaults.Skin = null;
            if (file == null)
            {
                return;
            }
            _game.SaveLoad.Load(file);
            hide();
        }
Esempio n. 3
0
        private async Task onLoadGameClicked(MouseButtonEventArgs args)
        {
            _editor.Editor.Settings.Defaults.Skin = new AGSSilverSkin(_editor.Editor.Factory.Graphics).CreateSkin();
            string file = await AGSSelectFileDialog.SelectFile("Select file to load", FileSelection.FileOnly, isGame);

            _editor.Editor.Settings.Defaults.Skin = null;
            if (string.IsNullOrEmpty(file))
            {
                return;
            }
            var messagePump = _resolver.Container.Resolve <IRenderMessagePump>();

            _panel.Visible = false;
            AGSProject agsProj = AGSProject.Load(AGSEditor.Platform, _editor.Editor, file);

            _recentGames.AddGame(agsProj.Name, file);
            await Task.Delay(100);

            GameLoader.Load(messagePump, agsProj, _editor);
        }