diff options
Diffstat (limited to 'code/ui/overlay')
| -rw-r--r-- | code/ui/overlay/BlindedOverlay.Network.cs | 24 | ||||
| -rw-r--r-- | code/ui/overlay/BlindedOverlay.razor | 70 | ||||
| -rw-r--r-- | code/ui/overlay/RoleOverlay.cs | 24 | ||||
| -rw-r--r-- | code/ui/overlay/RoleOverlay.razor | 126 |
4 files changed, 122 insertions, 122 deletions
diff --git a/code/ui/overlay/BlindedOverlay.Network.cs b/code/ui/overlay/BlindedOverlay.Network.cs index c81751e..0a80628 100644 --- a/code/ui/overlay/BlindedOverlay.Network.cs +++ b/code/ui/overlay/BlindedOverlay.Network.cs @@ -4,17 +4,17 @@ namespace MurderGame; public partial class BlindedOverlay
{
- [ClientRpc]
- public static void Show( )
- {
- Instance.SetClass( "hidden", false );
- Instance.ShowOverlay = true;
- }
+ [ClientRpc]
+ public static void Show( )
+ {
+ Instance.SetClass( "hidden", false );
+ Instance.ShowOverlay = true;
+ }
- [ClientRpc]
- public static void Hide()
- {
- Instance.SetClass( "hidden", true );
- Instance.ShowOverlay = false;
- }
+ [ClientRpc]
+ public static void Hide()
+ {
+ Instance.SetClass( "hidden", true );
+ Instance.ShowOverlay = false;
+ }
}
diff --git a/code/ui/overlay/BlindedOverlay.razor b/code/ui/overlay/BlindedOverlay.razor index 024c31a..0cd397a 100644 --- a/code/ui/overlay/BlindedOverlay.razor +++ b/code/ui/overlay/BlindedOverlay.razor @@ -5,39 +5,39 @@ @inherits Panel
<style>
- @@keyframes fadeIn
- {
- 0% { opacity: 0; }
- 100% { opacity: 1; }
- }
- blindedoverlay
- {
- position: absolute;
- left: 0;
- top: 0;
- background-color: rgba(0, 0, 0, 0.80);
- width: 100vw;
- height: 100vh;
- backdrop-filter-blur: 16px;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- flex-direction: column;
- gap: 100vh;
- animation-name: fadeIn;
- animation-duration: 1s;
- animation-iteration-count: 1;
- animation-timing-function: linear;
- animation-fill-mode: forwards;
- }
- .overlay-message
- {
- margin: 20vh;
- color: white;
- font-size: 35px;
- font-family: "Roboto";
- font-weight: 700;
- }
+@@keyframes fadeIn
+{
+ 0% { opacity: 0; }
+ 100% { opacity: 1; }
+}
+blindedoverlay
+{
+ position: absolute;
+ left: 0;
+ top: 0;
+ background-color: rgba(0, 0, 0, 0.80);
+ width: 100vw;
+ height: 100vh;
+ backdrop-filter-blur: 16px;
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ flex-direction: column;
+ gap: 100vh;
+ animation-name: fadeIn;
+ animation-duration: 1s;
+ animation-iteration-count: 1;
+ animation-timing-function: linear;
+ animation-fill-mode: forwards;
+}
+.overlay-message
+{
+ margin: 20vh;
+ color: white;
+ font-size: 35px;
+ font-family: "Roboto";
+ font-weight: 700;
+}
</style>
<div class="overlay-message">
@@ -50,14 +50,14 @@ You shot a bystander! public bool ShowOverlay { get; set; } = false;
- public BlindedOverlay()
+ public BlindedOverlay()
{
SetClass( "hidden", true );
Instance = this;
}
- protected override int BuildHash()
+ protected override int BuildHash()
{
return ShowOverlay.GetHashCode();
}
diff --git a/code/ui/overlay/RoleOverlay.cs b/code/ui/overlay/RoleOverlay.cs index 84758b7..300d0bf 100644 --- a/code/ui/overlay/RoleOverlay.cs +++ b/code/ui/overlay/RoleOverlay.cs @@ -4,17 +4,17 @@ namespace MurderGame; public partial class RoleOverlay
{
- [ClientRpc]
- public static void Show( )
- {
- Instance.SetClass( "hidden", false );
- Instance.ShowOverlay = true;
- }
+ [ClientRpc]
+ public static void Show( )
+ {
+ Instance.SetClass( "hidden", false );
+ Instance.ShowOverlay = true;
+ }
- [ClientRpc]
- public static void Hide()
- {
- Instance.SetClass( "hidden", true );
- Instance.ShowOverlay = false;
- }
+ [ClientRpc]
+ public static void Hide()
+ {
+ Instance.SetClass( "hidden", true );
+ Instance.ShowOverlay = false;
+ }
}
diff --git a/code/ui/overlay/RoleOverlay.razor b/code/ui/overlay/RoleOverlay.razor index c41e359..40cbce0 100644 --- a/code/ui/overlay/RoleOverlay.razor +++ b/code/ui/overlay/RoleOverlay.razor @@ -6,87 +6,87 @@ @inherits Panel
<style>
- roleoverlay
- {
- position: absolute;
- left: 0;
- top: 0;
- background-color: #000000;
- width: 100vw;
- height: 100vh;
- z-index: 10000;
- }
- .container {
- display: flex;
- align-items: center;
- flex-direction: column;
- max-width: 700px;
- text-align: center;
- gap: 50px;
- margin: 0 auto;
- top: 200px;
- }
- .name
- {
- font-size: 50;
- font-weight: 700;
- font-family: "Roboto";
- }
- .description
- {
- font-size: 30;
- font-family: "Roboto";
- }
+roleoverlay
+{
+ position: absolute;
+ left: 0;
+ top: 0;
+ background-color: #000000;
+ width: 100vw;
+ height: 100vh;
+ z-index: 10000;
+}
+.container {
+ display: flex;
+ align-items: center;
+ flex-direction: column;
+ max-width: 700px;
+ text-align: center;
+ gap: 50px;
+ margin: 0 auto;
+ top: 200px;
+}
+.name
+{
+ font-size: 50;
+ font-weight: 700;
+ font-family: "Roboto";
+}
+.description
+{
+ font-size: 30;
+ font-family: "Roboto";
+}
</style>
<div class="container">
- <div class="name" style="color: @(GetTeamColour())">
- @GetTeamName()
- </div>
- <div class="description" style="color: @(GetTeamColour())">
- @GetTeamDescription()
- </div>
+ <div class="name" style="color: @(GetTeamColour())">
+ @GetTeamName()
+ </div>
+ <div class="description" style="color: @(GetTeamColour())">
+ @GetTeamDescription()
+ </div>
</div>
@code
{
- public string GetTeamName()
- {
- if (Game.LocalPawn is Player player)
- {
- return TeamOperations.GetTeamName(player.CurrentTeam);
- }
- return "";
- }
- public string GetTeamDescription()
- {
- if (Game.LocalPawn is Player player)
- {
- return TeamOperations.GetTeamDescription(player.CurrentTeam);
- }
- return "";
- }
- public string GetTeamColour()
- {
- if (Game.LocalPawn is Player player)
- {
- return TeamOperations.GetTeamColour(player.CurrentTeam);
- }
- return "";
- }
+ public string GetTeamName()
+ {
+ if (Game.LocalPawn is Player player)
+ {
+ return TeamOperations.GetTeamName(player.CurrentTeam);
+ }
+ return "";
+ }
+ public string GetTeamDescription()
+ {
+ if (Game.LocalPawn is Player player)
+ {
+ return TeamOperations.GetTeamDescription(player.CurrentTeam);
+ }
+ return "";
+ }
+ public string GetTeamColour()
+ {
+ if (Game.LocalPawn is Player player)
+ {
+ return TeamOperations.GetTeamColour(player.CurrentTeam);
+ }
+ return "";
+ }
public static RoleOverlay Instance { get; private set; }
public bool ShowOverlay { get; set; } = false;
- public RoleOverlay()
+ public RoleOverlay()
{
SetClass( "hidden", true );
Instance = this;
}
- protected override int BuildHash()
+ protected override int BuildHash()
{
return ShowOverlay.GetHashCode();
}
|
