mirror of
https://github.com/deunix-educ/aventuriers-des-mots.git
synced 2026-10-13 10:21:58 +02:00
d0380a76af
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
582 B
GDScript
22 lines
582 B
GDScript
extends Control
|
|
## Decor plein ecran derriere un ecran (illustration vectorielle provisoire,
|
|
## voir assets/CREDITS.md). Le decor est celui du « tableau » (BackdropKinds) ;
|
|
## un identifiant inconnu retombe sur la foret.
|
|
|
|
@export var kind: String = "forest":
|
|
set(value):
|
|
kind = value
|
|
_apply()
|
|
|
|
@onready var _picture: TextureRect = $Picture
|
|
|
|
|
|
func _ready() -> void:
|
|
_apply()
|
|
|
|
|
|
func _apply() -> void:
|
|
if _picture != null:
|
|
var path: String = BackdropKinds.TEXTURES.get(kind, BackdropKinds.TEXTURES["forest"])
|
|
_picture.texture = load(path)
|