Implement fluent for some Menu files (#3893)

This commit is contained in:
Visne
2021-05-21 15:39:33 +02:00
committed by GitHub
parent e9844e8c4c
commit d97dd4400d
15 changed files with 134 additions and 59 deletions

View File

@@ -24,12 +24,12 @@ namespace Content.Client.Command
SetSize = MinSize = (600, 400);
IoCManager.InjectDependencies(this);
Title = Loc.GetString("Communications Console");
Title = Loc.GetString("communicationsconsole-menu-title");
Owner = owner;
_messageInput = new LineEdit
{
PlaceHolder = Loc.GetString("Announcement"),
PlaceHolder = Loc.GetString("communicationsconsole-menu-announcement-placeholder"),
HorizontalExpand = true,
SizeFlagsStretchRatio = 1
};
@@ -67,11 +67,11 @@ namespace Content.Client.Command
if (!Owner.CountdownStarted)
{
_countdownLabel.SetMessage("");
EmergencyShuttleButton.Text = Loc.GetString("Call emergency shuttle");
EmergencyShuttleButton.Text = Loc.GetString("communicationsconsole-menu-call-shuttle");
return;
}
EmergencyShuttleButton.Text = Loc.GetString("Recall emergency shuttle");
EmergencyShuttleButton.Text = Loc.GetString("communicationsconsole-menu-recall-shuttle");
_countdownLabel.SetMessage($"Time remaining\n{Owner.Countdown.ToString()}s");
}