Skip to content

Commit

Permalink
TitleShortcuts.Koikatu - Add "Open Load Game screen" hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Nov 9, 2022
1 parent 50fe2a6 commit 9fdb8ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/TitleShortcuts.Koikatu/TitleShortcuts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ namespace TitleShortcuts.Koikatu
[BepInPlugin(GUID, PluginName, Version)]
public class TitleShortcuts : TitleShortcutsCore
{
public const string Version = "1.2.3." + BuildNumber.Version;
public const string Version = "1.3.0." + BuildNumber.Version;

private static ConfigEntry<KeyboardShortcut> StartFemaleMaker { get; set; }
private static ConfigEntry<KeyboardShortcut> StartMaleMaker { get; set; }
private static ConfigEntry<KeyboardShortcut> StartUploader { get; set; }
private static ConfigEntry<KeyboardShortcut> StartDownloader { get; set; }
private static ConfigEntry<KeyboardShortcut> StartFreeH { get; set; }
private static ConfigEntry<KeyboardShortcut> StartLiveShow { get; set; }
private static ConfigEntry<KeyboardShortcut> StartGameLoad { get; set; }

protected override void Awake()
{
Expand All @@ -36,6 +37,7 @@ protected override void Awake()
StartDownloader = Config.Bind(SECTION_HOTKEYS, "Open downloader", new KeyboardShortcut(KeyCode.D));
StartFreeH = Config.Bind(SECTION_HOTKEYS, "Start free H", new KeyboardShortcut(KeyCode.H));
StartLiveShow = Config.Bind(SECTION_HOTKEYS, "Start live show", new KeyboardShortcut(KeyCode.L));
StartGameLoad = Config.Bind(SECTION_HOTKEYS, "Open Load Game screen", new KeyboardShortcut(KeyCode.G));

Harmony.CreateAndPatchAll(GetType());
}
Expand All @@ -58,6 +60,7 @@ private static IEnumerator TitleInput(TitleScene titleScene)
else if(StartDownloader.Value.IsDown()) StartMode(titleScene.OnDownloader, "Starting downloader");
else if(StartFreeH.Value.IsDown()) StartMode(titleScene.OnOtherFreeH, "Starting free H");
else if(StartLiveShow.Value.IsDown()) StartMode(titleScene.OnOtherIdolLive, "Starting live show");
else if(StartGameLoad.Value.IsDown()) StartMode(titleScene.OnLoad, "Opening Load Game screen");
}
while(titleScene);

Expand Down

0 comments on commit 9fdb8ad

Please sign in to comment.