-using Content.Client.Resources;
+using Content.Client.Resources;
using Content.Client.Stylesheets;
using Content.Client.Stylesheets.SheetletConfigs;
using Content.Client.Stylesheets.Stylesheets;
{ Texture = sheet.GetTexture(windowCfg.TransparentWindowBackgroundBorderedPath) };
paperBox.SetPatchMargin(StyleBox.Margin.All, 2);
+ var borderedTransparentTex = ResCache.GetTexture("/Textures/Interface/Nano/transparent_window_background_bordered.png");
+ var borderedTransparentBackground = new StyleBoxTexture
+ {
+ Texture = borderedTransparentTex,
+ };
+ borderedTransparentBackground.SetPatchMargin(StyleBox.Margin.All, 2);
+
return
[
E<PanelContainer>().Identifier("PaperContainer").Panel(paperBox),
E<PanelContainer>()
.Identifier("PaperDefaultBorder")
.Prop(PanelContainer.StylePropertyPanel, paperBackground),
+ E<PanelContainer>()
+ .Identifier("PaperEditBackground")
+ .Prop(PanelContainer.StylePropertyPanel, borderedTransparentBackground),
];
}
}
<RichTextLabel Name="BlankPaperIndicator" StyleClasses="LabelWeak" VerticalAlignment="Top" HorizontalAlignment="Center"/>
<RichTextLabel StyleClasses="PaperWrittenText" Name="WrittenTextLabel" VerticalAlignment="Top"/>
<BoxContainer Name="InputContainer" StyleIdentifier="PaperContainer" Orientation="Vertical" VerticalExpand="True" VerticalAlignment="Stretch">
- <PanelContainer StyleClasses="TransparentBorderedWindowPanel" MinHeight="100"
+ <PanelContainer StyleIdentifier="PaperEditBackground" MinHeight="100"
VerticalAlignment="Stretch" VerticalExpand="True" HorizontalExpand="True">
<TextEdit Name="Input" StyleClasses="PaperLineEdit" Access="Public" />
</PanelContainer>
public const string StyleClassHandSlotHighlight = "HandSlotHighlight";
public const string StyleClassChatPanel = "ChatPanel";
public const string StyleClassChatSubPanel = "ChatSubPanel";
- public const string StyleClassTransparentBorderedWindowPanel = "TransparentBorderedWindowPanel";
public const string StyleClassHotbarPanel = "HotbarPanel";
public const string StyleClassTooltipPanel = "tooltipBox";
public const string StyleClassTooltipAlertTitle = "tooltipAlertTitle";
};
handSlotHighlight.SetPatchMargin(StyleBox.Margin.All, 2);
- var borderedTransparentWindowBackgroundTex = resCache.GetTexture("/Textures/Interface/Nano/transparent_window_background_bordered.png");
- var borderedTransparentWindowBackground = new StyleBoxTexture
- {
- Texture = borderedTransparentWindowBackgroundTex,
- };
- borderedTransparentWindowBackground.SetPatchMargin(StyleBox.Margin.All, 2);
-
var hotbarBackground = new StyleBoxTexture
{
Texture = borderedWindowBackgroundTex,
{
new StyleProperty(PanelContainer.StylePropertyPanel, borderedWindowBackground),
}),
- new StyleRule(
- new SelectorElement(null, new[] {StyleClassTransparentBorderedWindowPanel}, null, null),
- new[]
- {
- new StyleProperty(PanelContainer.StylePropertyPanel, borderedTransparentWindowBackground),
- }),
// inventory slot background
new StyleRule(
new SelectorElement(null, new[] {StyleClassInventorySlotBackground}, null, null),