123 lines
2.9 KiB
Plaintext
123 lines
2.9 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://dnicfvo878on7"]
|
|
|
|
[ext_resource type="Theme" uid="uid://x4at2pluavto" path="res://general_theme.tres" id="1"]
|
|
[ext_resource type="Script" path="res://scripts/Console.gd" id="3"]
|
|
|
|
[sub_resource type="GDScript" id="2"]
|
|
script/source = "extends ColorRect
|
|
|
|
# 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():
|
|
show()
|
|
fade_in()
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
const VICTORY_SCREEN = \"res://Nodes/Victory.tscn\"
|
|
var progress = 255
|
|
var fade_timer
|
|
const FADE_SPEED = 0.0125
|
|
const FADE_RATE = 8
|
|
func fade_in():
|
|
modulate.a = progress/255.0
|
|
if progress > 0:
|
|
progress -= FADE_RATE
|
|
if(!fade_timer):
|
|
fade_timer = Timer.new()
|
|
add_child(fade_timer)
|
|
fade_timer.connect(\"timeout\",Callable(self,\"fade_in\"))
|
|
fade_timer.start(FADE_SPEED)
|
|
else:
|
|
fade_timer.queue_free()
|
|
|
|
|
|
var prog_two = 0
|
|
func fade_out():
|
|
modulate.a = prog_two/255.0
|
|
if prog_two < 255:
|
|
prog_two += FADE_RATE
|
|
if(!fade_timer):
|
|
fade_timer = Timer.new()
|
|
add_child(fade_timer)
|
|
fade_timer.connect(\"timeout\",Callable(self,\"fade_out\"))
|
|
fade_timer.start(FADE_SPEED)
|
|
else:
|
|
fade_timer.queue_free()"
|
|
|
|
[node name="Control" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
theme = ExtResource("1")
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Control" type="Control" parent="CanvasLayer"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
theme = ExtResource("1")
|
|
|
|
[node name="Level Complete" type="Label" parent="CanvasLayer/Control"]
|
|
layout_mode = 0
|
|
offset_left = 20.0
|
|
offset_top = 15.0
|
|
offset_right = 691.0
|
|
offset_bottom = 88.0
|
|
text = "LEVEL COMPLETE!"
|
|
|
|
[node name="Console" type="Control" parent="CanvasLayer/Control"]
|
|
anchors_preset = 0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
script = ExtResource("3")
|
|
|
|
[node name="Display" type="Label" parent="CanvasLayer/Control/Console"]
|
|
layout_mode = 0
|
|
offset_left = 20.0
|
|
offset_top = 70.0
|
|
offset_right = 550.0
|
|
offset_bottom = 480.0
|
|
text = "Running debugger...
|
|
|
|
Debugging complete!"
|
|
|
|
[node name="Buttons" type="HBoxContainer" parent="CanvasLayer/Control/Console"]
|
|
layout_mode = 0
|
|
offset_left = 20.0
|
|
offset_top = 480.0
|
|
offset_right = 550.0
|
|
offset_bottom = 520.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
alignment = 1
|
|
|
|
[node name="Button2" type="Button" parent="CanvasLayer/Control/Console/Buttons"]
|
|
layout_mode = 2
|
|
text = "Test"
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control/Console"]
|
|
layout_mode = 0
|
|
offset_left = 20.0
|
|
offset_top = 475.0
|
|
offset_right = 550.0
|
|
offset_bottom = 485.0
|
|
scale = Vector2(1, 0.5)
|
|
color = Color(0.6, 0.898039, 0.313726, 1)
|
|
|
|
[node name="FadeRect" type="ColorRect" parent="CanvasLayer"]
|
|
visible = false
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
mouse_filter = 2
|
|
color = Color(0, 0, 0, 1)
|
|
script = SubResource("2")
|