mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
* Fix hide categories logic (it works!) * Optimization code * Fix for new loadouts * Rabbit + my ltl fix * Full translation loadouts, traits & hub menu * Auto-hide categories for new loadouts (incomplete) * Search fix done * Now fix definitely done * Format * System of hide categories * Add flavour fill warning * Old save characters now can be import!! * Add placeholders in 'Customize' * 'Weight update on change' fix * Markings fix * New translate pack * IPC markings screen fix * Fix tests * Rabbit fix * Fix characters export & zero weight * Translate * Fix tests mb * Rabbit fix 2 * Rabbit fix 3
324 lines
24 KiB
XML
324 lines
24 KiB
XML
<BoxContainer xmlns="https://spacestation14.io"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:humanoid="clr-namespace:Content.Client.Humanoid"
|
|
xmlns:prefUi="clr-namespace:Content.Client.Lobby.UI"
|
|
xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls"
|
|
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
|
|
xmlns:controls="clr-namespace:Content.Client._White.UserInterface.Controls"
|
|
xmlns:loadouts="clr-namespace:Content.Client._White.Loadouts"
|
|
HorizontalExpand="True">
|
|
<!-- Left side -->
|
|
<BoxContainer Orientation="Vertical" Margin="10 10 10 10" HorizontalExpand="True">
|
|
<!-- Top -->
|
|
<PanelContainer StyleClasses="PanelBackground"> <!-- WD EDIT -->
|
|
<BoxContainer Orientation="Horizontal" MinSize="60 0" HorizontalExpand="True" HorizontalAlignment="Right">
|
|
<prefUi:HighlightedContainer Name="ProfileHighlight">
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Button Name="SaveButton" Text="{Loc 'humanoid-profile-editor-save-button'}" StyleClasses="OpenRight" />
|
|
<Button Name="ResetButton" Disabled="True" Text="{Loc 'humanoid-profile-editor-reset-button'}" StyleClasses="OpenBoth" />
|
|
<Control MinWidth="5" />
|
|
<Button Name="ImportButton" Text="{Loc 'humanoid-profile-editor-import-button'}" StyleClasses="OpenRight" />
|
|
<Button Name="ExportButton" Text="{Loc 'humanoid-profile-editor-export-button'}" StyleClasses="OpenLeft" />
|
|
<Button Name="ExportImageButton" Text="{Loc 'humanoid-profile-editor-export-image-button'}"/>
|
|
<Button Name="OpenImagesButton" Text="{Loc 'humanoid-profile-editor-open-image-button'}"/>
|
|
<Button Name="RandomizeEverything" Text="{Loc 'humanoid-profile-editor-randomize-everything-button'}" StyleClasses="OpenLeft" />
|
|
</BoxContainer>
|
|
</prefUi:HighlightedContainer>
|
|
</BoxContainer>
|
|
</PanelContainer>
|
|
<Control MinHeight="10" />
|
|
<!-- TabContainer -->
|
|
<PanelContainer StyleClasses="PanelBackground" VerticalExpand="True" VerticalAlignment="Stretch"> <!-- WD EDIT -->
|
|
<ui:NeoTabContainer Name="CTabContainer" VerticalExpand="True" HScrollEnabled="False" VScrollEnabled="False">
|
|
<BoxContainer Name="Appearance" HorizontalExpand="True" Orientation="Vertical">
|
|
<!-- appearanceList -->
|
|
<ScrollContainer HorizontalExpand="True" HScrollEnabled="True" VerticalExpand="True" VScrollEnabled="True">
|
|
<BoxContainer HorizontalExpand="True" Orientation="Vertical">
|
|
<ui:AlternatingBGContainer Orientation="Vertical" HorizontalExpand="True">
|
|
<!-- Species -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-species-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<TextureButton Name="SpeciesInfoButton" Scale="0.3 0.3" VerticalAlignment="Center"
|
|
ToolTip="{Loc 'humanoid-profile-editor-guidebook-button-tooltip'}"/>
|
|
<!--WD EDIT START-->
|
|
<OptionButton Visible="False" Name="SpeciesButton" HorizontalAlignment="Right" />
|
|
<Button Name="OpenSpeciesWindow" Text="{Loc 'species-window-open'}" HorizontalAlignment="Right"/>
|
|
<!--WD EDIT END-->
|
|
</BoxContainer>
|
|
<!-- Species -->
|
|
<BoxContainer Name="CCustomSpecieName" HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-customspeciename-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<LineEdit Name="CCustomSpecieNameEdit" MinSize="270 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!--WD EDIT START-->
|
|
<!-- Body Type -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-body-type-label'}"/>
|
|
<Control HorizontalExpand="True"/>
|
|
<OptionButton Name="CBodyTypesButton" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!--WD EDIT END-->
|
|
<!-- Age -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-age-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<LineEdit Name="AgeEdit" MinSize="40 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Sex -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-sex-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<OptionButton Name="SexButton" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Pronouns -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-pronouns-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<OptionButton Name="PronounsButton" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!--WD EDIT START-->
|
|
<!--TTS-->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-voice-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<OptionButton Name="VoiceButton" HorizontalAlignment="Right" />
|
|
<Button Name="VoicePlayButton" Text="▶" MaxWidth="80" />
|
|
</BoxContainer>
|
|
<!--BARK-->
|
|
<BoxContainer HorizontalExpand="True" Orientation="Horizontal">
|
|
<Label Text="{Loc 'humanoid-profile-editor-bark-voice-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<OptionButton Name="VoiceBarkButton" HorizontalAlignment="Right" />
|
|
<Button Name="VoiceBarkPlayButton" Text="▶" MaxWidth="80" />
|
|
</BoxContainer>
|
|
|
|
<BoxContainer HorizontalExpand="True" Orientation="Horizontal">
|
|
<BoxContainer HorizontalExpand="True" Orientation="Vertical">
|
|
<controls:Knob Name="BarkPitchSlider" MinValue="0" MaxValue="255" HorizontalExpand="True" Margin="5 0 5 0" />
|
|
<Label Text="{Loc 'humanoid-profile-editor-bark-pitch-label'}" HorizontalAlignment="Center"/>
|
|
</BoxContainer>
|
|
<BoxContainer HorizontalExpand="True" Orientation="Vertical">
|
|
<controls:Knob Name="BarkPitchVarianceSlider" MinValue="0" MaxValue="255" HorizontalExpand="True" Margin="5 0 5 0" />
|
|
<Label Text="{Loc 'humanoid-profile-editor-bark-pitch-variance-label'}" HorizontalAlignment="Center"/>
|
|
</BoxContainer>
|
|
<BoxContainer HorizontalExpand="True" Orientation="Vertical">
|
|
<controls:Knob Name="BarkPauseSlider" MinValue="0" MaxValue="255" HorizontalExpand="True" Margin="5 0 5 0" />
|
|
<Label Text="{Loc 'humanoid-profile-editor-bark-pause-label'}" HorizontalAlignment="Center"/>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
<!--WD EDIT END-->
|
|
<!-- Customizable, cosmetic pronouns -->
|
|
<BoxContainer Name="CosmeticPronousContainer" HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-display-pronouns-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<LineEdit Name="CosmeticPronounsNameEdit" MinSize="270 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Move these when you rename the tabs, this isn't appearance technically, but it's convenient there -->
|
|
<!-- Name -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-name-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<Button Name="NameRandomize" Text="{Loc 'humanoid-profile-editor-name-random-button'}" StyleClasses="OpenRight" />
|
|
<LineEdit Name="NameEdit" MinSize="270 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Station AI name -->
|
|
<BoxContainer Name="StationAiNameContainer" HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-station-ai-name-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<LineEdit Name="StationAINameEdit" MinSize="270 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Cyborg name -->
|
|
<BoxContainer Name="CyborgNameContainer" HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-cyborg-name-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<LineEdit Name="CyborgNameEdit" MinSize="270 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- WD EDIT START -->
|
|
<!-- Clown name -->
|
|
<BoxContainer Name="ClownNameContainer" HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-clown-name-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<LineEdit Name="ClownNameEdit" MinSize="270 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Mime name -->
|
|
<BoxContainer Name="MimeNameContainer" HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-mime-name-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<LineEdit Name="MimeNameEdit" MinSize="270 0" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- WD EDIT END -->
|
|
<!-- Show clothing -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-clothing'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<Button Name="ShowClothes" Pressed="True" ToggleMode="True" Text="{Loc 'humanoid-profile-editor-clothing-show'}" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Show loadouts -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-loadouts'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<!-- WD EDIT START -->
|
|
<Button Name="ShowLoadouts" Pressed="True" ToggleMode="True" Text="{Loc 'humanoid-profile-editor-clothing-show'}" HorizontalAlignment="Right" />
|
|
<!-- WD EDIT END -->
|
|
</BoxContainer>
|
|
<!-- Spawn Priority -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-spawn-priority-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<OptionButton Name="SpawnPriorityButton" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<!-- Height -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Name="HeightLabel" MinWidth="110" />
|
|
<Slider Name="HeightSlider" MinValue="0.5" Value="1" MaxValue="1.5" HorizontalExpand="True" Margin="5 0 5 0" />
|
|
<Button Name="HeightReset" Text="{Loc 'ui-options-bind-reset'}" />
|
|
</BoxContainer>
|
|
<!-- Width -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Name="WidthLabel" MinWidth="110" />
|
|
<Slider Name="WidthSlider" MinValue="0.5" Value="1" MaxValue="1.5" HorizontalExpand="True" Margin="5 0 5 0" />
|
|
<Button Name="WidthReset" Text="{Loc 'ui-options-bind-reset'}" />
|
|
</BoxContainer>
|
|
<!--Weight -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Name="WeightLabel" />
|
|
</BoxContainer>
|
|
</ui:AlternatingBGContainer>
|
|
<!-- WD EDIT START -->
|
|
<Control Margin="5"/>
|
|
<BoxContainer HorizontalExpand="True">
|
|
<BoxContainer HorizontalExpand="True" Orientation="Vertical">
|
|
<Label Text="{Loc 'humanoid-profile-editor-markings-tab'}" />
|
|
<Control Margin="5"/>
|
|
<humanoid:MarkingPicker Name="Markings" HorizontalExpand="True" HorizontalAlignment="Stretch" Access="Public"/>
|
|
</BoxContainer>
|
|
<BoxContainer HorizontalExpand="True" Orientation="Vertical">
|
|
<Label Text="{Loc 'humanoid-profile-editor-loadouts-tab'}" />
|
|
<Control Margin="5"/>
|
|
<loadouts:LoadoutPicker Name="Loadouts" HorizontalExpand="True" HorizontalAlignment="Stretch" Access="Public"/>
|
|
<BoxContainer HorizontalExpand="True" Margin="0 0 0 5">
|
|
<Button
|
|
Name="LoadoutsShowUnusableButton"
|
|
Text="{Loc 'humanoid-profile-editor-loadouts-show-unusable-button'}"
|
|
ToolTip="{Loc 'humanoid-profile-editor-loadouts-show-unusable-button-tooltip'}"
|
|
ToggleMode="True"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalExpand="True"
|
|
StyleClasses="OpenRight" />
|
|
<Button
|
|
Name="LoadoutsRemoveUnusableButton"
|
|
Text="You shouldn't see this"
|
|
ToolTip="{Loc 'humanoid-profile-editor-loadouts-remove-unusable-button-tooltip'}"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalExpand="True"
|
|
StyleClasses="OpenLeft" />
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
<Control Margin="5"/>
|
|
<!-- WD EDIT END -->
|
|
<!-- Skin -->
|
|
<BoxContainer Margin="0 4 0 4" HorizontalExpand="True" Orientation="Vertical">
|
|
<Label Text="{Loc 'humanoid-profile-editor-skin-color-label'}" />
|
|
<Slider HorizontalExpand="True" Name="Skin" MinValue="0" MaxValue="100" Value="20" />
|
|
<BoxContainer Name="RgbSkinColorContainer" Visible="False" Orientation="Vertical" HorizontalExpand="True"></BoxContainer>
|
|
</BoxContainer>
|
|
<!-- Hair -->
|
|
<BoxContainer Margin="0 4 0 4" Orientation="Horizontal">
|
|
<humanoid:SingleMarkingPicker Name="HairStylePicker" Category="Hair" />
|
|
<humanoid:SingleMarkingPicker Name="FacialHairPicker" Category="FacialHair" />
|
|
</BoxContainer>
|
|
<!-- Eyes -->
|
|
<BoxContainer Margin="0 4 0 4" Orientation="Vertical">
|
|
<Label Text="{Loc 'humanoid-profile-editor-eyes-label'}" />
|
|
<humanoid:EyeColorPicker Name="EyeColorPicker" />
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</ScrollContainer>
|
|
</BoxContainer>
|
|
<BoxContainer Name="Background" HorizontalExpand="True" Orientation="Vertical">
|
|
<!-- Background -->
|
|
<ui:AlternatingBGContainer Orientation="Vertical" VerticalExpand="False">
|
|
<!-- Nationality -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-nationality-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<TextureButton Name="NationalityInfoButton" Scale="0.3 0.3" VerticalAlignment="Center"
|
|
ToolTip="{Loc 'humanoid-profile-editor-guidebook-button-tooltip'}"/>
|
|
<OptionButton Name="NationalityButton" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<BoxContainer HorizontalExpand="False">
|
|
<RichTextLabel Name="NationalityDescriptionLabel" Text="" HorizontalExpand="False" MaxWidth="600"/>
|
|
</BoxContainer>
|
|
<!-- Employer -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-employer-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<TextureButton Name="EmployerInfoButton" Scale="0.3 0.3" VerticalAlignment="Center"
|
|
ToolTip="{Loc 'humanoid-profile-editor-guidebook-button-tooltip'}"/>
|
|
<OptionButton Name="EmployerButton" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<BoxContainer HorizontalExpand="False">
|
|
<RichTextLabel Name="EmployerDescriptionLabel" Text="" HorizontalExpand="False" MaxWidth="600"/>
|
|
</BoxContainer>
|
|
<!-- Lifepath -->
|
|
<BoxContainer HorizontalExpand="True">
|
|
<Label Text="{Loc 'humanoid-profile-editor-lifepath-label'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<TextureButton Name="LifepathInfoButton" Scale="0.3 0.3" VerticalAlignment="Center"
|
|
ToolTip="{Loc 'humanoid-profile-editor-guidebook-button-tooltip'}"/>
|
|
<OptionButton Name="LifepathButton" HorizontalAlignment="Right" />
|
|
</BoxContainer>
|
|
<BoxContainer HorizontalExpand="False">
|
|
<RichTextLabel Name="LifepathDescriptionLabel" Text="" HorizontalExpand="False" MaxWidth="600"/>
|
|
</BoxContainer>
|
|
</ui:AlternatingBGContainer>
|
|
</BoxContainer>
|
|
<BoxContainer Name="Jobs" HorizontalExpand="True">
|
|
<!-- Jobs -->
|
|
<ScrollContainer HorizontalExpand="True" HScrollEnabled="True" VerticalExpand="True" VScrollEnabled="True">
|
|
<BoxContainer HorizontalExpand="True" Orientation="Vertical">
|
|
<OptionButton Name="PreferenceUnavailableButton" StyleClasses="OpenBoth" />
|
|
<BoxContainer Name="JobList" Orientation="Vertical" />
|
|
</BoxContainer>
|
|
</ScrollContainer>
|
|
</BoxContainer>
|
|
<BoxContainer Name="Antags" HorizontalExpand="True" Orientation="Vertical">
|
|
<!-- Antags -->
|
|
<ScrollContainer HorizontalExpand="True" HScrollEnabled="True" VerticalExpand="True" VScrollEnabled="True">
|
|
<BoxContainer Name="AntagList" />
|
|
</ScrollContainer>
|
|
</BoxContainer>
|
|
<BoxContainer Name="TraitsTab" HorizontalExpand="True" Orientation="Vertical">
|
|
<!-- Traits -->
|
|
<Label Name="TraitPointsLabel" HorizontalAlignment="Stretch" Align="Center" />
|
|
<ProgressBar Name="TraitPointsBar" MaxValue="1" Value="1" MaxHeight="8" Margin="0 5" />
|
|
|
|
<BoxContainer HorizontalExpand="True" Margin="0 0 0 5">
|
|
<Button
|
|
Name="TraitsShowUnusableButton"
|
|
Text="{Loc 'humanoid-profile-editor-traits-show-unusable-button'}"
|
|
ToolTip="{Loc 'humanoid-profile-editor-traits-show-unusable-button-tooltip'}"
|
|
ToggleMode="True"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalExpand="True"
|
|
StyleClasses="OpenRight" />
|
|
<Button
|
|
Name="TraitsRemoveUnusableButton"
|
|
Text="You shouldn't see this"
|
|
ToolTip="{Loc 'humanoid-profile-editor-traits-remove-unusable-button-tooltip'}"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalExpand="True"
|
|
StyleClasses="OpenLeft" />
|
|
</BoxContainer>
|
|
|
|
<ui:NeoTabContainer Name="TraitsTabs" VerticalExpand="True" SeparatorMargin="0" />
|
|
</BoxContainer>
|
|
</ui:NeoTabContainer>
|
|
</PanelContainer>
|
|
</BoxContainer>
|
|
<!-- Right side -->
|
|
</BoxContainer>
|