challenge-editor/scene/bag_side_card_introduction.gd
2024-09-29 11:46:15 +08:00

11 lines
293 B
GDScript

extends TextureRect
var data
func _ready() -> void:
if data!=null:
%bag_card_face_big.texture=Global.get_texture(data["texture"])
%bag_card_name.text=data["name"]
%bag_card_introduction.text=data["introduction"]
get_parent().add_theme_stylebox_override("panel",StyleBoxEmpty.new())