Dramatically change file structure

Everything to lowercase
This commit is contained in:
Antimundo 2023-10-25 19:04:23 +02:00
parent 0321c6b314
commit b8b4e1b731
No known key found for this signature in database
GPG key ID: F83F260F8F88F0BC
25 changed files with 49 additions and 391 deletions

View file

@ -1,7 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://dkiet13jnna2m"]
[ext_resource type="Script" path="res://scripts/characters/CharacterBody3D.gd" id="1_w6o4y"]
[ext_resource type="Script" path="res://scripts/ui/Crosshair.gd" id="2_7fymk"]
[ext_resource type="Script" path="res://scenes/game_world/player_manager.gd" id="1_w6o4y"]
[ext_resource type="Script" path="res://scenes/game_world/crosshair.gd" id="2_7fymk"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_trh1v"]
points = PackedVector3Array(-0.125207, -0.532801, -0.480507, 0.0227831, 0.47607, 0.498884, 0.169713, 0.559144, 0.464172, 0.231051, -0.803591, 0.320455, 0.40741, 0.651043, -0.243523, -0.482789, 0.594843, 0.0822132, -0.362868, -0.682312, 0.289697, 0.469044, -0.654529, -0.0662713, -0.127444, 0.842701, -0.338103, -0.393435, -0.683942, -0.244717, 0.438255, 0.623309, 0.200849, 0.0841477, 0.977454, 0.114795, -0.0682023, -0.976458, -0.12927, 0.20055, -0.563129, -0.451454, -0.185527, 0.595453, -0.453475, -0.273363, 0.592268, 0.407754, -0.00693649, -0.476823, 0.49966, 0.375821, -0.588614, 0.316955, 0.111579, 0.563059, -0.481177, -0.41725, 0.527866, -0.270497, -0.484546, -0.596972, -0.0665097, -0.279747, 0.908561, 0.0533361, -0.250197, -0.880712, 0.205319, 0.263647, -0.902771, -0.127394, 0.293368, 0.871526, -0.157196, 0.373412, -0.526319, -0.328246, 0.499663, 0.476641, -0.00688856, 0.0531056, 0.875001, 0.324703, -0.154543, -0.590854, 0.465879, -0.0972799, -0.782358, -0.398188, -0.387649, -0.498171, 0.31565, -0.30068, -0.587995, -0.388901)

View file

@ -11,15 +11,15 @@ config_version=5
[application]
config/name="Open Aim Trainer"
run/main_scene="res://scenes/ui/main_screen.tscn"
run/main_scene="res://scenes/main_menu/main_menu.tscn"
config/features=PackedStringArray("4.1", "Forward Plus")
config/icon="res://icon.png"
config/windows_native_icon="res://icon.ico"
[autoload]
Global="*res://scripts/global.gd"
DataManager="*res://scripts/data_manager.gd"
Global="*res://scenes/autoload/global.gd"
DataManager="*res://scenes/autoload/data_manager.gd"
[display]

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=5 format=3 uid="uid://baj568pnwc4ph"]
[ext_resource type="Script" path="res://scripts/characters/target.gd" id="1_mc4da"]
[ext_resource type="Script" path="res://scenes/game_world/target.gd" id="1_mc4da"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_gfo2d"]
points = PackedVector3Array(0.457871, 0.198079, 0.0157824, -0.48874, -0.0916874, -0.0451868, -0.471509, -0.137027, -0.0907015, 0.0763591, -0.333275, 0.364179, 0.136569, -0.332425, -0.346906, -0.151617, 0.471982, -0.0602459, -0.105347, 0.211936, 0.43966, -0.0450169, 0.198098, -0.456416, 0.409077, -0.151168, 0.242516, -0.271376, -0.377761, 0.181871, 0.41148, -0.075981, -0.27324, 0.198197, -0.456161, -0.044931, -0.240641, -0.331674, -0.285768, 0.227137, 0.25672, 0.363041, 0.227522, 0.423604, -0.135488, -0.37899, 0.0607022, 0.319462, -0.406747, 0.181049, -0.225691, -0.0146313, -0.0917695, 0.490229, -0.377855, 0.302793, 0.121712, 0.0462323, 0.456011, 0.198185, -0.227464, -0.0607863, -0.440348, 0.228455, 0.0607228, -0.439887, -0.0911376, -0.489246, -0.045174, 0.441865, -0.228216, -0.0449581, 0.317179, 0.241214, -0.300812, -0.0448487, 0.394737, -0.302955, -0.316348, -0.196222, 0.332551, 0.198442, -0.0304293, 0.457237, 0.0614714, -0.152246, -0.471307, 0.363089, 0.256708, 0.227079, 0.152134, -0.439489, 0.182379, -0.210725, 0.362276, 0.27223)

View file

@ -1,6 +1,6 @@
[gd_scene load_steps=4 format=3 uid="uid://b7w6oa4fydjyq"]
[ext_resource type="Script" path="res://scripts/ui/BulletHole.gd" id="1_a25ui"]
[ext_resource type="Script" path="res://scenes/game_world/bullet_hole.gd" id="1_a25ui"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_sk88p"]
albedo_color = Color(0.682353, 0, 0.109804, 1)

View file

@ -1,6 +1,6 @@
extends Node3D
var packed_target = preload("res://scenes/characters/target.tscn")
var packed_target = preload("res://scenes/enemies/target.tscn")
var location_target = Vector3()
var count_kills = 0
var id_spawn_target = 0
@ -43,7 +43,7 @@ func _on_mouse_captured_needed_pressed():
func _on_timer_timeout():
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
get_tree().change_scene_to_file("res://scenes/ui/main_screen.tscn")
get_tree().change_scene_to_file("res://scenes/main_menu/main_menu.tscn")
func _on_player_shoot():
if (timer.is_stopped()):

View file

@ -1,12 +1,12 @@
[gd_scene load_steps=18 format=3 uid="uid://cdbhv0p0jfr75"]
[ext_resource type="Script" path="res://scripts/levels/World.gd" id="1_02ggb"]
[ext_resource type="Script" path="res://scripts/characters/CharacterBody3D.gd" id="1_77co2"]
[ext_resource type="Material" uid="uid://dsqe2mx1kgicf" path="res://assets/images/mat_filldummy.tres" id="2_1uwlb"]
[ext_resource type="Script" path="res://scripts/ui/Crosshair.gd" id="4_jkxyl"]
[ext_resource type="LabelSettings" uid="uid://crnxcugovdaio" path="res://assets/fonts/100_outline.tres" id="5_k01xn"]
[ext_resource type="Texture2D" uid="uid://1xnrooyjmggn" path="res://assets/images/hit_marker.svg" id="6_7j0k6"]
[ext_resource type="Script" path="res://scripts/levels/pause.gd" id="6_gfk58"]
[ext_resource type="Script" path="res://scenes/game_world/game_world.gd" id="1_4pv4x"]
[ext_resource type="Material" uid="uid://dsqe2mx1kgicf" path="res://assets/images/mat_filldummy.tres" id="2_ldkna"]
[ext_resource type="Script" path="res://scenes/game_world/player_manager.gd" id="3_cvlpu"]
[ext_resource type="Script" path="res://scenes/game_world/crosshair.gd" id="4_pc15u"]
[ext_resource type="LabelSettings" uid="uid://crnxcugovdaio" path="res://assets/fonts/100_outline.tres" id="5_eenne"]
[ext_resource type="Texture2D" uid="uid://1xnrooyjmggn" path="res://assets/images/hit_marker.svg" id="6_efh5s"]
[ext_resource type="Script" path="res://scenes/game_world/pause.gd" id="7_ffgmh"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_hein3"]
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
@ -95,7 +95,7 @@ _data = {
}
[node name="World" type="Node3D"]
script = ExtResource("1_02ggb")
script = ExtResource("1_4pv4x")
[node name="Timer" type="Timer" parent="."]
@ -116,35 +116,35 @@ size = Vector3(50, 25, 50)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
operation = 2
size = Vector3(45, 24, 45)
material = ExtResource("2_1uwlb")
material = ExtResource("2_ldkna")
[node name="CSGBox3D2" type="CSGBox3D" parent="Building"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -8.5, -7)
size = Vector3(50, 1, 0.852)
material = ExtResource("2_1uwlb")
material = ExtResource("2_ldkna")
[node name="CSGBox3D3" type="CSGBox3D" parent="Building"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -8.5, 3)
size = Vector3(5, 5, 5)
material = ExtResource("2_1uwlb")
material = ExtResource("2_ldkna")
[node name="CSGPolygon3D" type="CSGPolygon3D" parent="Building"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, -9, 5.5)
polygon = PackedVector2Array(0, 0, 0, 3, 8, 0)
depth = 5.0
material = ExtResource("2_1uwlb")
material = ExtResource("2_ldkna")
[node name="CSGPolygon3D2" type="CSGPolygon3D" parent="Building"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -2.5, -9, 0.5)
polygon = PackedVector2Array(0, 0, 0, 3, 8, 0)
depth = 5.0
material = ExtResource("2_1uwlb")
material = ExtResource("2_ldkna")
[node name="CSGPolygon3D3" type="CSGPolygon3D" parent="Building"]
transform = Transform3D(1.31134e-07, 0, -1, 0, 1, 0, 1, 0, 1.31134e-07, -2.5, -9, 5.5)
polygon = PackedVector2Array(0, 0, 0, 3, 8, 0)
depth = 5.0
material = ExtResource("2_1uwlb")
material = ExtResource("2_ldkna")
[node name="PlayerPrison" type="CSGBox3D" parent="."]
transform = Transform3D(3, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, -12.0608)
@ -174,7 +174,7 @@ size = Vector3(39, 11, 9)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 3)
collision_layer = 2
collision_mask = 5
script = ExtResource("1_77co2")
script = ExtResource("3_cvlpu")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
@ -210,7 +210,7 @@ grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 0
size_flags_vertical = 0
script = ExtResource("4_jkxyl")
script = ExtResource("4_pc15u")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
@ -229,7 +229,7 @@ offset_top = 50.0
offset_right = 263.0
offset_bottom = 190.0
text = "60s"
label_settings = ExtResource("5_k01xn")
label_settings = ExtResource("5_eenne")
[node name="Kills" type="Label" parent="CanvasLayer/GameplayUI"]
layout_mode = 0
@ -238,7 +238,7 @@ offset_top = 150.0
offset_right = 157.0
offset_bottom = 290.0
text = "0"
label_settings = ExtResource("5_k01xn")
label_settings = ExtResource("5_eenne")
[node name="HitMarker" type="TextureRect" parent="CanvasLayer/GameplayUI"]
modulate = Color(1, 1, 1, 0)
@ -255,7 +255,7 @@ offset_bottom = 16.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(16, 16)
texture = ExtResource("6_7j0k6")
texture = ExtResource("6_efh5s")
[node name="AnimationKill" type="AnimationPlayer" parent="CanvasLayer/GameplayUI"]
root_node = NodePath("../../..")
@ -264,7 +264,7 @@ libraries = {
}
[node name="PauseManager" type="Node" parent="CanvasLayer"]
script = ExtResource("6_gfk58")
script = ExtResource("7_ffgmh")
[node name="Pause" type="Control" parent="CanvasLayer/PauseManager"]
process_mode = 2

View file

@ -43,6 +43,7 @@ func _notification(what):
trigger_pause(true)
func trigger_pause(new_pause_state):
print("yeah " + str(new_pause_state))
get_tree().paused = new_pause_state
$Pause.visible = new_pause_state
if (new_pause_state):
@ -56,4 +57,4 @@ func _on_resume_pressed():
func _on_menu_pressed():
get_tree().paused = false
get_tree().change_scene_to_file("res://scenes/ui/main_screen.tscn")
get_tree().change_scene_to_file("res://scenes/main_menu/main_menu.tscn")

View file

@ -20,7 +20,7 @@ var jump_double := true
@onready var head = $Head
@onready var camera = $Head/Camera3D
@onready var raycast = $Head/Camera3D/RayCast3D
@onready var bullet_hole = preload("res://scenes/ui/BulletHole.tscn")
@onready var bullet_hole = preload("res://scenes/game_world/bullet_hole.tscn")
# Get the gravity from the project settings to be synced with RigidBody nodes.
var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")

View file

@ -11,19 +11,9 @@ func _ready():
else:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
func hide_options():
for child in panel.get_children():
child.visible = false
func _on_play_pressed():
hide_options()
$HBoxContainer/Panel/SelectLevel.visible = true
# var keys = []
# for key in models3d.keys():
# keys.push_back(key)
#
# var random_index = randi() % keys.size()
# var value = keys[random_index]
func _on_quit_pressed():
get_tree().quit()
@ -31,6 +21,12 @@ func _on_quit_pressed():
func _on_settings_pressed():
hide_options()
$HBoxContainer/Panel/Settings.visible = true
func _on_source_code_pressed():
OS.shell_open("https://github.com/antimundo/OpenAimTrainer")
func hide_options():
for child in panel.get_children():
child.visible = false

View file

@ -1,13 +1,13 @@
[gd_scene load_steps=15 format=3 uid="uid://c8on0ngoa3108"]
[ext_resource type="Script" path="res://scripts/ui/MainScreen.gd" id="1_8pmi0"]
[ext_resource type="Script" path="res://scenes/main_menu/main_menu.gd" id="1_p06gh"]
[ext_resource type="Texture2D" uid="uid://nng31j22g6fh" path="res://assets/images/icons/play.svg" id="2_n3hsc"]
[ext_resource type="Texture2D" uid="uid://m5gaiq7pjwbv" path="res://assets/images/icons/settings.svg" id="3_8dqwy"]
[ext_resource type="Texture2D" uid="uid://tkfbioukscgd" path="res://assets/images/icons/git.svg" id="4_nuriq"]
[ext_resource type="Texture2D" uid="uid://cmrheauks0nru" path="res://assets/images/icons/cross.svg" id="5_nidys"]
[ext_resource type="Script" path="res://scripts/ui/select_level.gd" id="6_5wgje"]
[ext_resource type="Script" path="res://scenes/main_menu/select_level.gd" id="6_5wgje"]
[ext_resource type="Texture2D" uid="uid://db8p3tq5cc85j" path="res://assets/images/icons/play-big.svg" id="7_o4hi3"]
[ext_resource type="PackedScene" uid="uid://cropshnueuiqr" path="res://scenes/ui/settings.tscn" id="8_1n7gf"]
[ext_resource type="PackedScene" uid="uid://cropshnueuiqr" path="res://scenes/main_menu/settings.tscn" id="8_1n7gf"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_66yw7"]
content_margin_left = 50.0
@ -59,7 +59,7 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_ks0pm")
script = ExtResource("1_8pmi0")
script = ExtResource("1_p06gh")
[node name="HBoxContainer2" type="HBoxContainer" parent="."]
visible = false

View file

@ -64,4 +64,4 @@ func select_gamemode(type):
func start_gamemode(type):
if !OS.has_feature("web"):
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
get_tree().change_scene_to_file("res://scenes/levels/World.tscn")
get_tree().change_scene_to_file("res://scenes/game_world/game_world.tscn")

View file

@ -1,12 +1,12 @@
[gd_scene load_steps=39 format=3 uid="uid://cropshnueuiqr"]
[ext_resource type="Script" path="res://scripts/ui/settings.gd" id="1_4ilr3"]
[ext_resource type="Script" path="res://scripts/ui/Crosshair.gd" id="2_iu82h"]
[ext_resource type="Script" path="res://scripts/ui/settings_crosshair.gd" id="3_1x3bu"]
[ext_resource type="Script" path="res://scenes/main_menu/settings.gd" id="1_4ilr3"]
[ext_resource type="Script" path="res://scenes/game_world/crosshair.gd" id="2_iu82h"]
[ext_resource type="Script" path="res://scenes/main_menu/settings_crosshair.gd" id="3_1x3bu"]
[ext_resource type="Texture2D" uid="uid://dfccfxiw0aqif" path="res://assets/images/icons/export-file.svg" id="3_ljukx"]
[ext_resource type="Texture2D" uid="uid://btgrnb8ku7dyk" path="res://assets/images/icons/import-file.svg" id="4_e248v"]
[ext_resource type="Script" path="res://scripts/ui/settings_video.gd" id="6_tj5ad"]
[ext_resource type="Script" path="res://scripts/ui/settings_controls.gd" id="7_1g678"]
[ext_resource type="Script" path="res://scenes/main_menu/settings_video.gd" id="6_tj5ad"]
[ext_resource type="Script" path="res://scenes/main_menu/settings_controls.gd" id="7_1g678"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_66yw7"]
content_margin_left = 50.0

View file

@ -1,73 +0,0 @@
[gd_scene load_steps=2 format=3 uid="uid://c8on0ngoa3108"]
[ext_resource type="Script" path="res://scripts/ui/MainScreen.gd" id="1_lgjmg"]
[node name="MainScreen" 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_lgjmg")
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="ScrollContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
[node name="Play" type="Button" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Play"
[node name="ResolutionLabel" type="Label" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Resolution"
[node name="QualitySlider" type="HSlider" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
min_value = 0.25
max_value = 2.0
step = 0.05
value = 1.0
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
[node name="Game" type="OptionButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
[node name="Sensitivity" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
text = "0.215"
placeholder_text = "0.215"
[node name="Options" type="Button" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Options"
[node name="Quit" type="Button" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Quit"
[node name="VBoxContainer2" type="VBoxContainer" parent="ScrollContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
[connection signal="pressed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/Play" to="." method="_on_play_pressed"]
[connection signal="value_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/QualitySlider" to="." method="_on_quality_slider_value_changed"]
[connection signal="item_selected" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/HBoxContainer/Game" to="." method="_on_game_item_selected"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/HBoxContainer/Sensitivity" to="." method="_on_sensitivity_text_changed"]
[connection signal="pressed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/Options" to="." method="_on_options_pressed"]
[connection signal="pressed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"]

View file

@ -1,133 +0,0 @@
[gd_scene load_steps=3 format=3 uid="uid://cropshnueuiqr"]
[ext_resource type="Script" path="res://scripts/ui/Options.gd" id="1_4ilr3"]
[ext_resource type="Script" path="res://scripts/ui/Crosshair.gd" id="2_iu82h"]
[node name="Options" 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_4ilr3")
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="ScrollContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
[node name="LabelCrosshair" type="Label" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Crosshair"
uppercase = true
[node name="Control" type="Control" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer"]
custom_minimum_size = Vector2(200, 200)
layout_mode = 2
[node name="Crosshair" type="Control" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Control"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("2_iu82h")
[node name="Crosshair" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
button_pressed = true
text = "Crosshair"
[node name="Outline" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
button_pressed = true
text = "Outline"
[node name="CrosshairInner" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
button_pressed = true
text = "Crosshair inner"
[node name="Dot" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
text = "Dot"
[node name="DotSize" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "6"
placeholder_text = "6"
[node name="OutlineSize" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "2"
placeholder_text = "2"
[node name="CrosshairHeight" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "4"
placeholder_text = "4"
[node name="CrosshairWidth" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "12"
placeholder_text = "12"
[node name="CrosshairSpace" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "5"
placeholder_text = "5"
[node name="CrosshairColor" type="ColorPickerButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["PutLabel"]]
layout_mode = 2
text = "Crosshair color"
[node name="OutlineColor" type="ColorPickerButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["PutLabel"]]
layout_mode = 2
text = "Outline color"
[node name="LabelTarget" type="Label" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Target"
uppercase = true
[node name="TargetColor" type="ColorPickerButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer" groups=["PutLabel"]]
layout_mode = 2
text = "Target color"
[node name="Back" type="Button" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Back"
[connection signal="refresh_crosshair" from="." to="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Control/Crosshair" method="_on_options_refresh_crosshair"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Crosshair" to="." method="_on_crosshair_toggled"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Outline" to="." method="_on_outline_toggled"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairInner" to="." method="_on_crosshair_inner_toggled"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Dot" to="." method="_on_dot_toggled"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/DotSize" to="." method="_on_dot_size_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/OutlineSize" to="." method="_on_outline_size_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairHeight" to="." method="_on_crosshair_height_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairWidth" to="." method="_on_crosshair_width_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairSpace" to="." method="_on_crosshair_space_text_changed"]
[connection signal="color_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairColor" to="." method="_on_crosshair_color_color_changed"]
[connection signal="pressed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/Back" to="." method="_on_back_pressed"]

View file

@ -1,133 +0,0 @@
[gd_scene load_steps=3 format=3 uid="uid://cropshnueuiqr"]
[ext_resource type="Script" path="res://scripts/ui/Options.gd" id="1_4ilr3"]
[ext_resource type="Script" path="res://scripts/ui/Crosshair.gd" id="2_iu82h"]
[node name="Options" 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_4ilr3")
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="ScrollContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="ScrollContainer/MarginContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
[node name="LabelCrosshair" type="Label" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Crosshair"
uppercase = true
[node name="Control" type="Control" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer"]
custom_minimum_size = Vector2(200, 200)
layout_mode = 2
[node name="Crosshair" type="Control" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Control"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("2_iu82h")
[node name="Crosshair" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
button_pressed = true
text = "Crosshair"
[node name="Outline" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
button_pressed = true
text = "Outline"
[node name="CrosshairInner" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
button_pressed = true
text = "Crosshair inner"
[node name="Dot" type="CheckButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist"]]
layout_mode = 2
text = "Dot"
[node name="DotSize" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "6"
placeholder_text = "6"
[node name="OutlineSize" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "2"
placeholder_text = "2"
[node name="CrosshairHeight" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "4"
placeholder_text = "4"
[node name="CrosshairWidth" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "12"
placeholder_text = "12"
[node name="CrosshairSpace" type="LineEdit" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["Persist", "PutLabel"]]
layout_mode = 2
text = "5"
placeholder_text = "5"
[node name="CrosshairColor" type="ColorPickerButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["PutLabel"]]
layout_mode = 2
text = "Crosshair color"
[node name="OutlineColor" type="ColorPickerButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer" groups=["PutLabel"]]
layout_mode = 2
text = "Outline color"
[node name="LabelTarget" type="Label" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Target"
uppercase = true
[node name="TargetColor" type="ColorPickerButton" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer" groups=["PutLabel"]]
layout_mode = 2
text = "Target color"
[node name="Back" type="Button" parent="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "Back"
[connection signal="refresh_crosshair" from="." to="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Control/Crosshair" method="_on_options_refresh_crosshair"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Crosshair" to="." method="_on_crosshair_toggled"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Outline" to="." method="_on_outline_toggled"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairInner" to="." method="_on_crosshair_inner_toggled"]
[connection signal="toggled" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/Dot" to="." method="_on_dot_toggled"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/DotSize" to="." method="_on_dot_size_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/OutlineSize" to="." method="_on_outline_size_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairHeight" to="." method="_on_crosshair_height_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairWidth" to="." method="_on_crosshair_width_text_changed"]
[connection signal="text_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairSpace" to="." method="_on_crosshair_space_text_changed"]
[connection signal="color_changed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/VBoxContainer/CrosshairColor" to="." method="_on_crosshair_color_color_changed"]
[connection signal="pressed" from="ScrollContainer/MarginContainer/HBoxContainer/VBoxContainer/Back" to="." method="_on_back_pressed"]