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
|
|
@ -97,9 +97,7 @@ func _ready() -> void:
|
|||
coop_menu.set_status(text))
|
||||
lobby.failed.connect(func(text: String) -> void:
|
||||
if coop_menu.is_open:
|
||||
coop_menu.set_status(text)
|
||||
elif sim.toasts != null:
|
||||
sim.toasts.push(text, Color(1.0, 0.6, 0.4)))
|
||||
coop_menu.set_status(text))
|
||||
lobby.lobbies_found.connect(func(list: Array) -> void: coop_menu.show_lobbies(list))
|
||||
lobby.partner_arrived.connect(_on_partner_arrived)
|
||||
lobby.joined.connect(_on_joined)
|
||||
|
|
@ -347,10 +345,9 @@ func _on_settings_closed() -> void:
|
|||
|
||||
|
||||
func _set_hud(on: bool) -> void:
|
||||
for layer_name in ["Hud", "ZoneBanner"]:
|
||||
var layer := farm.get_node_or_null(layer_name) as CanvasLayer
|
||||
if layer != null:
|
||||
layer.visible = on
|
||||
var layer := farm.get_node_or_null("Hud") as CanvasLayer
|
||||
if layer != null:
|
||||
layer.visible = on
|
||||
|
||||
|
||||
func _place_menu_camera() -> void:
|
||||
|
|
@ -366,8 +363,6 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
settings.microphone = not settings.microphone
|
||||
sim.coop.set_microphone(settings.microphone)
|
||||
settings.save_to(settings_path)
|
||||
if sim.toasts != null:
|
||||
sim.toasts.push("Microphone %s" % ("on" if settings.microphone else "muted"), Color(0.85, 0.95, 1.0))
|
||||
get_viewport().set_input_as_handled()
|
||||
return
|
||||
if not event.is_action_pressed("pause"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue