diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f6cd4f..a17bfbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +## [1.9.0] - 2022-01-27 + +### Added + +- Max and Min UI or Zoom. + +### Changed + +- Config variable names + +### Improvements + +- Updated API for the optional Generic Mod Config Menu → [Here](https://www.nexusmods.com/stardewvalley/mods/5098). +- README file + +### Fixed + +- Some text typos + ## [1.8.0] - 2022-01-25 ### Improvements @@ -89,7 +108,8 @@ - Initial release -[unreleased]: https://github.com/thespbgamer/ZoomLevel/compare/v1.8.0...HEAD +[unreleased]: https://github.com/thespbgamer/ZoomLevel/compare/v1.9.0...HEAD +[1.9.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.8.0 [1.8.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.8.0 [1.7.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.7.0 [1.6.0]: https://github.com/thespbgamer/ZoomLevel/releases/tag/1.6.0 diff --git a/README.md b/README.md index a6aef45..00bad80 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ Here's what you can change: `KeybindListDecreaseZoomOrUI` | `OemComma` aka `,` or `LeftStick` | Key to Decrease Zoom or UI Level. `KeybindListHoldToChangeUI` | `LeftShift` or `RightShift` or `LeftTrigger and RightTrigger"` | Key you need to hold to change the UI. `KeybindListResetZoomOrUI` | `null` aka **nothing** | Key to Reset the Zoom or UI Level. - `KeybindListMaxZoom` | `null` aka **nothing** | Key to Max the Zoom out or Maximize the UI. - `KeybindListMinZoom` | `null` aka **nothing** | Key to Max the Zoom in or Minimize the UI. + `KeybindListMaxZoomOrUI` | `null` aka **nothing** | Key to Max the Zoom out or Maximize the UI. + `KeybindListMinZoomOrUI` | `null` aka **nothing** | Key to Max the Zoom in or Minimize the UI. * Zoom and UI values: diff --git a/ZoomLevel/ModConfig.cs b/ZoomLevel/ModConfig.cs index 033e1f7..3ff1d54 100644 --- a/ZoomLevel/ModConfig.cs +++ b/ZoomLevel/ModConfig.cs @@ -8,8 +8,8 @@ internal class ModConfig public KeybindList KeybindListIncreaseZoomOrUI { get; set; } = KeybindList.Parse("OemPeriod, RightStick"); public KeybindList KeybindListDecreaseZoomOrUI { get; set; } = KeybindList.Parse("OemComma, LeftStick"); public KeybindList KeybindListResetZoomOrUI { get; set; } = KeybindList.Parse(""); - public KeybindList KeybindListMaxZoom { get; set; } = KeybindList.Parse(""); - public KeybindList KeybindListMinZoom { get; set; } = KeybindList.Parse(""); + public KeybindList KeybindListMaxZoomOrUI { get; set; } = KeybindList.Parse(""); + public KeybindList KeybindListMinZoomOrUI { get; set; } = KeybindList.Parse(""); public float ZoomLevelIncreaseValue { get; set; } = 0.05f; public float ZoomLevelDecreaseValue { get; set; } = -0.05f; diff --git a/ZoomLevel/ModEntry.cs b/ZoomLevel/ModEntry.cs index f693dec..830a4d2 100644 --- a/ZoomLevel/ModEntry.cs +++ b/ZoomLevel/ModEntry.cs @@ -34,8 +34,8 @@ private void onLaunched(object sender, GameLaunchedEventArgs e) genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListIncreaseZoomOrUI, (KeybindList val) => modConfigs.KeybindListIncreaseZoomOrUI = val, "Zoom or UI Levels Increase".ToString, "Keybinds to Increase Zoom or UI Level.".ToString); genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListDecreaseZoomOrUI, (KeybindList val) => modConfigs.KeybindListDecreaseZoomOrUI = val, "Zoom or UI Levels Decrease".ToString, "Keybinds to Decrease Zoom or UI Level.".ToString); genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListResetZoomOrUI, (KeybindList val) => modConfigs.KeybindListResetZoomOrUI = val, "Zoom or UI Levels Reset".ToString, "Keybinds that you use to Reset the Zoom or UI Level.".ToString); - genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMaxZoom, (KeybindList val) => modConfigs.KeybindListMaxZoom = val, "Zoom or UI Max Levels".ToString, "Keybinds to Max the Zoom out or Maximize the UI.".ToString); - genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMinZoom, (KeybindList val) => modConfigs.KeybindListMinZoom = val, "Zoom or UI Min Levels".ToString, "Keybinds to Max the Zoom in or Minimize the UI.".ToString); + genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMaxZoomOrUI, (KeybindList val) => modConfigs.KeybindListMaxZoomOrUI = val, "Zoom or UI Max Levels".ToString, "Keybinds to Max the Zoom out or Maximize the UI.".ToString); + genericModConfigMenuAPI.AddKeybindList(ModManifest, () => modConfigs.KeybindListMinZoomOrUI, (KeybindList val) => modConfigs.KeybindListMinZoomOrUI = val, "Zoom or UI Min Levels".ToString, "Keybinds to Max the Zoom in or Minimize the UI.".ToString); genericModConfigMenuAPI.AddSectionTitle(ModManifest, "Values:".ToString, "All the values that changes the Zoom Level and UI Level.".ToString); genericModConfigMenuAPI.AddNumberOption(ModManifest, () => modConfigs.ZoomLevelIncreaseValue, (float val) => modConfigs.ZoomLevelIncreaseValue = val, "Zoom or UI Levels Increase".ToString, "The amount of Zoom or UI Level increase.".ToString, 0.01f, 0.50f,0.01f); @@ -75,12 +75,12 @@ private void Events_Input_ButtonPressed(object sender, ButtonPressedEventArgs e) ResetUI(); wasThePreviousButtonPressSucessfull = true; } - else if (modConfigs.KeybindListMaxZoom.JustPressed()) + else if (modConfigs.KeybindListMaxZoomOrUI.JustPressed()) { CapUILevel(modConfigs.MaxZoomOutLevelAndUIValue); wasThePreviousButtonPressSucessfull = true; } - else if (modConfigs.KeybindListMinZoom.JustPressed()) + else if (modConfigs.KeybindListMinZoomOrUI.JustPressed()) { CapUILevel(modConfigs.MaxZoomInLevelAndUIValue); wasThePreviousButtonPressSucessfull = true; @@ -101,12 +101,12 @@ private void Events_Input_ButtonPressed(object sender, ButtonPressedEventArgs e) ResetZoom(); wasThePreviousButtonPressSucessfull = true; } - else if (modConfigs.KeybindListMaxZoom.JustPressed()) + else if (modConfigs.KeybindListMaxZoomOrUI.JustPressed()) { CapZoomLevel(modConfigs.MaxZoomOutLevelAndUIValue); wasThePreviousButtonPressSucessfull = true; } - else if (modConfigs.KeybindListMinZoom.JustPressed()) + else if (modConfigs.KeybindListMinZoomOrUI.JustPressed()) { CapZoomLevel(modConfigs.MaxZoomInLevelAndUIValue); wasThePreviousButtonPressSucessfull = true;