mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using Rage;
|
|
using System.Windows.Forms;
|
|
|
|
namespace SceneManager
|
|
{
|
|
internal static class Settings
|
|
{
|
|
internal static Keys ToggleKey = Keys.T;
|
|
internal static Keys ModifierKey = Keys.LShiftKey;
|
|
internal static ControllerButtons ToggleButton = ControllerButtons.Y;
|
|
internal static ControllerButtons ModifierButton = ControllerButtons.A;
|
|
internal static bool EnableHints = true;
|
|
internal static Object[] barriers;
|
|
|
|
internal static void LoadSettings()
|
|
{
|
|
Game.LogTrivial("Loading SceneManager.ini settings");
|
|
InitializationFile ini = new InitializationFile("Plugins/SceneManager.ini");
|
|
ini.Create();
|
|
|
|
ToggleKey = ini.ReadEnum("Keybindings", "ToggleKey", Keys.T);
|
|
ModifierKey = ini.ReadEnum("Keybindings", "ModifierKey", Keys.LShiftKey);
|
|
ToggleButton = ini.ReadEnum("Keybindings", "ToggleButton", ControllerButtons.A);
|
|
ModifierButton = ini.ReadEnum("Keybindings", "ModifierButton", ControllerButtons.DPadDown);
|
|
EnableHints = ini.ReadBoolean("Other Settings", "EnableHints", true);
|
|
}
|
|
}
|
|
}
|