Added version text
It doesnt show the latest version yet but thats to be... heh.. expected.. what
This commit is contained in:
1 parent
3b0f47492d
commit
1a8f4de7f9
6 files changed
+60
-1
No files matched your search
+36
-1
@@ -1,8 +1,9 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://bg4fa11htun38"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bg4fa11htun38"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://dq7nkk7n7wrq4" path="res://Fonts/Lexend.ttf" id="1_tt5f1"]
|
||||
[ext_resource type="Script" uid="uid://bc4miccifwrk0" path="res://Scripts/SceneSwitcher.cs" id="2_8saeu"]
|
||||
[ext_resource type="AudioStream" uid="uid://6v4630hrkeg6" path="res://Audio/Music/Menu.mp3" id="2_853f1"]
|
||||
[ext_resource type="Script" uid="uid://c61hc1raouekv" path="res://Scripts/VersionChecker.cs" id="3_ghw46"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_tt5f1"]
|
||||
font = ExtResource("1_tt5f1")
|
||||
@@ -141,6 +142,40 @@ text = "Play"
|
||||
script = ExtResource("2_8saeu")
|
||||
ScenePath = "res://Scenes/Game.tscn"
|
||||
|
||||
[node name="VersionText" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -40.0
|
||||
offset_bottom = 40.0
|
||||
grow_horizontal = 0
|
||||
script = ExtResource("3_ghw46")
|
||||
|
||||
[node name="Version" type="Label" parent="VersionText"]
|
||||
layout_mode = 0
|
||||
offset_left = -680.0
|
||||
offset_top = 24.0
|
||||
offset_right = 344.0
|
||||
offset_bottom = 126.0
|
||||
scale = Vector2(0.68, 0.68)
|
||||
theme_override_fonts/font = ExtResource("1_tt5f1")
|
||||
theme_override_font_sizes/font_size = 81
|
||||
text = "Version: {Version Number}"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="LatestVersion" type="Label" parent="VersionText"]
|
||||
layout_mode = 0
|
||||
offset_left = -880.0
|
||||
offset_top = 104.0
|
||||
offset_right = 438.0
|
||||
offset_bottom = 206.0
|
||||
scale = Vector2(0.68, 0.68)
|
||||
theme_override_fonts/font = ExtResource("1_tt5f1")
|
||||
theme_override_font_sizes/font_size = 81
|
||||
text = "Latest Version: {Version Number}"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_853f1")
|
||||
autoplay = true
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Globals : Node {
|
||||
public static string LatestVersion = "";
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://dlkp1bbcoaapu
|
||||
@@ -0,0 +1,11 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class VersionChecker : Control {
|
||||
public override void _Ready() {
|
||||
Label VersionLabel = GetNode<Label>("Version");
|
||||
string GameVersion = ProjectSettings.GetSetting("application/config/version").AsString();
|
||||
|
||||
VersionLabel.Text = "Version: " + GameVersion;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://c61hc1raouekv
|
||||
@@ -11,10 +11,15 @@ config_version=5
|
||||
[application]
|
||||
|
||||
config/name="Berry Dash Godot Remake"
|
||||
config/version="1.0.0-beta"
|
||||
run/main_scene="uid://bg4fa11htun38"
|
||||
config/features=PackedStringArray("4.4", "C#", "Mobile")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[autoload]
|
||||
|
||||
Globals="*res://Scripts/Globals.cs"
|
||||
|
||||
[display]
|
||||
|
||||
window/size/viewport_width=1920
|
||||
|
||||
Reference in new issue
Block a user