mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Refactored references to new Settings class
This commit is contained in:
parent
1cd719b076
commit
e7f40c9624
1 changed files with 6 additions and 6 deletions
|
|
@ -27,14 +27,14 @@ namespace SceneManager
|
||||||
|
|
||||||
private static void GetControllerInput()
|
private static void GetControllerInput()
|
||||||
{
|
{
|
||||||
if (EntryPoint.Settings.ModifierButton == ControllerButtons.None)
|
if (Settings.ModifierButton == ControllerButtons.None)
|
||||||
{
|
{
|
||||||
if (Game.IsControllerButtonDown(EntryPoint.Settings.ToggleButton) && AreMenusClosed())
|
if (Game.IsControllerButtonDown(Settings.ToggleButton) && AreMenusClosed())
|
||||||
{
|
{
|
||||||
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (Game.IsControllerButtonDownRightNow(EntryPoint.Settings.ModifierButton) && Game.IsControllerButtonDown(EntryPoint.Settings.ToggleButton) && AreMenusClosed())
|
else if (Game.IsControllerButtonDownRightNow(Settings.ModifierButton) && Game.IsControllerButtonDown(Settings.ToggleButton) && AreMenusClosed())
|
||||||
{
|
{
|
||||||
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
||||||
}
|
}
|
||||||
|
|
@ -42,14 +42,14 @@ namespace SceneManager
|
||||||
|
|
||||||
private static void GetKeyboardInput()
|
private static void GetKeyboardInput()
|
||||||
{
|
{
|
||||||
if (EntryPoint.Settings.ModifierKey == System.Windows.Forms.Keys.None)
|
if (Settings.ModifierKey == System.Windows.Forms.Keys.None)
|
||||||
{
|
{
|
||||||
if (Game.IsKeyDown(EntryPoint.Settings.ToggleKey) && AreMenusClosed())
|
if (Game.IsKeyDown(Settings.ToggleKey) && AreMenusClosed())
|
||||||
{
|
{
|
||||||
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (Game.IsKeyDownRightNow(EntryPoint.Settings.ModifierKey) && Game.IsKeyDown(EntryPoint.Settings.ToggleKey) && AreMenusClosed())
|
else if (Game.IsKeyDownRightNow(Settings.ModifierKey) && Game.IsKeyDown(Settings.ToggleKey) && AreMenusClosed())
|
||||||
{
|
{
|
||||||
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
MainMenu.mainMenu.Visible = !MainMenu.mainMenu.Visible;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue