public LoadGameDialog(SaveWatcher saveWatcher, SaveGameCollection saveGameCollection, ScreenshotManager screenshotManager, int instanceID)
        {
            Instance            = this;
            _saveWatcher        = saveWatcher;
            _saveGameCollection = saveGameCollection;
            _screenshotManager  = screenshotManager;
            _instanceID         = instanceID;

            _windowRect = new Rect((Screen.width - WIDTH) / 2, (Screen.height - HEIGHT) / 2, WIDTH, HEIGHT);
            _deleteRect = new Rect((Screen.width - DELWIDTH) / 2, (Screen.height - DELHEIGHT) / 2, DELWIDTH, DELHEIGHT);
        }
Beispiel #2
0
        public void Start()
        {
            try
            {
                _saveWatcher = new SaveWatcher();

                _screenshotManager  = new ScreenshotManager(_saveWatcher);
                _saveGameCollection = new SaveGameCollection(_saveWatcher);

                _loadGameDialog = new LoadGameDialog(_saveWatcher, _saveGameCollection, _screenshotManager, GetInstanceID());
            }
            catch (Exception ex)
            {
                Log.Error(ex.ToString());
            }
        }
        public void Start()
        {
            try
            {
                fetch        = this;
                _saveWatcher = new SaveWatcher();

                _screenshotManager  = new ScreenshotManager(_saveWatcher);
                _saveGameCollection = new SaveGameCollection(_saveWatcher);

                _loadGameDialog = new LoadGameDialog(_saveWatcher, _saveGameCollection, _screenshotManager, GetInstanceID());
            }
            catch (Exception ex)
            {
                Log.Error(ex.ToString());
            }
            if (!ToolbarControl.LoadImageFromFile(ref clearBtn, "GameData/" + InstallChecker.FOLDERNAME + "/PluginData/clear-30"))
            {
                Log.Error("Error loading clear-30 image");
            }
        }