Fix list object

This commit is contained in:
VAILLANT Jeremy
2021-05-15 20:40:16 +02:00
parent 890931faa8
commit 367ee388da
6 changed files with 72 additions and 12 deletions
+11
View File
@@ -3,6 +3,7 @@ extends "res://db/MBase.gd"
var m_value = { "id": null, "value": null }
var m_lock = { "id": null, "value": null }
var m_label = null
var m_label_id = null
var m_tick_reference = { "id": null, "value": null }
var m_key = null
var m_level = null
@@ -17,6 +18,7 @@ func _init(row_index):
m_value["value"] = _get_value(datas)
m_lock["value"] = _get_lock(datas)
m_label = _get_label(datas)
m_label_id = _get_label_id(datas)
m_tick_reference["value"] = _get_tick_reference(datas)
m_mesh = _get_mesh(datas)
@@ -35,6 +37,12 @@ func search_keys():
func key():
return m_key
func label():
return m_label
func label_id():
return m_label_id
func lock():
return m_lock["value"]
@@ -74,6 +82,9 @@ func _get_lock_id(index):
func _get_label(datas):
return _get_data(datas, 2) as String
func _get_label_id(datas):
return _get_data(datas, 7) as String
func _get_tick_reference(datas):
return _get_data(datas, 3) as int