-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,079 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<BoxContainer xmlns="https://spacestation14.io" | ||
Margin="0 0 0 0" | ||
HorizontalExpand="True" | ||
Visible="True"> | ||
<BoxContainer Name="EntriesContainer" | ||
Orientation="Vertical" | ||
StyleClasses="transparentItemList" | ||
VerticalExpand="True" | ||
HorizontalExpand="True"/> | ||
</BoxContainer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client._Sunrise.StatsBoard; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class StatsEntries : BoxContainer | ||
{ | ||
public StatsEntries() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
IoCManager.InjectDependencies(this); | ||
} | ||
|
||
public void AddEntry(StatsEntry entry) | ||
{ | ||
EntriesContainer.AddChild(entry); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<BoxContainer xmlns="https://spacestation14.io" | ||
Margin="10 10 10 0" | ||
HorizontalExpand="True" | ||
Visible="True"> | ||
<PanelContainer StyleClasses="AngleRect" HorizontalExpand="True"> | ||
<BoxContainer Orientation="Vertical" HorizontalExpand="True" HorizontalAlignment="Left"> | ||
<BoxContainer Orientation="Horizontal" > | ||
<Label Text="Персонаж: " StyleClasses="LabelKeyText"/> | ||
<RichTextLabel Name="NameLabel"/> | ||
</BoxContainer> | ||
<RichTextLabel Name="StatsLabel"/> | ||
</BoxContainer> | ||
</PanelContainer> | ||
</BoxContainer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using Content.Client.Message; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client._Sunrise.StatsBoard; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class StatsEntry : BoxContainer | ||
{ | ||
public StatsEntry(string entityName, float takeDamage, float takeHeal, float inflictedDamage, float inflictedHeal, | ||
float slippedCount, float creamedCount, float doorEmagedCount, float electrocutedCount, float cuffedCount, | ||
float absorbedPuddleCount, int spentTk, float deadCount, float humanoidKillCount, float killedMouseCount, | ||
TimeSpan cuffedTime, TimeSpan spaceTime, TimeSpan sleepTime, string interactedCaptainCard) | ||
{ | ||
RobustXamlLoader.Load(this); | ||
IoCManager.InjectDependencies(this); | ||
|
||
NameLabel.SetMarkup($"{entityName}"); | ||
var statsText = ""; | ||
|
||
if (takeDamage > 0) | ||
statsText += $"Получил урона: {takeDamage}\n"; | ||
if (takeHeal > 0) | ||
statsText += $"Получил лечения: {takeHeal}\n"; | ||
if (inflictedDamage > 0) | ||
statsText += $"Нанес урона: {inflictedDamage}\n"; | ||
if (inflictedHeal > 0) | ||
statsText += $"Вылечил урона: {inflictedHeal}\n"; | ||
if (slippedCount > 0) | ||
statsText += $"Подскользнулся {slippedCount} раз\n"; | ||
if (creamedCount > 0) | ||
statsText += $"Кремирован {creamedCount} раз\n"; | ||
if (doorEmagedCount > 0) | ||
statsText += $"Емагнул {doorEmagedCount} дверей\n"; | ||
if (electrocutedCount > 0) | ||
statsText += $"Шокирован {electrocutedCount} раз\n"; | ||
if (cuffedCount > 0) | ||
statsText += $"Закован {cuffedCount} раз\n"; | ||
if (absorbedPuddleCount > 0) | ||
statsText += $"Убрано {absorbedPuddleCount} луж\n"; | ||
if (spentTk > 0) | ||
statsText += $"Потрачено {spentTk} ТК\n"; | ||
if (deadCount > 0) | ||
statsText += $"Погиб {deadCount} раз\n"; | ||
if (humanoidKillCount > 0) | ||
statsText += $"Убил {humanoidKillCount} гуманоидов\n"; | ||
if (killedMouseCount > 0) | ||
statsText += $"Убито мышей {killedMouseCount}\n"; | ||
if (cuffedTime > TimeSpan.Zero) | ||
statsText += $"Был в наручниках [color=yellow]{cuffedTime.ToString("hh\\:mm\\:ss")}[/color]\n"; | ||
if (spaceTime > TimeSpan.Zero) | ||
statsText += $"Был в космосе [color=yellow]{spaceTime.ToString("hh\\:mm\\:ss")}[/color]\n"; | ||
if (sleepTime > TimeSpan.Zero) | ||
statsText += $"Проспал [color=yellow]{sleepTime.ToString("hh\\:mm\\:ss")}[/color]\n"; | ||
|
||
statsText += $"Трогал карту капитана: {interactedCaptainCard}"; | ||
|
||
StatsLabel.SetMarkup($"{statsText}"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.