Fixing some warnings (#6250)

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
wrexbe
2022-01-21 01:38:35 -08:00
committed by GitHub
parent 29b22e2871
commit cea1b21832
191 changed files with 341 additions and 340 deletions

View File

@@ -1,8 +1,8 @@
<SS14Window xmlns="https://spacestation14.io"
<DefaultWindow xmlns="https://spacestation14.io"
Title="{Loc 'ghost-roles-window-title'}">
<BoxContainer Orientation="Vertical"
HorizontalExpand="True">
<RichTextLabel Name="Title" VerticalExpand="True"/>
<RichTextLabel Name="TopBanner" VerticalExpand="True"/>
<Button Name="RequestButton"
Text="{Loc 'ghost-roles-window-request-role-button'}"
Disabled="True"
@@ -10,4 +10,4 @@
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</BoxContainer>
</SS14Window>
</DefaultWindow>

View File

@@ -11,13 +11,13 @@ using Robust.Shared.Utility;
namespace Content.Client.Ghost.Roles.UI
{
[GenerateTypedNameReferences]
public partial class GhostRoleRulesWindow : SS14Window
public partial class GhostRoleRulesWindow : DefaultWindow
{
private float _timer = 5.0f;
public GhostRoleRulesWindow(string rules, Action<BaseButton.ButtonEventArgs> requestAction)
{
RobustXamlLoader.Load(this);
Title.SetMessage(FormattedMessage.FromMarkupPermissive(rules + "\n" + Loc.GetString("ghost-roles-window-rules-footer")));
TopBanner.SetMessage(FormattedMessage.FromMarkupPermissive(rules + "\n" + Loc.GetString("ghost-roles-window-rules-footer")));
RequestButton.OnPressed += requestAction;
}

View File

@@ -1,4 +1,4 @@
<SS14Window xmlns="https://spacestation14.io"
<DefaultWindow xmlns="https://spacestation14.io"
Title="{Loc 'ghost-roles-window-title'}"
MinSize="375 275">
<Label Name="NoRolesMessage"
@@ -13,4 +13,4 @@
<!-- Ghost role entries are added here by code -->
</BoxContainer>
</ScrollContainer>
</SS14Window>
</DefaultWindow>

View File

@@ -6,7 +6,7 @@ using Robust.Client.UserInterface.CustomControls;
namespace Content.Client.Ghost.Roles.UI
{
[GenerateTypedNameReferences]
public partial class GhostRolesWindow : SS14Window
public partial class GhostRolesWindow : DefaultWindow
{
public event Action<GhostRoleInfo>? RoleRequested;

View File

@@ -1,4 +1,4 @@
<SS14Window Title="Make Ghost Role"
<DefaultWindow Title="Make Ghost Role"
xmlns="https://spacestation14.io">
<BoxContainer Orientation="Vertical">
@@ -27,4 +27,4 @@
</BoxContainer>
</BoxContainer>
</SS14Window>
</DefaultWindow>

View File

@@ -7,7 +7,7 @@ using static Robust.Client.UserInterface.Controls.BaseButton;
namespace Content.Client.Ghost.Roles.UI
{
[GenerateTypedNameReferences]
public partial class MakeGhostRoleWindow : SS14Window
public partial class MakeGhostRoleWindow : DefaultWindow
{
public delegate void MakeRole(EntityUid uid, string name, string description, string rules, bool makeSentient);

View File

@@ -1,4 +1,4 @@
<SS14Window xmlns="https://spacestation14.io"
<DefaultWindow xmlns="https://spacestation14.io"
Title="{Loc 'ghost-target-window-title'}"
MinSize="300 450"
SetSize="300 450">
@@ -11,4 +11,4 @@
<!-- Target buttons get added here by code -->
</BoxContainer>
</ScrollContainer>
</SS14Window>
</DefaultWindow>

View File

@@ -12,7 +12,7 @@ using Robust.Shared.Localization;
namespace Content.Client.Ghost.UI
{
[GenerateTypedNameReferences]
public partial class GhostTargetWindow : SS14Window
public partial class GhostTargetWindow : DefaultWindow
{
private readonly IEntityNetworkManager _netManager;