feature/list-object-counter (#60)
Co-authored-by: VAILLANT Jeremy <vaillant.jeremy@dev-crea.com> Reviewed-on: Athena/game-source#60 Co-authored-by: darknight <vaillant.jeremy@dev-crea.com> Co-committed-by: darknight <vaillant.jeremy@dev-crea.com>
This commit is contained in:
+3
-9
@@ -5,13 +5,7 @@ var table = null
|
||||
func _get_data(datas, index):
|
||||
return datas[index].get_data()
|
||||
|
||||
func _set_data(value, id, type):
|
||||
table.edit_data(id, type, String(value))
|
||||
func _set_data(prop_id, row_id, data):
|
||||
table.edit_data(prop_id, row_id, String(data))
|
||||
Global.database.save_db()
|
||||
return value
|
||||
|
||||
func _get_data_id(prop_name, index):
|
||||
if table.get_prop_at(index).get_prop_name() == prop_name:
|
||||
return table.get_prop_at(index).get_prop_id()
|
||||
else:
|
||||
return null
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user