aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/overlay/RoleOverlay.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/ui/overlay/RoleOverlay.cs')
-rw-r--r--code/ui/overlay/RoleOverlay.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/code/ui/overlay/RoleOverlay.cs b/code/ui/overlay/RoleOverlay.cs
new file mode 100644
index 0000000..84758b7
--- /dev/null
+++ b/code/ui/overlay/RoleOverlay.cs
@@ -0,0 +1,20 @@
+using Sandbox;
+
+namespace MurderGame;
+
+public partial class RoleOverlay
+{
+ [ClientRpc]
+ public static void Show( )
+ {
+ Instance.SetClass( "hidden", false );
+ Instance.ShowOverlay = true;
+ }
+
+ [ClientRpc]
+ public static void Hide()
+ {
+ Instance.SetClass( "hidden", true );
+ Instance.ShowOverlay = false;
+ }
+}