added a few traits
This commit is contained in:
parent
ae1da3a3d6
commit
30d928d28d
5 changed files with 564 additions and 19 deletions
|
|
@ -46,7 +46,7 @@ func create_module(module,i):
|
|||
pass
|
||||
"multi":
|
||||
for j in config.get_value(item,i,[]):
|
||||
module_scene.module_type = LineEdit
|
||||
module_scene.module_type = Button
|
||||
module_scene.value = j
|
||||
module_scene.init()
|
||||
var conf_category = ConfigFile.new()
|
||||
|
|
@ -58,6 +58,7 @@ func create_module(module,i):
|
|||
if not config.get_value(item,i,[]).has(j):
|
||||
add_stat.add_item(j)
|
||||
add_stat.select(0)
|
||||
module_scene.get_child(0).get_child(1).add_child(add_stat)
|
||||
"single":
|
||||
var conf_category = ConfigFile.new()
|
||||
conf_category.load("res://02 - Configurations/" + i + ".ini")
|
||||
|
|
@ -67,17 +68,17 @@ func create_module(module,i):
|
|||
for j in conf_category.get_sections():
|
||||
add_stat.add_item(j)
|
||||
add_stat.select(1 + conf_category.get_sections().find(config.get_value(item,i,[""])[0]))
|
||||
module_scene.get_child(0).get_child(1).add_child(add_stat)
|
||||
"Text":
|
||||
match module[1]:
|
||||
"short":
|
||||
var stat = LineEdit.new()
|
||||
stat.text = str(config.get_value(item,i,""))
|
||||
module_scene.module_type = LineEdit
|
||||
module_scene.value = str(config.get_value(item,i,""))
|
||||
module_scene.init()
|
||||
"long":
|
||||
var stat = TextEdit.new()
|
||||
stat.wrap_mode = 1
|
||||
stat.clip_contents = false
|
||||
stat.text = config.get_value(item,i,"")
|
||||
module_scene.init()
|
||||
module_scene.module_type = TextEdit
|
||||
module_scene.value = str(config.get_value(item,i,""))
|
||||
module_scene.init()
|
||||
|
||||
#func rec(i,conf,k):
|
||||
#var conff = "res://02 - Configurations/" + conf + ".ini"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue