Rename credits to spacebucks & integrate with cargo (#9119)

This commit is contained in:
Kara
2022-06-24 07:43:44 -07:00
committed by GitHub
parent 5e8f3037c6
commit 732400e0f6
8 changed files with 16 additions and 20 deletions

View File

@@ -3,7 +3,7 @@
xmlns:userInterface="clr-namespace:Content.Client.UserInterface"
SetSize="600 600"
MinSize="600 600">
<BoxContainer Orientation="Vertical">
<BoxContainer Orientation="Vertical" Margin="5 0 5 0">
<BoxContainer Orientation="Horizontal">
<Label Text="{Loc 'cargo-console-menu-account-name-label'}"
StyleClasses="LabelKeyText" />
@@ -14,7 +14,7 @@
<Label Text="{Loc 'cargo-console-menu-points-label'}"
StyleClasses="LabelKeyText" />
<Label Name="PointsLabel"
Text="0" />
Text="0$" />
</BoxContainer>
<BoxContainer Orientation="Horizontal">
<Label Text="{Loc 'cargo-console-menu-order-capacity-label'}"

View File

@@ -82,7 +82,7 @@ namespace Content.Client.Cargo.UI
{
Product = prototype,
ProductName = { Text = prototype.Name },
PointCost = { Text = prototype.PointCost.ToString() },
PointCost = { Text = Loc.GetString("cargo-console-menu-points-amount", ("amount", prototype.PointCost.ToString())) },
Icon = { Texture = _spriteSystem.Frame0(prototype.Icon) },
};
button.MainButton.OnPressed += args =>
@@ -171,7 +171,7 @@ namespace Content.Client.Cargo.UI
public void UpdateBankData(string name, int points)
{
AccountNameLabel.Text = name;
PointsLabel.Text = points.ToString();
PointsLabel.Text = Loc.GetString("cargo-console-menu-points-amount", ("amount", points.ToString()));
}
}
}

View File

@@ -20,7 +20,7 @@
</PanelContainer.PanelOverride>
<Label Name="PointCost"
Access="Public"
MinSize="40 32"
MinSize="52 32"
Align="Right" />
</PanelContainer>
</BoxContainer>