aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/overlay/RoleOverlay.razor
diff options
context:
space:
mode:
Diffstat (limited to 'code/ui/overlay/RoleOverlay.razor')
-rw-r--r--code/ui/overlay/RoleOverlay.razor126
1 files changed, 63 insertions, 63 deletions
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();
}