Skip to content

Commit 7d6a961

Browse files
committed
Add invisible and hide HUD commands
1 parent 807c343 commit 7d6a961

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

NobetaTrainer/Shortcuts/Commands/CommandType.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ public enum CommandType
2323
ResetTimers = 18,
2424
ToggleColliders = 19,
2525
ReloadSaveState = 20,
26-
ToggleVanillaMode = 21
26+
ToggleVanillaMode = 21,
27+
ToggleInvisible = 22,
28+
HideHud = 23
2729
}

NobetaTrainer/Shortcuts/Commands/CommandUtils.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,19 @@ public static class CommandUtils
5151
})
5252
},
5353
{ ReloadSaveState, new ShortcutEditor.TrainerCommand(ReloadSaveState, () => Singletons.SavesManager?.ReloadSaveState()) },
54-
{ ToggleVanillaMode, new ShortcutEditor.TrainerCommand(ToggleVanillaMode, () => Toggle(ref CharacterPatches.VanillaMode)) }
54+
{ ToggleVanillaMode, new ShortcutEditor.TrainerCommand(ToggleVanillaMode, () => Toggle(ref CharacterPatches.VanillaMode)) },
55+
{ ToggleInvisible, new ShortcutEditor.TrainerCommand(ToggleInvisible, () =>
56+
{
57+
Toggle(ref AppearancePatches.InvisibleEnabled);
58+
AppearancePatches.UpdateAppearance();
59+
})
60+
},
61+
{ HideHud, new ShortcutEditor.TrainerCommand(HideHud, () =>
62+
{
63+
Toggle(ref OtherPatches.HideHud);
64+
UiHelpers.ToggleHudVisibility(!OtherPatches.HideHud);
65+
})
66+
}
5567
};
5668
public static string[] TrainerCommandNames { get; } = Enum.GetValues<CommandType>().Skip(1).Select(type => type.Humanize(LetterCasing.Title)).ToArray();
5769

0 commit comments

Comments
 (0)