From 7d9370011834f736d17ebf167701735185f2453a Mon Sep 17 00:00:00 2001 From: dam Date: Mon, 6 Dec 2021 01:39:16 +0000 Subject: Adjust UI to match mockups (WIP). --- licenses/licenses.gd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 licenses/licenses.gd (limited to 'licenses/licenses.gd') 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 -- cgit v1.2.3