Vitrine weicht einer startenden Welt

Ein Gast kann die Stilproben öffnen, während er sich verbindet. Kam die
Welt dann an, lag sie unter der Vitrine, und „Zurück" legte das Menü
über das laufende Spiel. Jetzt schließt die Hauptszene die Vitrine,
sobald eine Welt erscheint.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Steven Wroblewski
2026-10-02 12:41:35 +02:00
parent 9f65823f2d
commit 714d604c58
2 changed files with 21 additions and 3 deletions
+9 -3
View File
@@ -111,8 +111,7 @@ func _ready() -> void:
showcase = Showcase.new()
showcase.art = art
showcase.closed.connect(close_showcase)
showcase.hide()
showcase.process_mode = Node.PROCESS_MODE_DISABLED
_hide_showcase()
add_child(showcase)
_show_menu("")
match options.start:
@@ -216,6 +215,7 @@ func _show_menu(status: String) -> void:
## Shows the world of the session and puts the figure on the spawn.
func _show_world() -> void:
menu.hide()
_hide_showcase()
hud.show()
for node: Node2D in [avatar, marker, figures]:
node.show()
@@ -242,9 +242,15 @@ func open_showcase() -> void:
## Goes back from the style samples to the menu.
func close_showcase() -> void:
_hide_showcase()
menu.show()
## Hides the style samples and stops them. A world that starts while they are
## open, such as the one a joining guest receives, takes their place.
func _hide_showcase() -> void:
showcase.hide()
showcase.process_mode = Node.PROCESS_MODE_DISABLED
menu.show()
## Draws the playing field again after the style changed.