aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/phase/PhaseInfo.razor
diff options
context:
space:
mode:
Diffstat (limited to 'code/ui/phase/PhaseInfo.razor')
-rw-r--r--code/ui/phase/PhaseInfo.razor23
1 files changed, 23 insertions, 0 deletions
diff --git a/code/ui/phase/PhaseInfo.razor b/code/ui/phase/PhaseInfo.razor
new file mode 100644
index 0000000..74bf237
--- /dev/null
+++ b/code/ui/phase/PhaseInfo.razor
@@ -0,0 +1,23 @@
+@using Sandbox;
+@using Sandbox.UI;
+
+@namespace MurderGame
+@inherits Panel
+@attribute [StyleSheet]
+
+<div>
+ @GetPhase().Title
+</div>
+
+@code
+{
+ public BasePhase GetPhase()
+ {
+ return MurderGame.Instance.CurrentPhase;
+ }
+
+ protected override int BuildHash()
+ {
+ return GetPhase().GetHashCode();
+ }
+}