Bug fixes

This commit is contained in:
2021-04-24 23:31:43 +02:00
parent a7765e5355
commit 1265db9095
113 changed files with 346 additions and 120 deletions
+22 -1
View File
@@ -16,6 +16,7 @@ namespace EvilSatellites.Screens
MenuOptions.Add(new MenuEntry("Music Volume", "Toggle between music volumes"))
.Add(new MenuEntry("Use screen reader", "Use screen reader speech instead of SAPI"))
.Add(new MenuEntry("Use Force Feedback", "Vibrate on certain game actions such as weapon fire, getting hit, etc."))
.Add(new MenuEntry("AI", "Your AI will sometimes comment on the things you're doing in game"))
.Add(new MenuEntry("Back", "Go Back to previous screen"));
base.Activate();
}
@@ -36,6 +37,10 @@ namespace EvilSatellites.Screens
ChangeForceFeedback();
}
if (CursorPosition == 3)
{
ChangeAI();
}
if (CursorPosition == 4)
{
Manager.RemoveScreen(this);
Manager.AddScreen(new MainMenuScreen());
@@ -44,16 +49,18 @@ namespace EvilSatellites.Screens
public void ChangeSpeech()
{
if (GameSettings.PreferSAPI)
if (GameSettings.PreferSAPI == true)
{
Tolk.PreferSAPI(false);
Tolk.TrySAPI(false);
Tolk.Output("Prefering screen reader");
GameSettings.PreferSAPI = false;
} else
{
Tolk.PreferSAPI(true);
Tolk.TrySAPI(true);
Tolk.Output("Prefering SAPI");
GameSettings.PreferSAPI = true;
}
}
@@ -93,5 +100,19 @@ namespace EvilSatellites.Screens
Manager.Vibrations.AddVibration(1, 1, 500);
}
}
public void ChangeAI()
{
if (GameSettings.EnableAI)
{
GameSettings.EnableAI = false;
Tolk.Output("AI is now muted");
}
else
{
GameSettings.EnableAI = true;
Tolk.Output("AI is now unmuted");
}
}
}
}