2020-03-29 11:29:57 +00:00
|
|
|
extends Node
|
2020-10-15 17:23:55 +00:00
|
|
|
class_name Item_old
|
2020-03-29 11:29:57 +00:00
|
|
|
|
|
|
|
var label = ""
|
2020-04-01 19:02:49 +00:00
|
|
|
var icon = null
|
2020-03-29 11:29:57 +00:00
|
|
|
|
|
|
|
func from_dict( datas ):
|
|
|
|
|
|
|
|
self.label = datas.get( "label", self.label )
|
2020-04-01 19:02:49 +00:00
|
|
|
# var icon_filename = datas.get( "icon", null )
|
|
|
|
# if icon_filename:
|
|
|
|
# self.icon = load( "res://assets/items/"+icon_filename )
|