From 71db52c5443a7bf82d9a23a770994a42b043be04 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 27 Jul 2023 22:11:31 +0100 Subject: Initial commit --- code/ui/phase/PhaseInfo.razor | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 code/ui/phase/PhaseInfo.razor (limited to 'code/ui/phase/PhaseInfo.razor') 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] + +
+ @GetPhase().Title +
+ +@code +{ + public BasePhase GetPhase() + { + return MurderGame.Instance.CurrentPhase; + } + + protected override int BuildHash() + { + return GetPhase().GetHashCode(); + } +} -- cgit v1.2.3-70-g09d2