[gd_scene load_steps=8 format=3 uid="uid://dfvl3luba7j4"]

[ext_resource type="Texture2D" uid="uid://5hxbsfm0aa0" path="res://icon.svg" id="1_3phrh"]
[ext_resource type="FontFile" uid="uid://b55n3f2bh16v5" path="res://assets/fonts/Linebeam.ttf" id="2_04cpk"]

[sub_resource type="GDScript" id="GDScript_axp0a"]
resource_name = "Test"
script/source = "extends Control

var lines: Array[String] = [
\"[code]piix4_smbus 00|00:0||0:14.0: SMBus Host Controller at 0xb00, revision 0[/code]\\n\",
\"[code]piix4_smbus 00||00:0|_0:14.0: Using register 0x02 for SMBus port selection[/code]\\n\",
\"[code]i2c: Successfully instantiated SPD at 0x50[/code]\\n\",
\"[code]i2c: Successfully instantiated SPD at 0x51[/code]\\n\",
\"[code]i2c: Successfully instantiated SPD at 0x52[/code]\\n\",
\"[code]cryptd: max_cpu_qlen set to 1000[/code]\\n\",
\"[code]null: receiving encrypted message. Decrypting![/code]\\n\",
\"[code]null: Listen! The only way we can stop the AI now is to [error][/code]\\n\",
\"[code]null: you're our only hope! There's an executable attached, use it to [error][/code]\\n\",
\"[code]null: receiving remote attachment, saving to ~/antidote.bin[/code]\\n\",
\"[code]piix4_smbus 0000:00:14.0: Auxiliary SMBus Host Controller at 0xb20[/code]\\n\",
\"[code]sp5100_tco: SP5100/SB800 TCO WatchDog Timer Driver[/code]\\n\",
\"[code]sp5100-tco sp5100-tco: Using 0xfeb00000 for watchdog MMIO address[/code]\\n\",
\"[code]LOADING DEMO[pulse freq=1.0 color=#ffffff40 ease=-2.0]...[/pulse][/code]\\n\",
\"[code]-------------------------------------[/code]\\n\",
\"[code]|            AltParty '24               |[/code]\\n\",
\"[code]-------------------------------------[/code]\\n\",
\"\\n\",
\"[code]Minihakkerit 2024[/code]\\n\",
\"[code]Programming & Build tools: XTRA[/code]\\n\",
\"[code]Programming & 3D: GorkaMorka[/code]\\n\",
\"[code]Music & Planning: AUGI[/code]\\n\",
\"[code]Spooling up firewall[pulse freq=1.0 color=#ffffff40 ease=-2.0]........[/pulse][/code]\",
\"[code] Done![/code]\\n\",
\"[code]Entry symbol 0x00007f5653fbcdb9 detected! Attaching[pulse freq=1.0 color=#ffffff40 ease=-2.0]...[/pulse][/code]\",
]

func _ready() -> void:
	$AnimationPlayer.play(\"terminal\");
	
func next_line() -> void:
	$Terminal.append_text(lines[0]);
	lines.remove_at(0);
"

[sub_resource type="Animation" id="Animation_dirfa"]
length = 0.001

[sub_resource type="Animation" id="Animation_t3ulj"]
resource_name = "blink"
length = 2.0
loop_mode = 1

[sub_resource type="Animation" id="Animation_6cb10"]
resource_name = "terminal"
length = 10.0
tracks/0/type = "method"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.533333, 1.16667, 2, 2.06667, 2.1, 2.33333, 2.46667, 2.53333, 2.63333, 2.73333, 2.91327, 2.94791, 3.10277, 5, 7, 7.03333, 7.06667, 7.07814, 7.07933, 7.08075, 7.08422, 7.08726, 7.75495, 9.34944, 9.40845),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"values": [{
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}, {
"args": [],
"method": &"next_line"
}]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_jgx00"]
_data = {
"RESET": SubResource("Animation_dirfa"),
"blink": SubResource("Animation_t3ulj"),
"terminal": SubResource("Animation_6cb10")
}

[node name="Test" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = SubResource("GDScript_axp0a")

[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)

[node name="Icon" type="Sprite2D" parent="."]
position = Vector2(1762, 150)
texture = ExtResource("1_3phrh")

[node name="Timer" type="Timer" parent="."]
wait_time = 1.5
one_shot = true
autostart = true

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_jgx00")
}

[node name="Terminal" type="RichTextLabel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 25.0
offset_top = 25.0
offset_right = -28.0
offset_bottom = -20.0
grow_horizontal = 2
grow_vertical = 2
theme_override_fonts/mono_font = ExtResource("2_04cpk")
theme_override_font_sizes/mono_font_size = 35
theme_override_font_sizes/normal_font_size = 24
bbcode_enabled = true
text = "[code]HELLO[/code]
"
