diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2023-07-27 22:11:31 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2023-07-27 22:11:31 +0100 |
| commit | 71db52c5443a7bf82d9a23a770994a42b043be04 (patch) | |
| tree | f75f2605bb1bdc53842cd85c90d105dcc77e1c10 /code/ui/phase/PhaseInfo.razor | |
Initial commit
Diffstat (limited to 'code/ui/phase/PhaseInfo.razor')
| -rw-r--r-- | code/ui/phase/PhaseInfo.razor | 23 |
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(); + }
+}
|
