main menu, bootsplash tweaks
This commit is contained in:
+1373
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,37 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://2kmyygabgfyo"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_u7eb1"]
|
||||
font_size = 40
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 1200.0
|
||||
offset_bottom = 600.0
|
||||
|
||||
[node name="SubViewportContainer" type="SubViewportContainer" parent="Control"]
|
||||
layout_mode = 2
|
||||
offset_top = 88.0
|
||||
offset_right = 1200.0
|
||||
offset_bottom = 600.0
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="Control/SubViewportContainer"]
|
||||
handle_input_locally = false
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="Panel" type="Panel" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_right = 1200.0
|
||||
offset_bottom = 100.0
|
||||
|
||||
[node name="Label" type="Label" parent="Control/Panel"]
|
||||
layout_mode = 0
|
||||
offset_right = 1200.0
|
||||
offset_bottom = 100.0
|
||||
text = "Pong"
|
||||
label_settings = SubResource("LabelSettings_u7eb1")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
justification_flags = 162
|
||||
@@ -2,7 +2,12 @@ extends Node2D
|
||||
|
||||
|
||||
func _ready():
|
||||
await get_tree().create_timer(1.0).timeout # Replace with function body.
|
||||
var base_font_size = 20
|
||||
for i in range(100):
|
||||
await get_tree().create_timer(0.02).timeout
|
||||
var label = get_node("TeletypeGames")
|
||||
label.get_label_settings().font_size = base_font_size + i
|
||||
await get_tree().create_timer(1.5).timeout
|
||||
get_tree().change_scene_to_file("res://scenes/main_menu/MainMenu.tscn")
|
||||
|
||||
|
||||
|
||||
@@ -11,11 +11,17 @@ default_font_size = 120
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_s823y"]
|
||||
font_size = 120
|
||||
shadow_size = 10
|
||||
shadow_color = Color(0, 0, 0.439216, 0)
|
||||
shadow_color = Color(1, 0, 0, 1)
|
||||
shadow_offset = Vector2(2, 2)
|
||||
|
||||
[node name="BootSplash" type="Node2D"]
|
||||
script = ExtResource("1_qt4f0")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
offset_right = 1200.0
|
||||
offset_bottom = 600.0
|
||||
color = Color(0.0117647, 0.121569, 0.129412, 1)
|
||||
|
||||
[node name="TeletypeGames" type="Label" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
|
||||
@@ -18,6 +18,11 @@ events = [SubResource("InputEventKey_p7j63")]
|
||||
|
||||
[node name="MainMenu" type="Node2D"]
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
offset_right = 1200.0
|
||||
offset_bottom = 600.0
|
||||
color = Color(0.0117647, 0.121569, 0.129412, 1)
|
||||
|
||||
[node name="NewGameContainer" type="PanelContainer" parent="."]
|
||||
offset_right = 1200.0
|
||||
offset_bottom = 300.0
|
||||
|
||||
Reference in New Issue
Block a user