Skip to content

Commit

Permalink
Small loadout window improvement (space-wizards#35171)
Browse files Browse the repository at this point in the history
Co-authored-by: Tayrtahn <[email protected]>
Co-authored-by: ArtisticRoomba <[email protected]>
  • Loading branch information
3 people authored Feb 18, 2025
1 parent aca846c commit f39587c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
4 changes: 4 additions & 0 deletions Content.Client/Lobby/UI/Loadouts/LoadoutWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public LoadoutWindow(HumanoidCharacterProfile profile, RoleLoadout loadout, Role
{
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));
Expand Down
3 changes: 2 additions & 1 deletion Resources/Locale/en-US/preferences/loadouts.ftl
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f39587c

Please sign in to comment.