2024-09-29 11:46:15 +08:00
|
|
|
extends TextureRect
|
|
|
|
|
|
|
|
var data
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
if data!=null:
|
2024-10-04 18:08:33 +08:00
|
|
|
%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)
|
2024-09-29 11:46:15 +08:00
|
|
|
get_parent().add_theme_stylebox_override("panel",StyleBoxEmpty.new())
|
2024-10-09 20:34:18 +08:00
|
|
|
print(%bag_card_name.text)
|