StyleBox.Margin cutOut;
StyleBox.Margin flat;
Thickness contentMargin;
+ Thickness patchMargin;
switch (location)
{
Contents.Margin = contentMargin;
+ //Important to note for patchMargin!
+ //Because of hand ui flipping, left and right instead correspond to outside and inside respectively.
+ patchMargin = MarginFromThemeColor("_itemstatus_patch_margin");
+
var panel = (StyleBoxTexture) Panel.PanelOverride!;
panel.Texture = texture;
- panel.SetPatchMargin(flat, 4);
- panel.SetPatchMargin(cutOut, 7);
+ panel.SetPatchMargin(cutOut, patchMargin.Left);
+ panel.SetPatchMargin(flat, patchMargin.Right);
+ panel.SetPatchMargin(StyleBox.Margin.Top, patchMargin.Top);
+ panel.SetPatchMargin(StyleBox.Margin.Bottom, patchMargin.Bottom);
var panelHighlight = (StyleBoxTexture) HighlightPanel.PanelOverride!;
panelHighlight.Texture = textureHighlight;
- panelHighlight.SetPatchMargin(flat, 4);
- panelHighlight.SetPatchMargin(cutOut, 7);
+ panelHighlight.SetPatchMargin(cutOut, patchMargin.Left);
+ panelHighlight.SetPatchMargin(flat, patchMargin.Right);
+ panelHighlight.SetPatchMargin(StyleBox.Margin.Top, patchMargin.Top);
+ panelHighlight.SetPatchMargin(StyleBox.Margin.Bottom, patchMargin.Bottom);
_side = location;
}
disabledFore: "#5A5A5A"
_itemstatus_content_margin_right: "#06060404"
_itemstatus_content_margin_left: "#04060604"
+ _itemstatus_patch_margin: "#07060404"
- type: uiTheme
id: SS14PlasmafireTheme
path: /Textures/Interface/Plasmafire/
disabledFore: "#FFF5EE"
_itemstatus_content_margin_right: "#06060404"
_itemstatus_content_margin_left: "#04060604"
+ _itemstatus_patch_margin: "#07060404"
- type: uiTheme
id: SS14SlimecoreTheme
path: /Textures/Interface/Slimecore/
disabledFore: "#FFF5EE"
_itemstatus_content_margin_right: "#06060404"
_itemstatus_content_margin_left: "#04060604"
+ _itemstatus_patch_margin: "#07060404"
- type: uiTheme
id: SS14ClockworkTheme
path: /Textures/Interface/Clockwork/
disabledFore: "#FFF5EE"
_itemstatus_content_margin_right: "#06060404"
_itemstatus_content_margin_left: "#04060604"
+ _itemstatus_patch_margin: "#07060404"
- type: uiTheme
id: SS14RetroTheme
path: /Textures/Interface/Retro/
disabledFore: "#FFF5EE"
_itemstatus_content_margin_right: "#06060404"
_itemstatus_content_margin_left: "#04060604"
+ _itemstatus_patch_margin: "#07060404"
- type: uiTheme
id: SS14MinimalistTheme
path: /Textures/Interface/Minimalist/
disabledFore: "#5A5A5A"
_itemstatus_content_margin_right: "#06060604"
_itemstatus_content_margin_left: "#06060604"
+ _itemstatus_patch_margin: "#07060404"
- type: uiTheme
id: SS14AshenTheme
path: /Textures/Interface/Ashen/
disabledFore: "#FFF5EE"
_itemstatus_content_margin_right: "#06060604"
_itemstatus_content_margin_left: "#06060604"
+ _itemstatus_patch_margin: "#07060505"