first commit, long overdue
deez
This commit is contained in:
commit
54b9012a47
79 changed files with 2516 additions and 0 deletions
25
01 - Menus/04 - Modules/modules_text.gd
Normal file
25
01 - Menus/04 - Modules/modules_text.gd
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
extends Control
|
||||
|
||||
|
||||
var item # e.g. grondir
|
||||
var category # e.g. character
|
||||
var module # e.g. trait
|
||||
var items # e.g. ["Undergrounder","Tough"]
|
||||
|
||||
var config
|
||||
var item_filter = ""
|
||||
|
||||
func _enter_tree() -> void:
|
||||
config = ConfigFile.new()
|
||||
config.load("res://02 - Configurations/" + category + ".ini")
|
||||
%text.text = config.get_value(item,"text", "")
|
||||
|
||||
|
||||
func _on_backstory_text_changed() -> void:
|
||||
config = ConfigFile.new()
|
||||
config.load("res://02 - Configurations/" + category + ".ini")
|
||||
config.set_value(item,"text",%text.text)
|
||||
get_parent().get_parent().show_save()
|
||||
|
||||
func save():
|
||||
config.save("res://02 - Configurations/" + category + ".ini")
|
||||
Loading…
Add table
Add a link
Reference in a new issue