mirror of
https://github.com/Nokorpo/LibreAim.git
synced 2025-06-09 17:44:47 +09:00
Show project version in main menu
This commit is contained in:
parent
56e2a721be
commit
09adc3eb7c
4 changed files with 20 additions and 2 deletions
|
@ -11,6 +11,7 @@ config_version=5
|
|||
[application]
|
||||
|
||||
config/name="LibreAim"
|
||||
config/version="v0.0.1-alpha"
|
||||
run/main_scene="res://scenes/main_menu/main_menu.tscn"
|
||||
config/features=PackedStringArray("4.2", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=28 format=3 uid="uid://c8on0ngoa3108"]
|
||||
[gd_scene load_steps=29 format=3 uid="uid://c8on0ngoa3108"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://caf1fphx2xqt0" path="res://assets/themes/main_menu.tres" id="1_2h7x4"]
|
||||
[ext_resource type="Script" path="res://scenes/main_menu/main_menu.gd" id="1_p06gh"]
|
||||
[ext_resource type="Texture2D" uid="uid://nng31j22g6fh" path="res://assets/images/icons/play.svg" id="2_n3hsc"]
|
||||
[ext_resource type="Texture2D" uid="uid://m5gaiq7pjwbv" path="res://assets/images/icons/settings.svg" id="3_8dqwy"]
|
||||
[ext_resource type="Script" path="res://scenes/main_menu/show_version.gd" id="3_kmn6w"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4b2m50txi00g" path="res://icon.svg" id="3_kq7as"]
|
||||
[ext_resource type="Texture2D" uid="uid://tkfbioukscgd" path="res://assets/images/icons/git.svg" id="4_nuriq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmrheauks0nru" path="res://assets/images/icons/cross.svg" id="5_nidys"]
|
||||
|
@ -122,10 +123,20 @@ theme_override_constants/separation = 30
|
|||
layout_mode = 2
|
||||
theme_override_constants/separation = 24
|
||||
|
||||
[node name="Title" type="Label" parent="HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Libre Aim"
|
||||
|
||||
[node name="Label" type="Label" parent="HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.662745, 0.662745, 0.662745, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "Version"
|
||||
script = ExtResource("3_kmn6w")
|
||||
|
||||
[node name="Icon" type="TextureRect" parent="HBoxContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(84, 84)
|
||||
layout_mode = 2
|
||||
|
|
|
@ -287,6 +287,7 @@ access = 2
|
|||
use_native_dialog = true
|
||||
|
||||
[node name="Video" type="Control" parent="HBoxContainer/Control2"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
5
scenes/main_menu/show_version.gd
Normal file
5
scenes/main_menu/show_version.gd
Normal file
|
@ -0,0 +1,5 @@
|
|||
extends Label
|
||||
### Displays the current version of the game
|
||||
|
||||
func _ready() -> void:
|
||||
text = ProjectSettings.get_setting("application/config/version")
|
Loading…
Add table
Add a link
Reference in a new issue