challenge-editor/scene/bag_side_card_introduction.gd
2024-10-09 20:34:18 +08:00

13 lines
379 B
GDScript

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