aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/PlayerInfo.razor
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-07-27 22:30:22 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-07-27 22:30:22 +0100
commit8b69e65e51507118b014a0426ae6f957b78a0707 (patch)
treec1507990c5f5cc05a4e9000c295618ac85524f9a /code/ui/PlayerInfo.razor
parent71db52c5443a7bf82d9a23a770994a42b043be04 (diff)
Reformat
Diffstat (limited to 'code/ui/PlayerInfo.razor')
-rw-r--r--code/ui/PlayerInfo.razor50
1 files changed, 25 insertions, 25 deletions
diff --git a/code/ui/PlayerInfo.razor b/code/ui/PlayerInfo.razor
index 53a71df..2acdef0 100644
--- a/code/ui/PlayerInfo.razor
+++ b/code/ui/PlayerInfo.razor
@@ -5,18 +5,18 @@
@inherits Panel
<style>
- playerinfo {
- position: absolute;
- left: 30px;
- bottom: 30px;
- background-color: rgba(0, 0, 0, 0.20);
- backdrop-filter-blur: 8px;
- display: flex;
- align-items: center;
- flex-direction: row;
- gap: 10px;
- padding: 10px;
- }
+playerinfo {
+ position: absolute;
+ left: 30px;
+ bottom: 30px;
+ background-color: rgba(0, 0, 0, 0.20);
+ backdrop-filter-blur: 8px;
+ display: flex;
+ align-items: center;
+ flex-direction: row;
+ gap: 10px;
+ padding: 10px;
+}
</style>
<Health Colour="@GetTeamColour()"></Health>
@@ -24,18 +24,18 @@
@code
{
- public string GetTeamColour()
- {
- var ClientPawn = Game.LocalPawn;
- if (ClientPawn is Player)
- {
- return TeamOperations.GetTeamColour(((Player)ClientPawn).CurrentTeam);
- }
- return "";
- }
+ public string GetTeamColour()
+ {
+ var ClientPawn = Game.LocalPawn;
+ if (ClientPawn is Player)
+ {
+ return TeamOperations.GetTeamColour(((Player)ClientPawn).CurrentTeam);
+ }
+ return "";
+ }
- protected override int BuildHash()
- {
- return GetTeamColour().GetHashCode();
- }
+ protected override int BuildHash()
+ {
+ return GetTeamColour().GetHashCode();
+ }
}