Small loadout window improvement (#35171)
Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user