HumanoidProfileEditor.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <BoxContainer xmlns="https://spacestation14.io"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:humanoid="clr-namespace:Content.Client.Humanoid"
  4. xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
  5. xmlns:ui="clr-namespace:Content.Client.Lobby.UI"
  6. HorizontalExpand="True">
  7. <!-- Left side -->
  8. <BoxContainer Orientation="Vertical" Margin="10 10 10 10" HorizontalExpand="True">
  9. <!-- Middle container -->
  10. <BoxContainer Orientation="Horizontal" SeparationOverride="10" HorizontalExpand="True">
  11. <!-- Name box-->
  12. <BoxContainer Orientation="Vertical">
  13. <ui:HighlightedContainer>
  14. <BoxContainer Orientation="Vertical">
  15. <ui:HighlightedContainer>
  16. <BoxContainer Orientation="Vertical">
  17. <BoxContainer Orientation="Horizontal" VerticalExpand="True">
  18. <Label Text="{Loc 'humanoid-profile-editor-name-label'}" />
  19. <LineEdit Name="NameEdit" MinSize="270 0" VerticalAlignment="Center" Margin="5 0 0 0" />
  20. <Button Name="NameRandomize" Text="{Loc 'humanoid-profile-editor-name-random-button'}" />
  21. </BoxContainer>
  22. <Button Name="RandomizeEverythingButton" HorizontalAlignment="Center"
  23. HorizontalExpand="False" MaxWidth="256"
  24. Text="{Loc 'humanoid-profile-editor-randomize-everything-button'}" />
  25. <RichTextLabel Name="WarningLabel" HorizontalExpand="False"
  26. VerticalExpand="True" MaxWidth="425"
  27. HorizontalAlignment="Left" />
  28. </BoxContainer>
  29. </ui:HighlightedContainer>
  30. </BoxContainer>
  31. </ui:HighlightedContainer>
  32. </BoxContainer>
  33. <!-- Import/Export -->
  34. <BoxContainer Orientation="Vertical" MinSize="60 0" HorizontalExpand="True" HorizontalAlignment="Right">
  35. <ui:HighlightedContainer Name="ProfileHighlight">
  36. <BoxContainer Orientation="Vertical">
  37. <Button Name="SaveButton" Text="{Loc 'humanoid-profile-editor-save-button'}"/>
  38. <Button Name="ResetButton" Disabled="True" Text="{Loc 'humanoid-profile-editor-reset-button'}"/>
  39. <Button Name="ImportButton" Text="{Loc 'humanoid-profile-editor-import-button'}"/>
  40. <Button Name="ExportButton" Text="{Loc 'humanoid-profile-editor-export-button'}"/>
  41. <Button Name="ExportImageButton" Text="{Loc 'humanoid-profile-editor-export-image-button'}"/>
  42. <Button Name="OpenImagesButton" Text="{Loc 'humanoid-profile-editor-open-image-button'}"/>
  43. </BoxContainer>
  44. </ui:HighlightedContainer>
  45. </BoxContainer>
  46. </BoxContainer>
  47. <Control MinHeight="10" />
  48. <!-- tabContainer -->
  49. <TabContainer Name="TabContainer" VerticalExpand="True">
  50. <BoxContainer Orientation="Vertical">
  51. <ScrollContainer VerticalExpand="True">
  52. <!-- appearanceList -->
  53. <BoxContainer Orientation="Vertical">
  54. <BoxContainer Margin="10" Orientation="Vertical" HorizontalExpand="True">
  55. <!-- Species -->
  56. <BoxContainer HorizontalExpand="True">
  57. <Label Text="{Loc 'humanoid-profile-editor-species-label'}" />
  58. <Control HorizontalExpand="True"/>
  59. <TextureButton Name="SpeciesInfoButton" Scale="0.3 0.3"
  60. VerticalAlignment="Center"
  61. ToolTip="{Loc 'humanoid-profile-editor-guidebook-button-tooltip'}"/>
  62. <OptionButton Name="SpeciesButton" HorizontalAlignment="Right" />
  63. </BoxContainer>
  64. <!-- Age -->
  65. <BoxContainer HorizontalExpand="True">
  66. <Label Text="{Loc 'humanoid-profile-editor-age-label'}" />
  67. <Control HorizontalExpand="True"/>
  68. <LineEdit Name="AgeEdit" MinSize="40 0" HorizontalAlignment="Right" />
  69. </BoxContainer>
  70. <!-- Sex -->
  71. <BoxContainer HorizontalExpand="True">
  72. <Label Text="{Loc 'humanoid-profile-editor-sex-label'}" />
  73. <Control HorizontalExpand="True"/>
  74. <OptionButton Name="SexButton" HorizontalAlignment="Right" />
  75. </BoxContainer>
  76. <!-- Pronouns -->
  77. <BoxContainer HorizontalExpand="True">
  78. <Label Text="{Loc 'humanoid-profile-editor-pronouns-label'}" />
  79. <Control HorizontalExpand="True"/>
  80. <OptionButton Name="PronounsButton" HorizontalAlignment="Right" />
  81. </BoxContainer>
  82. <!-- Show clothing -->
  83. <BoxContainer HorizontalExpand="True">
  84. <Label Text="{Loc 'humanoid-profile-editor-clothing'}" />
  85. <Control HorizontalExpand="True"/>
  86. <Button Name="ShowClothes" Pressed="True" ToggleMode="True" Text="{Loc 'humanoid-profile-editor-clothing-show'}" HorizontalAlignment="Right" />
  87. </BoxContainer>
  88. <!-- Spawn Priority -->
  89. <BoxContainer HorizontalExpand="True">
  90. <Label Text="{Loc 'humanoid-profile-editor-spawn-priority-label'}" />
  91. <Control HorizontalExpand="True"/>
  92. <OptionButton Name="SpawnPriorityButton" HorizontalAlignment="Right" />
  93. </BoxContainer>
  94. </BoxContainer>
  95. <!-- Skin -->
  96. <BoxContainer Margin="10" HorizontalExpand="True" Orientation="Vertical">
  97. <Label Text="{Loc 'humanoid-profile-editor-skin-color-label'}" />
  98. <Slider HorizontalExpand="True" Name="Skin" MinValue="0" MaxValue="100" Value="20" />
  99. <BoxContainer Name="RgbSkinColorContainer" Visible="False" Orientation="Vertical" HorizontalExpand="True"></BoxContainer>
  100. </BoxContainer>
  101. <!-- Hair -->
  102. <BoxContainer Margin="10" Orientation="Horizontal">
  103. <humanoid:SingleMarkingPicker Name="HairStylePicker" Category="Hair" />
  104. <humanoid:SingleMarkingPicker Name="FacialHairPicker" Category="FacialHair" />
  105. </BoxContainer>
  106. <!-- Eyes -->
  107. <BoxContainer Margin="10" Orientation="Vertical">
  108. <Label Text="{Loc 'humanoid-profile-editor-eyes-label'}" />
  109. <humanoid:EyeColorPicker Name="EyeColorPicker" />
  110. </BoxContainer>
  111. </BoxContainer>
  112. </ScrollContainer>
  113. </BoxContainer>
  114. <BoxContainer Orientation="Vertical">
  115. <!-- Jobs -->
  116. <OptionButton Name="PreferenceUnavailableButton" />
  117. <ScrollContainer VerticalExpand="True">
  118. <BoxContainer Name="JobList" Orientation="Vertical" />
  119. </ScrollContainer>
  120. </BoxContainer>
  121. <BoxContainer Orientation="Vertical" Margin="10">
  122. <!-- Antags -->
  123. <ScrollContainer VerticalExpand="True">
  124. <BoxContainer Name="AntagList" Orientation="Vertical" />
  125. </ScrollContainer>
  126. </BoxContainer>
  127. <BoxContainer Orientation="Vertical" Margin="10">
  128. <!-- Traits -->
  129. <ScrollContainer VerticalExpand="True">
  130. <BoxContainer Name="TraitsList" Orientation="Vertical" />
  131. </ScrollContainer>
  132. </BoxContainer>
  133. <BoxContainer Name="MarkingsTab" Orientation="Vertical" Margin="10">
  134. <!-- Markings -->
  135. <ScrollContainer VerticalExpand="True">
  136. <humanoid:MarkingPicker Name="Markings" IgnoreCategories="Hair,FacialHair" />
  137. </ScrollContainer>
  138. </BoxContainer>
  139. </TabContainer>
  140. </BoxContainer>
  141. <!-- Right side -->
  142. <BoxContainer Orientation="Vertical" VerticalExpand="True" VerticalAlignment="Center">
  143. <SpriteView Name="SpriteView" Scale="8 8" Margin="4" SizeFlagsStretchRatio="1" />
  144. <BoxContainer Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 5">
  145. <Button Name="SpriteRotateLeft" Text="◀" StyleClasses="OpenRight" />
  146. <cc:VSeparator Margin="2 0 3 0" />
  147. <Button Name="SpriteRotateRight" Text="▶" StyleClasses="OpenLeft" />
  148. </BoxContainer>
  149. </BoxContainer>
  150. </BoxContainer>