11 lines
293 B
GDScript
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())
|