Fix warnings and code cleanup/fixes (#13570)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<paper:PaperWindow xmlns="https://spacestation14.io"
|
||||
xmlns:paper="clr-namespace:Content.Client.Paper.UI"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
|
||||
MouseFilter="Stop" Resizable="True" MinSize="150 150"
|
||||
SetSize="300 400"> <!-- Provide some reasonable sizes by default. Can be changed by the component -->
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Content.Client.Paper.UI
|
||||
{
|
||||
var resCache = IoCManager.Resolve<IResourceCache>();
|
||||
|
||||
/// Initialize the background:
|
||||
// Initialize the background:
|
||||
PaperBackground.ModulateSelfOverride = visuals.BackgroundModulate;
|
||||
var backgroundImage = visuals.BackgroundImagePath != null? resCache.GetResource<TextureResource>(visuals.BackgroundImagePath) : null;
|
||||
if (backgroundImage != null)
|
||||
@@ -111,7 +111,7 @@ namespace Content.Client.Paper.UI
|
||||
// So, we'll make the window non-resizable and fix the size of the content.
|
||||
// Ideally, would like to be able to allow resizing only one direction.
|
||||
ScrollingContents.MinSize = Vector2.Zero;
|
||||
ScrollingContents.MinSize = (Vector2)(a);
|
||||
ScrollingContents.MinSize = a;
|
||||
|
||||
if (a.X > 0.0f)
|
||||
{
|
||||
|
||||
@@ -1,14 +1,8 @@
|
||||
<paper:StampWidget xmlns="https://spacestation14.io"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
||||
xmlns:style="clr-namespace:Content.Client.Stylesheets"
|
||||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
|
||||
xmlns:paper="clr-namespace:Content.Client.Paper.UI" HorizontalAlignment="Center" Margin="6">
|
||||
<!--
|
||||
<TextureButton Margin="6 6 6 2" MinSize="24 12"
|
||||
TexturePath="/Textures/Interface/Nano/nano_stamp.192dpi.png">
|
||||
-->
|
||||
|
||||
|
||||
<BoxContainer Orientation="Vertical">
|
||||
<PanelContainer>
|
||||
|
||||
Reference in New Issue
Block a user