From ee100b207ce0cef5ce027f26db0def223b510a52 Mon Sep 17 00:00:00 2001 From: Jaap Marsman Date: Sun, 31 Jul 2022 13:27:58 +0800 Subject: [PATCH] added initialising script --- .gitignore | 1 + godot/icon.png.import | 35 ----------------------------------- godot/initialising.gd | 17 +++++++++++++++++ godot/start_screen.tscn | 8 +++++--- 4 files changed, 23 insertions(+), 38 deletions(-) delete mode 100644 godot/icon.png.import create mode 100644 godot/initialising.gd diff --git a/.gitignore b/.gitignore index fb91791..5c49924 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ .import/ export.cfg export_presets.cfg +*.import # Imported translations (automatically generated from CSV files) *.translation diff --git a/godot/icon.png.import b/godot/icon.png.import deleted file mode 100644 index a4c02e6..0000000 --- a/godot/icon.png.import +++ /dev/null @@ -1,35 +0,0 @@ -[remap] - -importer="texture" -type="StreamTexture" -path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" -metadata={ -"vram_texture": false -} - -[deps] - -source_file="res://icon.png" -dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ] - -[params] - -compress/mode=0 -compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 -compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 -process/fix_alpha_border=true -process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false -process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true -svg/scale=1.0 diff --git a/godot/initialising.gd b/godot/initialising.gd new file mode 100644 index 0000000..4c38b2a --- /dev/null +++ b/godot/initialising.gd @@ -0,0 +1,17 @@ +extends Node2D + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" +var user_first_name = "No name" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/godot/start_screen.tscn b/godot/start_screen.tscn index d12b29d..4d7d5df 100644 --- a/godot/start_screen.tscn +++ b/godot/start_screen.tscn @@ -1,16 +1,18 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://start_screen.cs" type="Script" id=1] [ext_resource path="res://button_open_github.gd" type="Script" id=2] [ext_resource path="res://button_email_feedback.gd" type="Script" id=3] +[ext_resource path="res://initialising.gd" type="Script" id=4] -[node name="Node2D" type="Node2D"] +[node name="main_screen" type="Node2D"] script = ExtResource( 1 ) __meta__ = { "_edit_horizontal_guides_": [ ] } [node name="start_menu" type="Node2D" parent="."] +script = ExtResource( 4 ) [node name="button_daily_action" type="Button" parent="start_menu"] margin_left = 51.0 @@ -19,7 +21,7 @@ margin_right = 140.0 margin_bottom = 95.0 text = "Daily Action" -[node name="RichTextLabel" type="RichTextLabel" parent="start_menu"] +[node name="welcome_title" type="RichTextLabel" parent="start_menu"] margin_left = 19.0 margin_top = 22.0 margin_right = 277.0