End of Chapter 3. Completed lesson displaying version number.
This commit is contained in:
parent
dc5585486b
commit
67b89cfd2c
|
|
@ -11,6 +11,7 @@ config_version=5
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="Legacy of the Ancient Questor"
|
config/name="Legacy of the Ancient Questor"
|
||||||
|
config/version="prototype 1"
|
||||||
run/main_scene="uid://dm8aun68tgprd"
|
run/main_scene="uid://dm8aun68tgprd"
|
||||||
config/features=PackedStringArray("4.4", "GL Compatibility")
|
config/features=PackedStringArray("4.4", "GL Compatibility")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
[gd_scene load_steps=5 format=3 uid="uid://dm8aun68tgprd"]
|
[gd_scene load_steps=7 format=3 uid="uid://dm8aun68tgprd"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cm8lciwc0iuq" path="res://gfx/title/tree-3094982_1280.jpg" id="1_eb34j"]
|
[ext_resource type="Texture2D" uid="uid://cm8lciwc0iuq" path="res://gfx/title/tree-3094982_1280.jpg" id="1_eb34j"]
|
||||||
[ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="2_aqpy5"]
|
[ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="2_aqpy5"]
|
||||||
[ext_resource type="Theme" uid="uid://dnxny0n7ti7eq" path="res://themes/default_theme.tres" id="3_w8uqo"]
|
[ext_resource type="Theme" uid="uid://dnxny0n7ti7eq" path="res://themes/default_theme.tres" id="3_w8uqo"]
|
||||||
|
[ext_resource type="Script" uid="uid://bfc7ybsw6riri" path="res://scripts/title/version_number.gd" id="4_a4ium"]
|
||||||
|
|
||||||
[sub_resource type="LabelSettings" id="LabelSettings_w8uqo"]
|
[sub_resource type="LabelSettings" id="LabelSettings_w8uqo"]
|
||||||
font = ExtResource("2_aqpy5")
|
font = ExtResource("2_aqpy5")
|
||||||
|
|
@ -13,6 +14,10 @@ shadow_size = 6
|
||||||
shadow_color = Color(0, 0, 0, 1)
|
shadow_color = Color(0, 0, 0, 1)
|
||||||
shadow_offset = Vector2(2, 2)
|
shadow_offset = Vector2(2, 2)
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_r23qo"]
|
||||||
|
font = ExtResource("2_aqpy5")
|
||||||
|
font_color = Color(0.862745, 0.662745, 0.101961, 1)
|
||||||
|
|
||||||
[node name="Title Screen" type="Control"]
|
[node name="Title Screen" type="Control"]
|
||||||
layout_mode = 3
|
layout_mode = 3
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
|
|
@ -89,3 +94,18 @@ focus_mode = 0
|
||||||
theme = ExtResource("3_w8uqo")
|
theme = ExtResource("3_w8uqo")
|
||||||
theme_override_font_sizes/font_size = 45
|
theme_override_font_sizes/font_size = 45
|
||||||
text = "Credits"
|
text = "Credits"
|
||||||
|
|
||||||
|
[node name="Version Number" type="Label" parent="."]
|
||||||
|
layout_mode = 1
|
||||||
|
anchors_preset = 2
|
||||||
|
anchor_top = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = 10.0
|
||||||
|
offset_top = -25.0
|
||||||
|
offset_right = 133.0
|
||||||
|
offset_bottom = -2.0
|
||||||
|
grow_vertical = 0
|
||||||
|
text = "Version: "
|
||||||
|
label_settings = SubResource("LabelSettings_r23qo")
|
||||||
|
vertical_alignment = 1
|
||||||
|
script = ExtResource("4_a4ium")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
extends Label
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready() -> void:
|
||||||
|
text += ProjectSettings.get_setting("application/config/version")
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
func _process(delta: float) -> void:
|
||||||
|
pass
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
uid://bfc7ybsw6riri
|
||||||
Loading…
Reference in New Issue