initial commit
This commit is contained in:
30
Scenes/UI/crosshair.tscn
Normal file
30
Scenes/UI/crosshair.tscn
Normal file
@@ -0,0 +1,30 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bw5wwerqy6gi2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://chb1dyhl7cyg1" path="res://Assets/Scripts/UI/crosshair.gd" id="1_undt4"]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
mouse_filter = 1
|
||||
|
||||
[node name="CrosshairCenter" type="CenterContainer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -20.0
|
||||
offset_top = -20.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_undt4")
|
||||
58
Scenes/UI/fade_in_transition.tscn
Normal file
58
Scenes/UI/fade_in_transition.tscn
Normal file
@@ -0,0 +1,58 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b2mhoeubwtkuo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cs6mhxw52ldo1" path="res://Assets/Scripts/UI/fade_in.gd" id="1_k5wvs"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_vggx3"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_llmbb"]
|
||||
resource_name = "fade_in"
|
||||
length = 3.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(-0.4, 3),
|
||||
"transitions": PackedFloat32Array(2.2974, 1),
|
||||
"update": 0,
|
||||
"values": [Color(0, 0, 0, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cumm5"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_vggx3"),
|
||||
&"fade_in": SubResource("Animation_llmbb")
|
||||
}
|
||||
|
||||
[node name="Transition" type="CanvasLayer"]
|
||||
script = ExtResource("1_k5wvs")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
z_index = 5
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_cumm5")
|
||||
}
|
||||
35
Scenes/UI/main_menu.tscn
Normal file
35
Scenes/UI/main_menu.tscn
Normal file
@@ -0,0 +1,35 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dq5ojxx2ytfwv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://2sxp2yxkv5k2" path="res://Assets/Scripts/UI/main_menu.gd" id="1_28flt"]
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_28flt")
|
||||
|
||||
[node name="BoxContainer" type="BoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 13
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -45.5
|
||||
offset_right = 45.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="BoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="NewGameButton" type="Button" parent="BoxContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 125
|
||||
text = "new Game"
|
||||
|
||||
[connection signal="pressed" from="BoxContainer/VBoxContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
|
||||
57
Scenes/UI/pause_menu.tscn
Normal file
57
Scenes/UI/pause_menu.tscn
Normal file
@@ -0,0 +1,57 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b54u8nvjd4p6l"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cnw8764a6hljr" path="res://Assets/Scripts/UI/pause_menu.gd" id="1_emv3i"]
|
||||
|
||||
[node name="PauseMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_emv3i")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -611.0
|
||||
offset_top = -549.0
|
||||
offset_right = 611.0
|
||||
offset_bottom = 549.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="QuitGameButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 125
|
||||
text = "Quit"
|
||||
|
||||
[node name="ResumeGameButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 125
|
||||
text = "Resume"
|
||||
|
||||
[node name="CameraSensitivityLabel" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Camera Sensitivity"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="MarginContainer/VBoxContainer/CameraSensitivityLabel"]
|
||||
layout_mode = 2
|
||||
offset_top = -20.0
|
||||
offset_right = 492.0
|
||||
offset_bottom = -4.0
|
||||
max_value = 0.01
|
||||
step = 0.0
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/QuitGameButton" to="." method="_on_quit_game_button_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/ResumeGameButton" to="." method="_on_resume_game_button_pressed"]
|
||||
[connection signal="value_changed" from="MarginContainer/VBoxContainer/CameraSensitivityLabel/HSlider" to="." method="_on_h_slider_value_changed"]
|
||||
44
Scenes/UI/terminal.tscn
Normal file
44
Scenes/UI/terminal.tscn
Normal file
@@ -0,0 +1,44 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c670wtpi4n22q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ckagscjkf3iiu" path="res://Assets/Scripts/UI/terminal/terminal_controls.gd" id="1_7fm3u"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_nmbs0"]
|
||||
font_size = 42
|
||||
|
||||
[node name="SubViewport" type="SubViewport" node_paths=PackedStringArray("terminalLine")]
|
||||
transparent_bg = true
|
||||
size = Vector2i(1830, 1680)
|
||||
script = ExtResource("1_7fm3u")
|
||||
terminalLine = NodePath("MarginContainer/ScrollContainer/VBoxContainer/Label")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/ScrollContainer/VBoxContainer"]
|
||||
clip_contents = true
|
||||
custom_minimum_size = Vector2(1800, 0)
|
||||
layout_mode = 2
|
||||
text = "a0ifjaojkfna"
|
||||
label_settings = SubResource("LabelSettings_nmbs0")
|
||||
autowrap_mode = 3
|
||||
|
||||
[node name="Caret" type="ColorRect" parent="MarginContainer/ScrollContainer/VBoxContainer/Label"]
|
||||
layout_mode = 0
|
||||
offset_right = 24.0
|
||||
offset_bottom = 42.0
|
||||
|
||||
[node name="CaretTimer" type="Timer" parent="MarginContainer/ScrollContainer/VBoxContainer/Label"]
|
||||
wait_time = 0.5
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="MarginContainer/ScrollContainer/VBoxContainer/Label/CaretTimer" to="." method="_on_caret_timer_timeout"]
|
||||
Reference in New Issue
Block a user