Remove encapsulation for previously protected XAML UI fields (#4975)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<customControls:BoxContainer Orientation="Vertical" xmlns:customControls="https://spacestation14.io">
|
||||
<customControls:SplitContainer Orientation="Horizontal">
|
||||
<customControls:Label Name="Label" Align="Center"/>
|
||||
<customControls:Button Name="Button" TextAlign="Center"/>
|
||||
</customControls:SplitContainer>
|
||||
<customControls:ItemList Name="ItemList" VerticalExpand="True" HorizontalExpand="True" SelectMode="Button" SizeFlagsStretchRatio="2" MinSize="100 128"/>
|
||||
</customControls:BoxContainer>
|
||||
<BoxContainer Orientation="Vertical" xmlns="https://spacestation14.io">
|
||||
<SplitContainer Orientation="Horizontal">
|
||||
<Label Name="Label" Align="Center"/>
|
||||
<Button Name="EjectButton" Access="Public" TextAlign="Center"/>
|
||||
</SplitContainer>
|
||||
<ItemList Name="BoxContents" Access="Public" VerticalExpand="True" HorizontalExpand="True" SelectMode="Button" SizeFlagsStretchRatio="2" MinSize="100 128"/>
|
||||
</BoxContainer>
|
||||
|
||||
@@ -7,9 +7,6 @@ namespace Content.Client.Kitchen.UI
|
||||
public partial class LabelledContentBox : BoxContainer
|
||||
{
|
||||
public string? LabelText { get => Label.Text; set => Label.Text = value; }
|
||||
public string? ButtonText { get => Button.Text; set => Button.Text = value; }
|
||||
|
||||
public ItemList BoxContents => ItemList;
|
||||
public Button EjectButton => Button;
|
||||
public string? ButtonText { get => EjectButton.Text; set => EjectButton.Text = value; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user