Beispiel #1
0
        private void HandleFileMenuOption(object arg)
        {
            FileMenuOptions option = (FileMenuOptions)arg;

            switch (option)
            {
            case FileMenuOptions.OverriteInputSettings:
                EditorToolbox.OverwriteInputSettings();
                break;

            case FileMenuOptions.CreateSnapshot:
                EditorToolbox.CreateSnapshot(_inputManager);
                break;

            case FileMenuOptions.LoadSnapshot:
                EditorToolbox.LoadSnapshot(_inputManager);
                break;

            case FileMenuOptions.Export:
                ExportInputConfigurations();
                break;

            case FileMenuOptions.Import:
                ImportInputConfigurations();
                break;

            case FileMenuOptions.ImportJoystickMapping:
                EditorToolbox.OpenImportJoystickMappingWindow(this);
                break;

            case FileMenuOptions.ConfigureForInputAdapter:
                ConfigureForInputAdapter();
                break;
            }
        }
Beispiel #2
0
        private void HandleFileMenuOption(object arg)
        {
            int option = (int)arg;

            switch (option)
            {
            case 0:
                EditorToolbox.OverwriteInputSettings();
                break;

            case 1:
                EditorToolbox.CreateSnapshot(_inputManager);
                break;

            case 2:
                EditorToolbox.LoadSnapshot(_inputManager);
                break;

            case 3:
                MenuCommands.OpenForumPage();
                break;

            case 4:
                MenuCommands.OpenAboutDialog();
                break;
            }
        }
        private void HandleFileMenuOption(object arg)
        {
            FileMenuOptions option = (FileMenuOptions)arg;

            switch (option)
            {
            case FileMenuOptions.OverriteInputSettings:
                EditorToolbox.OverwriteInputSettings();
                break;

            case FileMenuOptions.CreateSnapshot:
                EditorToolbox.CreateSnapshot(_inputManager);
                break;

            case FileMenuOptions.LoadSnapshot:
                EditorToolbox.LoadSnapshot(_inputManager);
                break;

            case FileMenuOptions.Export:
                ExportInputConfigurations();
                break;

            case FileMenuOptions.Import:
                ImportInputConfigurations();
                break;

            case FileMenuOptions.ImportJoystickMapping:
                EditorToolbox.OpenImportJoystickMappingWindow(this);
                break;

            case FileMenuOptions.ConfigureForInputAdapter:
                LoadInputConfigurationsFromResource(ResourcePaths.INPUT_ADAPTER_DEFAULT_CONFIG);
                break;

            case FileMenuOptions.CreateDefaultInputConfig:
                LoadInputConfigurationsFromResource(ResourcePaths.INPUT_MANAGER_DEFAULT_CONFIG);
                break;
            }
        }