Adds the station name to PDAs (#9987)
Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
@@ -79,14 +79,16 @@ namespace Content.Client.PDA
|
||||
if (msg.PDAOwnerInfo.IdOwner != null || msg.PDAOwnerInfo.JobTitle != null)
|
||||
{
|
||||
_menu.IdInfoLabel.SetMarkup(Loc.GetString("comp-pda-ui",
|
||||
("Owner",msg.PDAOwnerInfo.IdOwner ?? "Unknown"),
|
||||
("JobTitle",msg.PDAOwnerInfo.JobTitle ?? "Unassigned")));
|
||||
("Owner",msg.PDAOwnerInfo.IdOwner ?? Loc.GetString("comp-pda-ui-unknown")),
|
||||
("JobTitle",msg.PDAOwnerInfo.JobTitle ?? Loc.GetString("comp-pda-ui-unassigned"))));
|
||||
}
|
||||
else
|
||||
{
|
||||
_menu.IdInfoLabel.SetMarkup(Loc.GetString("comp-pda-ui-blank"));
|
||||
}
|
||||
|
||||
_menu.StationNameLabel.SetMarkup(Loc.GetString("comp-pda-ui-station", ("Station",msg.StationName ?? Loc.GetString("comp-pda-ui-unknown"))));
|
||||
|
||||
_menu.EjectIdButton.Visible = msg.PDAOwnerInfo.IdOwner != null || msg.PDAOwnerInfo.JobTitle != null;
|
||||
_menu.EjectPenButton.Visible = msg.HasPen;
|
||||
_menu.ActivateUplinkButton.Visible = msg.HasUplink;
|
||||
|
||||
@@ -8,9 +8,12 @@
|
||||
HorizontalExpand="True"
|
||||
MinSize="50 50">
|
||||
<RichTextLabel Name="PdaOwnerLabel" Access="Public" />
|
||||
<RichTextLabel Name="IdInfoLabel"
|
||||
Access="Public"
|
||||
HorizontalExpand="True" />
|
||||
<PanelContainer>
|
||||
<BoxContainer Orientation="Horizontal">
|
||||
<RichTextLabel Name="IdInfoLabel"
|
||||
<RichTextLabel Name="StationNameLabel"
|
||||
Access="Public"
|
||||
HorizontalExpand="True" />
|
||||
<Button Name="EjectIdButton"
|
||||
|
||||
Reference in New Issue
Block a user