-
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.
Merge remote-tracking branch 'refs/remotes/wizards/master'
# Conflicts: # Resources/Prototypes/Entities/Mobs/Player/humanoid.yml
- Loading branch information
Showing
163 changed files
with
11,732 additions
and
9,647 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
26 changes: 12 additions & 14 deletions
26
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTab.xaml
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 |
---|---|---|
@@ -1,21 +1,19 @@ | ||
<Control xmlns="https://spacestation14.io" | ||
xmlns:pt="clr-namespace:Content.Client.Administration.UI.Tabs.PlayerTab" | ||
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"> | ||
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls" | ||
xmlns:co="clr-namespace:Content.Client.UserInterface.Controls"> | ||
<BoxContainer Orientation="Vertical"> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Label Name="PlayerCount" HorizontalExpand="True" SizeFlagsStretchRatio="0.50" | ||
Text="{Loc Player Count}" /> | ||
<Button Name="ShowDisconnectedButton" HorizontalExpand="True" SizeFlagsStretchRatio="0.25" | ||
Text="{Loc player-tab-show-disconnected}" ToggleMode="True"/> | ||
<Button Name="OverlayButton" HorizontalExpand="True" SizeFlagsStretchRatio="0.25" | ||
Text="{Loc player-tab-overlay}" ToggleMode="True"/> | ||
<Label Name="PlayerCount" HorizontalExpand="True" Text="{Loc Player Count}" /> | ||
<LineEdit Name="SearchLineEdit" HorizontalExpand="True" | ||
PlaceHolder="{Loc player-tab-filter-line-edit-placeholder}" /> | ||
<Button Name="ShowDisconnectedButton" HorizontalExpand="True" | ||
Text="{Loc player-tab-show-disconnected}" ToggleMode="True" /> | ||
<Button Name="OverlayButton" HorizontalExpand="True" Text="{Loc player-tab-overlay}" ToggleMode="True" /> | ||
</BoxContainer> | ||
<Control MinSize="0 5" /> | ||
<ScrollContainer HorizontalExpand="True" VerticalExpand="True"> | ||
<BoxContainer Orientation="Vertical" Name="PlayerList"> | ||
<pt:PlayerTabHeader Name="ListHeader" /> | ||
<cc:HSeparator /> | ||
</BoxContainer> | ||
</ScrollContainer> | ||
<Control MinSize="0 5"/> | ||
<pt:PlayerTabHeader Name="ListHeader"/> | ||
<cc:HSeparator/> | ||
<co:SearchListContainer Name="SearchList" Access="Public" VerticalExpand="True"/> | ||
</BoxContainer> | ||
</Control> |
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
26 changes: 14 additions & 12 deletions
26
Content.Client/Administration/UI/Tabs/PlayerTab/PlayerTabEntry.xaml.cs
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 |
---|---|---|
@@ -1,28 +1,30 @@ | ||
using Robust.Client.AutoGenerated; | ||
using Content.Shared.Administration; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.Graphics; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client.Administration.UI.Tabs.PlayerTab; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class PlayerTabEntry : ContainerButton | ||
public sealed partial class PlayerTabEntry : PanelContainer | ||
{ | ||
public NetEntity? PlayerEntity; | ||
|
||
public PlayerTabEntry(string username, string character, string identity, string job, string antagonist, StyleBox styleBox, bool connected, string overallPlaytime) | ||
public PlayerTabEntry(PlayerInfo player, StyleBoxFlat styleBoxFlat) | ||
{ | ||
RobustXamlLoader.Load(this); | ||
|
||
UsernameLabel.Text = username; | ||
if (!connected) | ||
UsernameLabel.Text = player.Username; | ||
if (!player.Connected) | ||
UsernameLabel.StyleClasses.Add("Disabled"); | ||
JobLabel.Text = job; | ||
CharacterLabel.Text = character; | ||
if (identity != character) | ||
CharacterLabel.Text += $" [{identity}]"; | ||
AntagonistLabel.Text = antagonist; | ||
BackgroundColorPanel.PanelOverride = styleBox; | ||
OverallPlaytimeLabel.Text = overallPlaytime; | ||
JobLabel.Text = player.StartingJob; | ||
CharacterLabel.Text = player.CharacterName; | ||
if (player.IdentityName != player.CharacterName) | ||
CharacterLabel.Text += $" [{player.IdentityName}]"; | ||
AntagonistLabel.Text = Loc.GetString(player.Antag ? "player-tab-is-antag-yes" : "player-tab-is-antag-no"); | ||
BackgroundColorPanel.PanelOverride = styleBoxFlat; | ||
OverallPlaytimeLabel.Text = player.PlaytimeString; | ||
PlayerEntity = player.NetEntity; | ||
} | ||
} |
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.