Rename credits to spacebucks & integrate with cargo (#9119)
This commit is contained in:
@@ -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'}"
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</PanelContainer.PanelOverride>
|
||||
<Label Name="PointCost"
|
||||
Access="Public"
|
||||
MinSize="40 32"
|
||||
MinSize="52 32"
|
||||
Align="Right" />
|
||||
</PanelContainer>
|
||||
</BoxContainer>
|
||||
|
||||
@@ -68,11 +68,11 @@ public sealed class PricingSystem : EntitySystem
|
||||
mostValuable.Pop();
|
||||
});
|
||||
|
||||
shell.WriteLine($"Grid {gid} appraised to {value} credits.");
|
||||
shell.WriteLine($"Grid {gid} appraised to {value} spacebucks.");
|
||||
shell.WriteLine($"The top most valuable items were:");
|
||||
foreach (var (price, ent) in mostValuable)
|
||||
{
|
||||
shell.WriteLine($"- {ToPrettyString(ent)} @ {price} credits");
|
||||
shell.WriteLine($"- {ToPrettyString(ent)} @ {price} spacebucks");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,8 @@ cargo-console-menu-account-name-label = Account name:{" "}
|
||||
cargo-console-menu-account-name-none-text = None
|
||||
cargo-console-menu-shuttle-name-label = Shuttle name:{" "}
|
||||
cargo-console-menu-shuttle-name-none-text = None
|
||||
cargo-console-menu-points-label = Points:{" "}
|
||||
cargo-console-menu-points-label = Spacebucks:{" "}
|
||||
cargo-console-menu-points-amount = {$amount}$
|
||||
cargo-console-menu-shuttle-status-label = Shuttle status:{" "}
|
||||
cargo-console-menu-shuttle-status-away-text = Away
|
||||
cargo-console-menu-order-capacity-label = Order capacity:{" "}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
pirates-description = A group of privateers has approached your lowly station. Hostile or not, their sole goal is to end the round with as many knicknacks on their ship as they can get.
|
||||
|
||||
pirates-no-ship = Through unknown circumstances, the privateer's ship was completely and utterly destroyed. No score.
|
||||
pirates-final-score = The privateers successfully obtained {$score} credits worth
|
||||
pirates-final-score-2 = of knicknacks, with a total of {$finalPrice} credits.
|
||||
pirates-final-score = The privateers successfully obtained {$score} spacebucks worth
|
||||
pirates-final-score-2 = of knicknacks, with a total of {$finalPrice} spacebucks.
|
||||
pirates-list-start = The privateers were:
|
||||
pirates-most-valuable = The most valuable stolen items were:
|
||||
pirates-stolen-item-entry = {$entity} ({$credits} credits)
|
||||
pirates-stolen-item-entry = {$entity} ({$credits} spacebucks)
|
||||
pirates-stole-nothing = - The pirates stole absolutely nothing at all. Point and laugh.
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
id: WardrobeCargoFilled
|
||||
suffix: Filled
|
||||
parent: WardrobeCargo
|
||||
description: "This locker? Maybe 500 credits. Brotherhood? Priceless."
|
||||
description: "This locker? Maybe 500 spacebucks. Brotherhood? Priceless."
|
||||
components:
|
||||
- type: StorageFill
|
||||
contents:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- type: entity
|
||||
parent: BaseItem
|
||||
id: SpaceCash
|
||||
name: credit
|
||||
name: spacebucks
|
||||
description: You gotta have money.
|
||||
components:
|
||||
- type: Material
|
||||
@@ -44,21 +44,20 @@
|
||||
|
||||
- type: material
|
||||
id: Credit
|
||||
name: credit
|
||||
name: spacebuck
|
||||
stack: Credit
|
||||
icon: /Textures/Objects/Economy/cash.rsi/cash.png
|
||||
price: 1
|
||||
|
||||
- type: stack
|
||||
id: Credit
|
||||
name: credit
|
||||
name: spacebuck
|
||||
icon: /Textures/Objects/Economy/cash.rsi/cash.png
|
||||
spawn: SpaceCash
|
||||
|
||||
- type: entity
|
||||
parent: SpaceCash
|
||||
id: SpaceCash10
|
||||
name: credit
|
||||
suffix: 10
|
||||
components:
|
||||
- type: Icon
|
||||
@@ -70,7 +69,6 @@
|
||||
- type: entity
|
||||
parent: SpaceCash
|
||||
id: SpaceCash100
|
||||
name: credit
|
||||
suffix: 100
|
||||
components:
|
||||
- type: Icon
|
||||
@@ -82,7 +80,6 @@
|
||||
- type: entity
|
||||
parent: SpaceCash
|
||||
id: SpaceCash500
|
||||
name: credit
|
||||
suffix: 500
|
||||
components:
|
||||
- type: Icon
|
||||
@@ -94,7 +91,6 @@
|
||||
- type: entity
|
||||
parent: SpaceCash
|
||||
id: SpaceCash1000
|
||||
name: credit
|
||||
suffix: 1000
|
||||
components:
|
||||
- type: Icon
|
||||
@@ -106,7 +102,6 @@
|
||||
- type: entity
|
||||
parent: SpaceCash
|
||||
id: SpaceCash1000000
|
||||
name: credit
|
||||
suffix: 1000000
|
||||
components:
|
||||
- type: Icon
|
||||
|
||||
Reference in New Issue
Block a user