new release
This commit is contained in:
parent
17193e4738
commit
396fdfe1b9
11 changed files with 113 additions and 5 deletions
|
@ -57,7 +57,7 @@ text = "Disclaimer (and return to title)"
|
|||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_6u0xs")
|
||||
text = "Test Rooms"
|
||||
text = "Shrine of the doomed souls"
|
||||
|
||||
[node name="Results" type="Button" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
|
|
@ -32,7 +32,7 @@ offset_top = 3.0
|
|||
offset_right = 790.0
|
||||
offset_bottom = 73.0
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "Test Rooms"
|
||||
text = "Shrine of the doomed souls"
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
|
|
23
levels/ui/vmboot.gd
Normal file
23
levels/ui/vmboot.gd
Normal file
|
@ -0,0 +1,23 @@
|
|||
extends Node2D
|
||||
const backgrounds = ["res://backgounds/booting.png", "res://backgounds/fsck.png"]
|
||||
var stage = 0
|
||||
var bg
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
bg = $TextureRect
|
||||
bg.texture = load(backgrounds[stage])
|
||||
#pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
|
||||
func _on_timer_timeout():
|
||||
if stage == 0:
|
||||
stage = stage + 1
|
||||
bg.texture = load(backgrounds[stage])
|
||||
else:
|
||||
get_tree().change_scene_to_file("res://backgounds/disclaimer.tscn")
|
||||
#pass # Replace with function body.
|
17
levels/ui/vmboot.tscn
Normal file
17
levels/ui/vmboot.tscn
Normal file
|
@ -0,0 +1,17 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bdshjqabxu1aj"]
|
||||
|
||||
[ext_resource type="Script" path="res://levels/ui/vmboot.gd" id="1_dhver"]
|
||||
|
||||
[node name="Vmboot" type="Node2D"]
|
||||
script = ExtResource("1_dhver")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
process_callback = 0
|
||||
wait_time = 3.0
|
||||
autostart = true
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
Loading…
Add table
Add a link
Reference in a new issue