UI and other changes
This commit is contained in:
parent
87b5c11fcf
commit
215e24e246
79 changed files with 70023 additions and 2201 deletions
|
|
@ -18,8 +18,8 @@ extends Node
|
|||
## WaveDirector), sunrise makes them retreat (carriers keep running), the end of the dawn grace
|
||||
## sends the rest off the farm with whatever they carry, returns dropped loot (and the animals
|
||||
## still following the scarecrow) home, and regrows the gather points, and every new morning (also after a retry) resets the
|
||||
## theft state from the farm state. DayNight lights the phases; PhaseHud, AssetHud, ReviewPanel,
|
||||
## and the other HUD parts show them. Co-op (CoopSession): a second scarecrow (add_partner) is
|
||||
## theft state from the farm state. DayNight lights the phases; PhaseHud, ReviewPanel, and the
|
||||
## other HUD parts show them. Co-op (CoopSession): a second scarecrow (add_partner) is
|
||||
## simulated alongside the first, and on the partner's machine the farm is a replica: nothing is
|
||||
## simulated there, the host's state is applied instead (replica = true), and player, scarecrow,
|
||||
## combat, and interactions are that machine's own scarecrow's (player 2's).
|
||||
|
|
@ -42,7 +42,6 @@ const NIGHT_PLAN_PATH := "res://game/resources/nights/night_%d.tres"
|
|||
@export var resource_hud: ResourceHud
|
||||
@export var build_hud: BuildHud
|
||||
@export var phase_hud: PhaseHud
|
||||
@export var asset_hud: AssetHud
|
||||
@export var review_panel: ReviewPanel
|
||||
@export var upgrade_panel: UpgradePanel
|
||||
@export var shed_panel: UpgradePanel
|
||||
|
|
@ -146,7 +145,7 @@ func _ready() -> void:
|
|||
shed_stock = ShedStock.new()
|
||||
shed_stock.name = "ShedStock"
|
||||
add_child(shed_stock)
|
||||
shed_stock.setup(campaign, shed_zone, player) # every pile prop in place for the navigation
|
||||
shed_stock.setup(campaign, shed_zone) # every pile prop in place for the navigation
|
||||
nav.build(get_parent(), zones.playable.grow(5.0), config.nav_cell_size, config.enemy_radius + config.nav_inflate_margin)
|
||||
shed_stock.refresh()
|
||||
# #13: three CROP_FIELD zones (the original field, lettuce/cabbage, corn). #20: each keeps its
|
||||
|
|
@ -293,13 +292,10 @@ func _ready() -> void:
|
|||
combat.equip(w))
|
||||
if resource_hud != null:
|
||||
resource_hud.setup(campaign)
|
||||
resource_hud.structures = structures
|
||||
if build_hud != null:
|
||||
build_hud.setup(build, campaign)
|
||||
if phase_hud != null:
|
||||
phase_hud.setup(campaign, waves, enemies)
|
||||
if asset_hud != null:
|
||||
asset_hud.setup(campaign)
|
||||
if review_panel != null:
|
||||
review_panel.setup(campaign, structures)
|
||||
review_panel.animals = animals
|
||||
|
|
@ -307,6 +303,7 @@ func _ready() -> void:
|
|||
review_panel.refresh()
|
||||
if hud != null:
|
||||
hud.setup(scarecrow, campaign, combat)
|
||||
hud.build = build
|
||||
if hud != null and hud.get_parent() != null:
|
||||
var radar_hud := RadarHud.new()
|
||||
radar_hud.name = "RadarHud"
|
||||
|
|
@ -561,7 +558,6 @@ func set_local(a: Avatar) -> void:
|
|||
audio.focus = a.body
|
||||
if alerts != null:
|
||||
alerts.player = a.body
|
||||
shed_stock.player = a.body
|
||||
|
||||
|
||||
## Restarts every flow-field job for the current structure layout.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue