Task #23: remove the zone banner and the message feed
The user asked to drop the pop-up status lines, including replies to the player's own actions. - farm.tscn (edited as text): the ZoneBanner and Hud/ToastFeed nodes, their ext_resources, and FarmSim's toasts export are gone. zone_banner.gd and toast_feed.gd (with their .uid files) are deleted. - FarmSim: no toast wiring, no arrival_message, no outside-the-fence or sunrise lines. Main: no lobby-failure or microphone lines; _set_hud only hides Hud. CampaignDebug: F2 no longer toasts (the F1 readout shows the scenario). - CoopSession: the host no longer sends "toast" or "arrived" events, and the partner no longer handles them. The joined/left/version lines are gone (the partner's main menu still says why a session ended). A refused build request still sends the error sound. PROTOCOL stays 5: the other messages and records are unchanged, and _apply_event ignores unknown kinds, so mixed builds still work together. - BuildMode.message is removed (no test listens to it). Interactions.message and UpgradePanel.message stay because tests listen to them. - test_farm_layout: the banner checks are removed. - RULES.md, README.md, COOP.md, and LAYOUT.md no longer describe the banner or toasts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6a9575dfe4
commit
1e91ccf594
18 changed files with 37 additions and 286 deletions
|
|
@ -5,7 +5,7 @@ extends RefCounted
|
|||
## arrive) and the gaps in what's left of the perimeter fence (the north and east sides, without
|
||||
## holes except their gaps; the south, the west, and the east side south of the fence are open),
|
||||
## ground navigation from anywhere on the edge to every zone, scarecrow-only bounds, zone-to-zone
|
||||
## travel times (printed as the table kept in game/LAYOUT.md), and the zone banner.
|
||||
## travel times (printed as the table kept in game/LAYOUT.md).
|
||||
|
||||
const RUN_SPEED := 5.0 # PlayerCharacter.run_speed
|
||||
## The layout rule: no key area more than 12 s from another. It holds for the farm's original
|
||||
|
|
@ -51,7 +51,6 @@ func run(r: GameTestRunner) -> void:
|
|||
_enemy_routes(r, zones, nav)
|
||||
_scarecrow(r, farm, zones)
|
||||
_travel_times(r, farm, zones)
|
||||
await _banner(r, farm, zones)
|
||||
farm.queue_free()
|
||||
await r.process_frame
|
||||
|
||||
|
|
@ -374,18 +373,3 @@ func _travel_times(r: GameTestRunner, farm: Node3D, zones: FarmZones) -> void:
|
|||
r.check(worst[1] <= MAX_TRAVEL_SOUTH_FIELDS, "the later crop fields, at the map's south end, are at most %.0f s from any key area (worst %.1f s: %s)"
|
||||
% [MAX_TRAVEL_SOUTH_FIELDS, worst[1], worst_pair[1]])
|
||||
|
||||
|
||||
func _banner(r: GameTestRunner, farm: Node3D, zones: FarmZones) -> void:
|
||||
var banner := farm.get_node("ZoneBanner") as ZoneBanner
|
||||
var player := farm.get_node("Player") as Node3D
|
||||
var start := player.global_transform
|
||||
for zone in zones.zones():
|
||||
player.global_position = zone.global_position + Vector3(0.0, 0.5, 0.0)
|
||||
await r.process_frame # emitted before _process, so wait for the next one too
|
||||
await r.process_frame
|
||||
r.check(banner.current == zone, "walking into the %s shows its name" % zone.display_name)
|
||||
player.global_position = Vector3(8.0, 0.5, -10.0)
|
||||
await r.process_frame
|
||||
await r.process_frame
|
||||
r.check(banner.current == null, "walking out of every zone clears the banner")
|
||||
player.global_transform = start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue