16 lines
213 B
GDScript
16 lines
213 B
GDScript
extends MarginContainer
|
|
|
|
|
|
signal click()
|
|
var item:BagItem
|
|
func set_item(_item:BagItem):
|
|
item=_item
|
|
%name.text=item.item_name
|
|
%introduction.text=item.item_introduction
|
|
%num.text="x"+str(item.num)
|
|
|
|
|
|
|
|
|
|
pass
|