Rename credits to spacebucks & integrate with cargo (#9119)
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
xmlns:userInterface="clr-namespace:Content.Client.UserInterface"
|
xmlns:userInterface="clr-namespace:Content.Client.UserInterface"
|
||||||
SetSize="600 600"
|
SetSize="600 600"
|
||||||
MinSize="600 600">
|
MinSize="600 600">
|
||||||
<BoxContainer Orientation="Vertical">
|
<BoxContainer Orientation="Vertical" Margin="5 0 5 0">
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc 'cargo-console-menu-account-name-label'}"
|
<Label Text="{Loc 'cargo-console-menu-account-name-label'}"
|
||||||
StyleClasses="LabelKeyText" />
|
StyleClasses="LabelKeyText" />
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<Label Text="{Loc 'cargo-console-menu-points-label'}"
|
<Label Text="{Loc 'cargo-console-menu-points-label'}"
|
||||||
StyleClasses="LabelKeyText" />
|
StyleClasses="LabelKeyText" />
|
||||||
<Label Name="PointsLabel"
|
<Label Name="PointsLabel"
|
||||||
Text="0" />
|
Text="0$" />
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<BoxContainer Orientation="Horizontal">
|
<BoxContainer Orientation="Horizontal">
|
||||||
<Label Text="{Loc 'cargo-console-menu-order-capacity-label'}"
|
<Label Text="{Loc 'cargo-console-menu-order-capacity-label'}"
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ namespace Content.Client.Cargo.UI
|
|||||||
{
|
{
|
||||||
Product = prototype,
|
Product = prototype,
|
||||||
ProductName = { Text = prototype.Name },
|
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) },
|
Icon = { Texture = _spriteSystem.Frame0(prototype.Icon) },
|
||||||
};
|
};
|
||||||
button.MainButton.OnPressed += args =>
|
button.MainButton.OnPressed += args =>
|
||||||
@@ -171,7 +171,7 @@ namespace Content.Client.Cargo.UI
|
|||||||
public void UpdateBankData(string name, int points)
|
public void UpdateBankData(string name, int points)
|
||||||
{
|
{
|
||||||
AccountNameLabel.Text = name;
|
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>
|
</PanelContainer.PanelOverride>
|
||||||
<Label Name="PointCost"
|
<Label Name="PointCost"
|
||||||
Access="Public"
|
Access="Public"
|
||||||
MinSize="40 32"
|
MinSize="52 32"
|
||||||
Align="Right" />
|
Align="Right" />
|
||||||
</PanelContainer>
|
</PanelContainer>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
|
|||||||
@@ -68,11 +68,11 @@ public sealed class PricingSystem : EntitySystem
|
|||||||
mostValuable.Pop();
|
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:");
|
shell.WriteLine($"The top most valuable items were:");
|
||||||
foreach (var (price, ent) in mostValuable)
|
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-account-name-none-text = None
|
||||||
cargo-console-menu-shuttle-name-label = Shuttle name:{" "}
|
cargo-console-menu-shuttle-name-label = Shuttle name:{" "}
|
||||||
cargo-console-menu-shuttle-name-none-text = None
|
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-label = Shuttle status:{" "}
|
||||||
cargo-console-menu-shuttle-status-away-text = Away
|
cargo-console-menu-shuttle-status-away-text = Away
|
||||||
cargo-console-menu-order-capacity-label = Order capacity:{" "}
|
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-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-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 = The privateers successfully obtained {$score} spacebucks worth
|
||||||
pirates-final-score-2 = of knicknacks, with a total of {$finalPrice} credits.
|
pirates-final-score-2 = of knicknacks, with a total of {$finalPrice} spacebucks.
|
||||||
pirates-list-start = The privateers were:
|
pirates-list-start = The privateers were:
|
||||||
pirates-most-valuable = The most valuable stolen items 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.
|
pirates-stole-nothing = - The pirates stole absolutely nothing at all. Point and laugh.
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
id: WardrobeCargoFilled
|
id: WardrobeCargoFilled
|
||||||
suffix: Filled
|
suffix: Filled
|
||||||
parent: WardrobeCargo
|
parent: WardrobeCargo
|
||||||
description: "This locker? Maybe 500 credits. Brotherhood? Priceless."
|
description: "This locker? Maybe 500 spacebucks. Brotherhood? Priceless."
|
||||||
components:
|
components:
|
||||||
- type: StorageFill
|
- type: StorageFill
|
||||||
contents:
|
contents:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseItem
|
parent: BaseItem
|
||||||
id: SpaceCash
|
id: SpaceCash
|
||||||
name: credit
|
name: spacebucks
|
||||||
description: You gotta have money.
|
description: You gotta have money.
|
||||||
components:
|
components:
|
||||||
- type: Material
|
- type: Material
|
||||||
@@ -44,21 +44,20 @@
|
|||||||
|
|
||||||
- type: material
|
- type: material
|
||||||
id: Credit
|
id: Credit
|
||||||
name: credit
|
name: spacebuck
|
||||||
stack: Credit
|
stack: Credit
|
||||||
icon: /Textures/Objects/Economy/cash.rsi/cash.png
|
icon: /Textures/Objects/Economy/cash.rsi/cash.png
|
||||||
price: 1
|
price: 1
|
||||||
|
|
||||||
- type: stack
|
- type: stack
|
||||||
id: Credit
|
id: Credit
|
||||||
name: credit
|
name: spacebuck
|
||||||
icon: /Textures/Objects/Economy/cash.rsi/cash.png
|
icon: /Textures/Objects/Economy/cash.rsi/cash.png
|
||||||
spawn: SpaceCash
|
spawn: SpaceCash
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: SpaceCash
|
parent: SpaceCash
|
||||||
id: SpaceCash10
|
id: SpaceCash10
|
||||||
name: credit
|
|
||||||
suffix: 10
|
suffix: 10
|
||||||
components:
|
components:
|
||||||
- type: Icon
|
- type: Icon
|
||||||
@@ -70,7 +69,6 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: SpaceCash
|
parent: SpaceCash
|
||||||
id: SpaceCash100
|
id: SpaceCash100
|
||||||
name: credit
|
|
||||||
suffix: 100
|
suffix: 100
|
||||||
components:
|
components:
|
||||||
- type: Icon
|
- type: Icon
|
||||||
@@ -82,7 +80,6 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: SpaceCash
|
parent: SpaceCash
|
||||||
id: SpaceCash500
|
id: SpaceCash500
|
||||||
name: credit
|
|
||||||
suffix: 500
|
suffix: 500
|
||||||
components:
|
components:
|
||||||
- type: Icon
|
- type: Icon
|
||||||
@@ -94,7 +91,6 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: SpaceCash
|
parent: SpaceCash
|
||||||
id: SpaceCash1000
|
id: SpaceCash1000
|
||||||
name: credit
|
|
||||||
suffix: 1000
|
suffix: 1000
|
||||||
components:
|
components:
|
||||||
- type: Icon
|
- type: Icon
|
||||||
@@ -106,7 +102,6 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: SpaceCash
|
parent: SpaceCash
|
||||||
id: SpaceCash1000000
|
id: SpaceCash1000000
|
||||||
name: credit
|
|
||||||
suffix: 1000000
|
suffix: 1000000
|
||||||
components:
|
components:
|
||||||
- type: Icon
|
- type: Icon
|
||||||
|
|||||||
Reference in New Issue
Block a user