added initialising script

This commit is contained in:
Jaap Marsman 2022-07-31 13:27:58 +08:00
parent d439495908
commit ee100b207c
4 changed files with 23 additions and 38 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
.import/ .import/
export.cfg export.cfg
export_presets.cfg export_presets.cfg
*.import
# Imported translations (automatically generated from CSV files) # Imported translations (automatically generated from CSV files)
*.translation *.translation

View File

@ -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

17
godot/initialising.gd Normal file
View File

@ -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

View File

@ -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://start_screen.cs" type="Script" id=1]
[ext_resource path="res://button_open_github.gd" type="Script" id=2] [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://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 ) script = ExtResource( 1 )
__meta__ = { __meta__ = {
"_edit_horizontal_guides_": [ ] "_edit_horizontal_guides_": [ ]
} }
[node name="start_menu" type="Node2D" parent="."] [node name="start_menu" type="Node2D" parent="."]
script = ExtResource( 4 )
[node name="button_daily_action" type="Button" parent="start_menu"] [node name="button_daily_action" type="Button" parent="start_menu"]
margin_left = 51.0 margin_left = 51.0
@ -19,7 +21,7 @@ margin_right = 140.0
margin_bottom = 95.0 margin_bottom = 95.0
text = "Daily Action" 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_left = 19.0
margin_top = 22.0 margin_top = 22.0
margin_right = 277.0 margin_right = 277.0