CatStation/Content.Client/Instruments/UI/InstrumentMenu.xaml
Whatstone 2d25896763
InstrumentMenu: Channels panel expands with the window (#46033)
* Vertically expanding channels, -pointless Controls

* scamboni

* XAML control for the base midi CFG item
2026-09-18 04:54:08 +00:00

39 lines
2.2 KiB
XML

<controls:FancyWindow xmlns="https://spacestation14.io"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
MinSize="480 440"
SetSize="500 500">
<BoxContainer Orientation="Vertical" Margin="1,0,0,5" SeparationOverride="10">
<TabContainer Name="MainTabContainer" VerticalExpand="True">
<BoxContainer Name="InstrumentContainer" Orientation="Horizontal" VerticalExpand="True"
SeparationOverride="10">
<BoxContainer Orientation="Vertical" VerticalExpand="True">
<BoxContainer Name="MidiSourceButtonsBoxContainer" Orientation="Vertical">
<Label Text="{Loc 'instruments-component-menu-midi-source-button'}" />
</BoxContainer>
<BoxContainer Orientation="Vertical" VerticalExpand="True">
<SpriteView Name="InstrumentSpriteView" Stretch="Fill" VerticalExpand="True" />
</BoxContainer>
</BoxContainer>
<BoxContainer Name="MidiSourcesContainer" VerticalExpand="True" HorizontalExpand="True" />
</BoxContainer>
<ScrollContainer Name="ConfigScrollContainer" HScrollEnabled="False" HorizontalExpand="True"
VerticalExpand="True">
<BoxContainer
Name="ConfigurationItemsContainer"
Orientation="Vertical"
VerticalExpand="True"
HorizontalExpand="True" />
</ScrollContainer>
</TabContainer>
</BoxContainer>
<PanelContainer Name="UnavailableOverlay" Visible="False" MouseFilter="Stop">
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#000000F5" />
</PanelContainer.PanelOverride>
<Label VerticalAlignment="Center" HorizontalAlignment="Center" Align="Center"
StyleClasses="LabelBig"
Text="{Loc instruments-component-menu-no-midi-support}" />
</PanelContainer>
</controls:FancyWindow>