mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Created new Hints class. Implemented Hints.Display method. Added option to SettingsMenu to enable/disable hints in-game.
This commit is contained in:
parent
e7f40c9624
commit
a7fd140e1f
5 changed files with 37 additions and 16 deletions
17
SceneManager/Hints.cs
Normal file
17
SceneManager/Hints.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using Rage;
|
||||
|
||||
namespace SceneManager
|
||||
{
|
||||
class Hints
|
||||
{
|
||||
public static bool Enabled { get; set; } = SettingsMenu.hints.Checked;
|
||||
|
||||
public static void Display(string message)
|
||||
{
|
||||
if (Enabled)
|
||||
{
|
||||
Game.DisplayNotification($"{message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue