Vitrine der Stilproben
Das Startmenü führt zu einer Vitrine, die den gewählten Stil an einer kleinen Szene zeigt: Fels, toter und lebendiger Boden, Lebensmoos, eine Ranke, die Steine in eine erwachende Ruine trägt, eine wachsende Faserpflanze, ein hüpfendes Weidetier und zwei Spielfiguren. Knöpfe, die Tasten 1 bis 3 und F2 wechseln den Stil, Esc führt zurück ins Menü. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -425,3 +425,18 @@ func test_own_hits_reported_late_show_no_second_burst() -> void:
|
||||
main._apply(reports)
|
||||
check_eq(main.map_view.burst_count(), 2, "two own hits, two bursts")
|
||||
_clean_up([directory])
|
||||
|
||||
|
||||
func test_the_style_samples_open_from_the_menu_and_lead_back_to_it() -> void:
|
||||
var directory := TestFiles.temporary_dir("showcase")
|
||||
var main := _start_main(directory)
|
||||
main.menu.showcase_button.pressed.emit()
|
||||
check(main.showcase.visible, "the samples show")
|
||||
check(not main.menu.visible, "instead of the menu")
|
||||
main.showcase.style_buttons[2].pressed.emit()
|
||||
check_eq(main.art.style.key(), GlowStyle.KEY, "a button there chooses the style")
|
||||
await tree.process_frame
|
||||
main.showcase.back_button.pressed.emit()
|
||||
check(main.menu.visible, "the menu is back")
|
||||
check(not main.showcase.visible, "the samples are gone")
|
||||
_clean_up([directory])
|
||||
|
||||
Reference in New Issue
Block a user