diff options
| author | dam <dam@gudinoff> | 2021-12-06 01:39:16 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2021-12-06 01:39:16 +0000 |
| commit | 7d9370011834f736d17ebf167701735185f2453a (patch) | |
| tree | 3d4b581b0c90746d192382555b1b3349c1d8b7a4 /licenses/licenses.gd | |
| parent | ab3e8de3e1d107d42ba62571ea7d17e741203123 (diff) | |
| download | surgery-log-7d9370011834f736d17ebf167701735185f2453a.tar.zst surgery-log-7d9370011834f736d17ebf167701735185f2453a.zip | |
Adjust UI to match mockups (WIP).
Diffstat (limited to 'licenses/licenses.gd')
| -rw-r--r-- | licenses/licenses.gd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/licenses/licenses.gd b/licenses/licenses.gd new file mode 100644 index 0000000..87a8d47 --- /dev/null +++ b/licenses/licenses.gd @@ -0,0 +1,23 @@ +extends Node + +const font_b612: String = "res://licenses/font_b612.txt" +const godot: String = "res://licenses/godot.txt" + +# @DAM For now, it just keeping track of licenses and storing a sample code of how to read the files. + +func _ready(): +# load_file(file) + pass + +func load_file(file: String): + var f = File.new() + f.open(file, File.READ) + var index = 1 + while not f.eof_reached(): # iterate through all lines until the end of file is reached + var line = f.get_line() + line += " " + print(line + str(index)) + + index += 1 + f.close() + return |
