* init * fax translate * translate * translate cargo panel * road map translate * Fix cargo panel | fix bot craft translate * fix, steal objectives translate * do not break my not localized fax! * fix * radio guide translate * Better DefaultRules * Translate Criminal Records * Space luw fully translate excluding CrimeList(need to rework) * Some Guidebook translate * Перевод глоссария, некоторые термины были переписанны под РУ комьюнити игры, некоторые к сожелению остались прежними * Fix * fix, translate * Обновил структуру SpeakOnUIClosed, пофиксил перевод автоматов * update and fix * fully translate * fix * not fail but warn * fix * fix2 * фикс уже переведённого дерьма от корвахов * Добавил термин подов в глоссарий * roles translate fix * Сикей в глоссарий * Delete Resources/Locale/ru-RU/_sunrise/info/character-info.ftl * remove cluster from pool * new translation * fully translate borgs * some fixes * Mr.Chang moment * upd * upd * upd * hotfix * big fix * fix some hardcode lang * oh no shitcode language * some translation * some actions| admin commands translate start * some new translation * fully translate commands | figurines | chat-repo * upd * second upd * upd * start translating items * some fixes * translate wackpack Из-за игры слов, я не смог нормально интерпритировать это дерьмо, так что пусть будет так, да теряется смысл и смешинка, но извините, я не смог как-то придумать игру слов * translate * debug translate * upd * Актуализация всего перевода * fix * fix * upd * some fixes | guns to his folders * upd * upd * upd * upd * upd * upd * Перевод меток атмоса * Последние коррективы * fix * some hardcode localization fix * fix * some fixes * stats entry fully translate * upd * some fixes * translate server side stats entry * fix * fix * fix2 * fix * upd * upd * fix * holly shit * fix * totaly feed * upd * upd * fix * upd * init * upd * upd * access in prototypes * Sunrise comments on code * my bad * я даун
62 lines
3.1 KiB
C#
62 lines
3.1 KiB
C#
using Content.Client.Message;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.Localization;
|
|
|
|
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 += Loc.GetString("statsentry-dmg", ("name", takeDamage));
|
|
if (takeHeal > 0)
|
|
statsText += Loc.GetString("statsentry-heal", ("name", takeHeal));
|
|
if (inflictedDamage > 0)
|
|
statsText += Loc.GetString("statsentry-inf-dmg", ("name", inflictedDamage));
|
|
if (inflictedHeal > 0)
|
|
statsText += Loc.GetString("statsentry-inf-heal", ("name", inflictedHeal));
|
|
if (slippedCount > 0)
|
|
statsText += Loc.GetString("statsentry-slp-cnt", ("name", slippedCount));
|
|
if (creamedCount > 0)
|
|
statsText += Loc.GetString("statsentry-crm-cnt", ("name", creamedCount));
|
|
if (doorEmagedCount > 0)
|
|
statsText += Loc.GetString("statsentry-dre-cnt", ("name", doorEmagedCount));
|
|
if (electrocutedCount > 0)
|
|
statsText += Loc.GetString("statsentry-elctr-cnt", ("name", electrocutedCount));
|
|
if (cuffedCount > 0)
|
|
statsText += Loc.GetString("statsentry-cuff-cnt", ("name", cuffedCount));
|
|
if (absorbedPuddleCount > 0)
|
|
statsText += Loc.GetString("statsentry-absrbpudd-cnt", ("name", absorbedPuddleCount));
|
|
if (spentTk > 0)
|
|
statsText += Loc.GetString("statsentry-spnt-tk", ("name", spentTk));
|
|
if (deadCount > 0)
|
|
statsText += Loc.GetString("statsentry-dead-cnt", ("name", deadCount));
|
|
if (humanoidKillCount > 0)
|
|
statsText += Loc.GetString("statsentry-hmn-kill-cnt", ("name", humanoidKillCount));
|
|
if (killedMouseCount > 0)
|
|
statsText += Loc.GetString("statsentry-mouse-kill-cnt", ("name", killedMouseCount));
|
|
if (cuffedTime > TimeSpan.Zero)
|
|
statsText += Loc.GetString("statsentry-cuff-time", ("name", cuffedTime.ToString("hh\\:mm\\:ss")));
|
|
if (spaceTime > TimeSpan.Zero)
|
|
statsText += Loc.GetString("statsentry-space-time", ("name", spaceTime.ToString("hh\\:mm\\:ss")));
|
|
if (sleepTime > TimeSpan.Zero)
|
|
statsText += Loc.GetString("statsentry-sleep-time", ("name", sleepTime.ToString("hh\\:mm\\:ss")));
|
|
|
|
statsText += Loc.GetString("statsentry-int-cc", ("name", interactedCaptainCard));
|
|
|
|
StatsLabel.SetMarkup($"{statsText}");
|
|
}
|
|
}
|