Changed font, added loading tumbling ring
This commit is contained in:
parent
c5aa58c16d
commit
d79aab7a7e
13
Menu.gd
13
Menu.gd
@ -1,20 +1,7 @@
|
|||||||
extends Node2D
|
extends Node2D
|
||||||
|
|
||||||
|
|
||||||
# Declare member variables here. Examples:
|
|
||||||
# var a = 2
|
|
||||||
# var b = "text"
|
|
||||||
|
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
#func _process(delta):
|
|
||||||
# pass
|
|
||||||
|
|
||||||
|
|
||||||
func _on_Btn_PlayGame_pressed():
|
func _on_Btn_PlayGame_pressed():
|
||||||
get_tree().change_scene("res://river_intersection_home2.tscn")
|
get_tree().change_scene("res://river_intersection_home2.tscn")
|
||||||
|
15
Menu.tscn
15
Menu.tscn
@ -1,6 +1,13 @@
|
|||||||
[gd_scene load_steps=2 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Menu.gd" type="Script" id=1]
|
[ext_resource path="res://Menu.gd" type="Script" id=1]
|
||||||
|
[ext_resource path="res://pictures/animations/Loading/loading_ring.png" type="Texture" id=2]
|
||||||
|
[ext_resource path="res://MiscCodes/loading_ring.gd" type="Script" id=3]
|
||||||
|
[ext_resource path="res://ring_of_races_font.ttf" type="DynamicFontData" id=4]
|
||||||
|
|
||||||
|
[sub_resource type="DynamicFont" id=1]
|
||||||
|
size = 30
|
||||||
|
font_data = ExtResource( 4 )
|
||||||
|
|
||||||
[node name="Main Menu" type="Node2D"]
|
[node name="Main Menu" type="Node2D"]
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
@ -10,8 +17,14 @@ margin_left = 484.204
|
|||||||
margin_top = 100.226
|
margin_top = 100.226
|
||||||
margin_right = 679.204
|
margin_right = 679.204
|
||||||
margin_bottom = 153.226
|
margin_bottom = 153.226
|
||||||
|
custom_fonts/font = SubResource( 1 )
|
||||||
text = "Play Game"
|
text = "Play Game"
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="loading_ring" type="Sprite" parent="."]
|
||||||
|
position = Vector2( 574.719, 228.63 )
|
||||||
|
texture = ExtResource( 2 )
|
||||||
|
script = ExtResource( 3 )
|
||||||
[connection signal="pressed" from="Btn_PlayGame" to="." method="_on_Btn_PlayGame_pressed"]
|
[connection signal="pressed" from="Btn_PlayGame" to="." method="_on_Btn_PlayGame_pressed"]
|
||||||
|
4
MiscCodes/loading_ring.gd
Normal file
4
MiscCodes/loading_ring.gd
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
extends Sprite
|
||||||
|
|
||||||
|
func _physics_process(delta):
|
||||||
|
rotate(0.1)
|
5
ring_of_races_font.tres
Normal file
5
ring_of_races_font.tres
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[gd_resource type="DynamicFontData" format=2]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
resource_local_to_scene = true
|
||||||
|
font_path = "res://ring_of_races_font.ttf"
|
BIN
ring_of_races_font.ttf
Normal file
BIN
ring_of_races_font.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user