Economy (#403)
* nasrano * Add station budget & salary * Initial balance * Vending machine UI * Pricing for vending machines * Finish economy * Eftpos * Finish eftpos * Put eftpos into lockers * Vending machine prices * Small fixes * Fix atm UI * Add atms to maps * fix * reset * Add PDA program * Maps again --------- Co-authored-by: Mona Hmiza <> Co-authored-by: rhailrake <49613070+rhailrake@users.noreply.github.com>
This commit is contained in:
@@ -105,12 +105,13 @@ public sealed class CharacterUIController : UIController, IOnStateEntered<Gamepl
|
||||
return;
|
||||
}
|
||||
|
||||
var (entity, job, objectives, briefing, entityName) = data;
|
||||
var (entity, job, objectives, briefing, entityName, memories) = data;
|
||||
|
||||
_window.SpriteView.SetEntity(entity);
|
||||
_window.NameLabel.Text = entityName;
|
||||
_window.SubText.Text = job;
|
||||
_window.Objectives.RemoveAllChildren();
|
||||
_window.Memories.RemoveAllChildren();
|
||||
_window.ObjectivesLabel.Visible = objectives.Any();
|
||||
|
||||
foreach (var (groupId, conditions) in objectives)
|
||||
@@ -146,6 +147,26 @@ public sealed class CharacterUIController : UIController, IOnStateEntered<Gamepl
|
||||
_window.Objectives.AddChild(objectiveControl);
|
||||
}
|
||||
|
||||
//WD EDIT
|
||||
foreach (var (memoryName, memoryValue) in memories)
|
||||
{
|
||||
var memoryControl = new BoxContainer()
|
||||
{
|
||||
Orientation = BoxContainer.LayoutOrientation.Vertical,
|
||||
Modulate = Color.Gray
|
||||
};
|
||||
var text = Loc.TryGetString(memoryName, out var t, ("value", memoryValue))
|
||||
? t
|
||||
: $"{memoryName}: {memoryValue}";
|
||||
|
||||
memoryControl.AddChild(new Label
|
||||
{
|
||||
Text = text,
|
||||
});
|
||||
_window.Memories.AddChild(memoryControl);
|
||||
}
|
||||
//WD EDIT END
|
||||
|
||||
if (briefing != null)
|
||||
{
|
||||
var briefingControl = new ObjectiveBriefingControl();
|
||||
|
||||
@@ -14,6 +14,13 @@
|
||||
<Label Name="SubText" VerticalAlignment="Top" StyleClasses="LabelSubText" Access="Public"/>
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
|
||||
<!-- WD EDIT -->
|
||||
<Label Text="{Loc 'character-info-memories-label'}" HorizontalAlignment="Center"/>
|
||||
<BoxContainer Orientation="Vertical" Name="Memories" Access="Public"/>
|
||||
<cc:Placeholder PlaceholderText="{Loc 'character-info-memories-placeholder-text'}"/>
|
||||
<!-- WD EDIT END -->
|
||||
|
||||
<Label Name="ObjectivesLabel" Access="Public" Text="{Loc 'character-info-objectives-label'}" HorizontalAlignment="Center"/>
|
||||
<BoxContainer Orientation="Vertical" Name="Objectives" Access="Public"/>
|
||||
<cc:Placeholder Name="RolePlaceholder" Access="Public" PlaceholderText="{Loc 'character-info-roles-antagonist-text'}"/>
|
||||
|
||||
Reference in New Issue
Block a user