feat(theme): parchment/dark-bay/vignette shader surfaces as drop-in scenes
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
17
client/tests/unit/test_surfaces.gd
Normal file
17
client/tests/unit/test_surfaces.gd
Normal file
@@ -0,0 +1,17 @@
|
||||
extends "res://addons/gut/test.gd"
|
||||
|
||||
const SCENES := [
|
||||
"res://scenes/theme/surfaces/ParchmentPanel.tscn",
|
||||
"res://scenes/theme/surfaces/DarkBay.tscn",
|
||||
"res://scenes/theme/surfaces/VignetteOverlay.tscn",
|
||||
]
|
||||
|
||||
|
||||
func test_surfaces_instance_with_shader_material():
|
||||
for path in SCENES:
|
||||
var packed = load(path)
|
||||
assert_true(packed is PackedScene, "not a scene: %s" % path)
|
||||
var node = packed.instantiate()
|
||||
add_child_autofree(node) # triggers _ready()
|
||||
assert_true(node.material is ShaderMaterial, "%s has no ShaderMaterial" % path)
|
||||
assert_true(node.material.shader is Shader, "%s shader missing" % path)
|
||||
1
client/tests/unit/test_surfaces.gd.uid
Normal file
1
client/tests/unit/test_surfaces.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://csc3r7lqoe83d
|
||||
Reference in New Issue
Block a user