]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Small loadout window improvement (#35171)
authorlzk <124214523+lzk228@users.noreply.github.com>
Tue, 18 Feb 2025 12:36:49 +0000 (13:36 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2025 12:36:49 +0000 (23:36 +1100)
Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml
Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml.cs
Resources/Locale/en-US/preferences/loadouts.ftl

index e4e44f75a99229576445ed490a15001fae1d8342..1302ea9cc1feedb9e08cdda53935340f646d0729 100644 (file)
@@ -6,7 +6,7 @@
          MinSize="800 128">
     <BoxContainer Orientation="Vertical" VerticalExpand="True">
         <BoxContainer Name="RoleNameBox" Orientation="Vertical" Margin="10">
-            <Label Name="LoadoutNameLabel" Text="{Loc 'loadout-name-edit-label'}"/>
+            <Label Name="LoadoutNameLabel"/>
             <PanelContainer HorizontalExpand="True" SetHeight="24">
                 <PanelContainer.PanelOverride>
                     <graphics:StyleBoxFlat BackgroundColor="#1B1B1E" />
index fee27225ec1257e1945f62af042ffacb1ea615b0..48b5289efc93ca2e34d9cdd21983f81138d7108b 100644 (file)
@@ -39,6 +39,10 @@ public sealed partial class LoadoutWindow : FancyWindow
         {
             var name = loadout.EntityName;
 
+            LoadoutNameLabel.Text = proto.NameDataset == null ?
+                Loc.GetString("loadout-name-edit-label") :
+                Loc.GetString("loadout-name-edit-label-dataset");
+
             RoleNameEdit.ToolTip = Loc.GetString(
                 "loadout-name-edit-tooltip",
                 ("max", HumanoidCharacterProfile.MaxLoadoutNameLength));
index d88c2c9d603159d323bfc93b3616709c9876f425..f32c65eb24319d1eb925313e44174426b686c97f 100644 (file)
@@ -1,5 +1,6 @@
 # Name
-loadout-name-edit-label = Custom name
+loadout-name-edit-label = Sets a custom name to be used if you play this role. If empty, your character's name will be used instead.
+loadout-name-edit-label-dataset = Sets a custom name to be used if you play this role. If empty, a random name will be selected instead.
 loadout-name-edit-tooltip = {$max} characters max. If no name is specified a random one may be chosen for you.
 
 # Restrictions