ContextMenuElement.xaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <ContainerButton
  2. xmlns="https://spacestation14.io"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:ui="clr-namespace:Content.Client.ContextMenu.UI"
  5. MinHeight="{x:Static ui:ContextMenuElement.ElementHeight}">
  6. <BoxContainer Orientation="Horizontal">
  7. <SpriteView
  8. Name="Icon"
  9. SetWidth="{x:Static ui:ContextMenuElement.ElementHeight}"
  10. SetHeight="{x:Static ui:ContextMenuElement.ElementHeight}"
  11. OverrideDirection="South">
  12. <Label
  13. Name="IconLabel"
  14. HorizontalAlignment="Right"
  15. VerticalAlignment="Bottom"
  16. StyleClasses="contextMenuIconLabel"
  17. Visible="false"/>
  18. </SpriteView>
  19. <RichTextLabel
  20. Name="Label"
  21. MaxWidth="300"
  22. HorizontalExpand="True"
  23. VerticalAlignment="Center"
  24. Margin ="4 0 4 0"/>
  25. <TextureRect
  26. Name="ExpansionIndicator"
  27. HorizontalAlignment="Right"
  28. Stretch="KeepCentered"
  29. StyleClasses="contextMenuExpansionTexture"
  30. TextureScale="0.5 0.5"
  31. SetWidth="{x:Static ui:ContextMenuElement.ElementHeight}"
  32. SetHeight="{x:Static ui:ContextMenuElement.ElementHeight}"
  33. Visible ="false"/>
  34. </BoxContainer>
  35. </ContainerButton>