Settings code rework WIP
This commit is contained in:
@@ -15,6 +15,7 @@ func _ready() -> void:
|
||||
ui_main = get_parent()
|
||||
|
||||
reset() #Initial state
|
||||
menu_button.hide()
|
||||
|
||||
#Connecting signals
|
||||
menu_button.pressed.connect(func():
|
||||
@@ -77,5 +78,5 @@ func _on_main_menu_pressed():
|
||||
func reset():
|
||||
show()
|
||||
#Hiding everything except the menu button
|
||||
for node in [submenu, save, load, settings, menu_button]:
|
||||
for node in [submenu, save, load, settings]:
|
||||
node.hide()
|
||||
|
||||
+120
-1
@@ -1,8 +1,127 @@
|
||||
extends PanelContainer
|
||||
|
||||
@onready var back = $MarginContainer/VBoxContainer/Back
|
||||
|
||||
#Text settings UI nodes
|
||||
@export var text_slider: Node
|
||||
@export var auto_slider: Node
|
||||
@export var text_counter: Node
|
||||
@export var auto_counter: Node
|
||||
@export var autoplay: Node
|
||||
@export var auto_mask: ColorRect
|
||||
|
||||
#Vars and signals for handling text settings
|
||||
var text_speed: float
|
||||
var auto_speed: float
|
||||
var is_auto = false
|
||||
signal text_value_changed
|
||||
signal auto_value_changed
|
||||
|
||||
#Screen settings UI nodes
|
||||
@export var display_button: Node
|
||||
@export var resolution_button: Node
|
||||
var screen_size = DisplayServer.screen_get_size(DisplayServer.window_get_current_screen()) #Computer screen size
|
||||
var resolution_size = DisplayServer.screen_get_size(DisplayServer.window_get_current_screen()) #Used for changing screen resolution
|
||||
var resolution_list: Dictionary = {
|
||||
0: Vector2i(800,600),
|
||||
1: Vector2i(1024,768),
|
||||
2: Vector2i(1280,720),
|
||||
3: Vector2i(1366,768),
|
||||
4: Vector2i(1440,900),
|
||||
5: Vector2i(1600,900),
|
||||
6: Vector2i(1680,1050),
|
||||
7: Vector2i(1920,1080)
|
||||
}
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
||||
back.pressed.connect(func(): self.hide()) #Back button
|
||||
|
||||
#Text settings
|
||||
#Signals
|
||||
text_slider.value_changed.connect(self._on_text_value_changed)
|
||||
auto_slider.value_changed.connect(self._on_auto_value_changed)
|
||||
autoplay.pressed.connect(self._on_autoplay_pressed)
|
||||
#Setup
|
||||
text_speed = 0.1 / text_slider.value
|
||||
auto_speed = 0.4 * auto_slider.value
|
||||
text_counter.text = "[center]" + str(snapped((text_speed * 1000), 1)) + " ms/letter[/center]"
|
||||
auto_counter.text = "[center]" + str(snapped(auto_speed, 0.01)) + " s delay[/center]"
|
||||
#Autoplay
|
||||
autoplay.button_pressed = false
|
||||
auto_mask.show()
|
||||
|
||||
#Screen settings
|
||||
#Signals
|
||||
display_button.item_selected.connect(self._on_display_selected)
|
||||
resolution_button.item_selected.connect(self._on_resolution_selected)
|
||||
#Setup
|
||||
for index in resolution_list:
|
||||
var item_text = str(resolution_list[index].x) + "x" + str(resolution_list[index].y)
|
||||
resolution_button.add_item(item_text, index)
|
||||
resolution_button.select(resolution_list.find_key(screen_size)) #Selects the computer resolution as initial screen resolution
|
||||
|
||||
|
||||
#Changes text_speed value
|
||||
func _on_text_value_changed(new_value: float):
|
||||
text_speed = 0.1 / new_value
|
||||
text_counter.text = "[center]" + str(snapped((text_speed * 1000), 1)) + " ms/letter[/center]"
|
||||
text_value_changed.emit()
|
||||
|
||||
|
||||
#Changes auto_speed value
|
||||
func _on_auto_value_changed(new_value: float):
|
||||
auto_speed = 0.4 * new_value
|
||||
auto_counter.text = "[center]" + str(snapped(auto_speed, 0.01)) + " s delay[/center]"
|
||||
auto_value_changed.emit()
|
||||
|
||||
|
||||
#Toggles auto-advance
|
||||
func _on_autoplay_pressed():
|
||||
if autoplay.button_pressed:
|
||||
is_auto = true
|
||||
auto_mask.hide()
|
||||
else:
|
||||
is_auto = false
|
||||
auto_mask.show()
|
||||
|
||||
|
||||
#Shows selected display
|
||||
func _on_display_selected(index: int):
|
||||
match index:
|
||||
0: #Windowed mode
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
|
||||
DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_BORDERLESS, false)
|
||||
|
||||
#Puts the windowed screen in the center of the computer's screen
|
||||
var screen_center = screen_size / 2
|
||||
var top_left = screen_center - (resolution_size / 2)
|
||||
|
||||
DisplayServer.window_set_size(resolution_size)
|
||||
await get_tree().process_frame #Waits process_frame to avoid bugs
|
||||
DisplayServer.window_set_position(top_left)
|
||||
|
||||
1: #Borderless mode
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MAXIMIZED)
|
||||
DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_BORDERLESS, true)
|
||||
2: #Fullscreen mode
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
|
||||
print("window setting changed")
|
||||
|
||||
|
||||
#Shows selected resolution
|
||||
func _on_resolution_selected(index: int):
|
||||
resolution_size = resolution_list.get(index)
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
|
||||
DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_BORDERLESS, false)
|
||||
|
||||
#Puts the windowed screen in the center of the computer's screen
|
||||
var screen_center = screen_size / 2
|
||||
var top_left = screen_center - (resolution_size / 2)
|
||||
|
||||
DisplayServer.window_set_size(resolution_size)
|
||||
await get_tree().process_frame #Waits process_frame to avoid bugs
|
||||
DisplayServer.window_set_position(top_left)
|
||||
|
||||
|
||||
+6
-112
@@ -8,6 +8,9 @@ extends CanvasLayer
|
||||
#GameOver Scenes
|
||||
@onready var its_game_over = $ITSGameOverControl
|
||||
|
||||
#Preloading Confirmation dialog
|
||||
var confirmation_dialog = preload("res://Scenes/UI/confirmation_dialog.tscn")
|
||||
|
||||
#Signals for saving and loading
|
||||
signal save_slot_pressed(save_slot_number: int)
|
||||
signal load_slot_pressed(load_slot_number: int)
|
||||
@@ -15,65 +18,17 @@ signal load_slot_pressed(load_slot_number: int)
|
||||
#Signal for going back to main menu
|
||||
signal main_menu_pressed
|
||||
|
||||
#Preloading Confirmation dialog
|
||||
var confirmation_dialog = preload("res://Scenes/UI/confirmation_dialog.tscn")
|
||||
|
||||
#Text settings UI nodes
|
||||
@export var text_slider: Node
|
||||
@export var auto_slider: Node
|
||||
@export var text_counter: Node
|
||||
@export var auto_counter: Node
|
||||
@export var autoplay: Node
|
||||
@export var auto_mask: ColorRect
|
||||
|
||||
#Vars and signals for handling text settings
|
||||
var text_speed: float
|
||||
var auto_speed: float
|
||||
var is_auto = false
|
||||
#Signals for handling text settings
|
||||
signal text_value_changed
|
||||
signal auto_value_changed
|
||||
|
||||
#Screen settings UI nodes
|
||||
@export var display_button: Node
|
||||
@export var resolution_button: Node
|
||||
var screen_size = DisplayServer.screen_get_size(DisplayServer.window_get_current_screen()) #Computer screen size
|
||||
var resolution_size = DisplayServer.screen_get_size(DisplayServer.window_get_current_screen()) #Used for changing screen resolution
|
||||
var resolution_list: Dictionary = {
|
||||
0: Vector2i(800,600),
|
||||
1: Vector2i(1024,768),
|
||||
2: Vector2i(1280,720),
|
||||
3: Vector2i(1366,768),
|
||||
4: Vector2i(1440,900),
|
||||
5: Vector2i(1600,900),
|
||||
6: Vector2i(1680,1050),
|
||||
7: Vector2i(1920,1080)
|
||||
}
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
||||
#Connecting signals
|
||||
#Text settings signals
|
||||
text_slider.value_changed.connect(_on_text_value_changed)
|
||||
auto_slider.value_changed.connect(_on_auto_value_changed)
|
||||
autoplay.pressed.connect(_on_autoplay_pressed)
|
||||
|
||||
text_speed = 0.1 / text_slider.value
|
||||
auto_speed = 0.4 * auto_slider.value
|
||||
text_counter.text = "[center]" + str(snapped((text_speed * 1000), 1)) + " ms/letter[/center]"
|
||||
auto_counter.text = "[center]" + str(snapped(auto_speed, 0.01)) + " s delay[/center]"
|
||||
|
||||
#Initializes the auto-advance to false
|
||||
autoplay.button_pressed = false
|
||||
auto_mask.hide()
|
||||
|
||||
#Screen settings signals and initialization
|
||||
display_button.item_selected.connect(_on_display_selected)
|
||||
resolution_button.item_selected.connect(_on_resolution_selected)
|
||||
for index in resolution_list:
|
||||
var item_text = str(resolution_list[index].x) + "x" + str(resolution_list[index].y)
|
||||
resolution_button.add_item(item_text, index)
|
||||
resolution_button.select(resolution_list.find_key(screen_size)) #Selects the computer resolution as initial screen resolution
|
||||
pause_menu.settings.text_value_changed.connect(func(): text_value_changed.emit())
|
||||
pause_menu.settings.auto_value_changed.connect(func(): auto_value_changed.emit())
|
||||
|
||||
#Hiding everything at start
|
||||
confirmation_mask.hide()
|
||||
@@ -106,65 +61,4 @@ func ask_confirmation(function_yes: Callable, function_no: Callable, choice_text
|
||||
|
||||
choice_dialog.show()
|
||||
confirmation_mask.show()
|
||||
|
||||
|
||||
#Changes text_speed value
|
||||
func _on_text_value_changed(new_value: float):
|
||||
text_speed = 0.1 / new_value
|
||||
text_counter.text = "[center]" + str(snapped((text_speed * 1000), 1)) + " ms/letter[/center]"
|
||||
text_value_changed.emit()
|
||||
|
||||
|
||||
#Changes auto_speed value
|
||||
func _on_auto_value_changed(new_value: float):
|
||||
auto_speed = 0.4 * new_value
|
||||
auto_counter.text = "[center]" + str(snapped(auto_speed, 0.01)) + " s delay[/center]"
|
||||
auto_value_changed.emit()
|
||||
|
||||
|
||||
#Toggles auto-advance
|
||||
func _on_autoplay_pressed():
|
||||
if autoplay.button_pressed:
|
||||
is_auto = true
|
||||
auto_mask.visible = false
|
||||
else:
|
||||
is_auto = false
|
||||
auto_mask.visible = true
|
||||
|
||||
|
||||
#Shows selected display
|
||||
func _on_display_selected(index: int):
|
||||
match index:
|
||||
0:
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
|
||||
DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_BORDERLESS, false)
|
||||
|
||||
#Puts the windowed screen in the center of the computer's screen
|
||||
var screen_center = screen_size / 2
|
||||
var top_left = screen_center - (resolution_size / 2)
|
||||
|
||||
DisplayServer.window_set_size(resolution_size)
|
||||
await get_tree().process_frame #Waits process_frame to avoid bugs
|
||||
DisplayServer.window_set_position(top_left)
|
||||
1:
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_MAXIMIZED)
|
||||
DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_BORDERLESS, true)
|
||||
2:
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
|
||||
print("window setting changed")
|
||||
|
||||
|
||||
#Shows selected resolution
|
||||
func _on_resolution_selected(index: int):
|
||||
resolution_size = resolution_list.get(index)
|
||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
|
||||
DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_BORDERLESS, false)
|
||||
|
||||
#Puts the windowed screen in the center of the computer's screen
|
||||
var screen_center = screen_size / 2
|
||||
var top_left = screen_center - (resolution_size / 2)
|
||||
|
||||
DisplayServer.window_set_size(resolution_size)
|
||||
await get_tree().process_frame #Waits process_frame to avoid bugs
|
||||
DisplayServer.window_set_position(top_left)
|
||||
|
||||
|
||||
+39
-11
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=27 format=3 uid="uid://dy40jygog8t3k"]
|
||||
[gd_scene load_steps=29 format=3 uid="uid://dy40jygog8t3k"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c0q67t6m1i4dl" path="res://Scenes/UI/ui.gd" id="1_mg12k"]
|
||||
[ext_resource type="FontFile" uid="uid://dv8ppra5tgn1t" path="res://Art/Fonts/PixelatedEleganceRegular-ovyAA.ttf" id="2_vb7na"]
|
||||
@@ -73,6 +73,26 @@ border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_h6tq4"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.78431374, 0.78431374, 0.78431374, 1)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_t7te2"]
|
||||
bg_color = Color(0.78431374, 0.78431374, 0.78431374, 1)
|
||||
border_color = Color(1, 1, 1, 1)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[sub_resource type="Theme" id="Theme_27bfm"]
|
||||
default_font_size = 18
|
||||
OptionButton/fonts/font = null
|
||||
@@ -164,17 +184,9 @@ shader = ExtResource("5_duuxe")
|
||||
shader_parameter/progress = 0.0
|
||||
shader_parameter/softness = 0.05
|
||||
|
||||
[node name="UILayer" type="CanvasLayer" node_paths=PackedStringArray("text_slider", "auto_slider", "text_counter", "auto_counter", "autoplay", "auto_mask", "display_button", "resolution_button")]
|
||||
[node name="UILayer" type="CanvasLayer"]
|
||||
layer = 100
|
||||
script = ExtResource("1_mg12k")
|
||||
text_slider = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed/TextSlider")
|
||||
auto_slider = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed/AutoSlider")
|
||||
text_counter = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed/TextCounter")
|
||||
auto_counter = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed/AutoCounter")
|
||||
autoplay = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/AutoPlay/AutoPlayCheckBox")
|
||||
auto_mask = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoMask")
|
||||
display_button = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Display/DisplayButton")
|
||||
resolution_button = NodePath("PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Resolution/ResolutionButton")
|
||||
|
||||
[node name="Masks" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
@@ -470,7 +482,7 @@ theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "BACK"
|
||||
|
||||
[node name="Settings" type="PanelContainer" parent="PauseMenu"]
|
||||
[node name="Settings" type="PanelContainer" parent="PauseMenu" node_paths=PackedStringArray("text_slider", "auto_slider", "text_counter", "auto_counter", "autoplay", "auto_mask", "display_button", "resolution_button")]
|
||||
z_index = 1
|
||||
custom_minimum_size = Vector2(1600, 600)
|
||||
layout_mode = 1
|
||||
@@ -487,6 +499,14 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fo2i3")
|
||||
script = ExtResource("9_h6tq4")
|
||||
text_slider = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed/TextSlider")
|
||||
auto_slider = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed/AutoSlider")
|
||||
text_counter = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed/TextCounter")
|
||||
auto_counter = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed/AutoCounter")
|
||||
autoplay = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/AutoPlay/AutoPlayCheckBox")
|
||||
auto_mask = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoMask")
|
||||
display_button = NodePath("MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Display/DisplayButton")
|
||||
resolution_button = NodePath("MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Resolution/ResolutionButton")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="PauseMenu/Settings"]
|
||||
layout_mode = 2
|
||||
@@ -556,6 +576,7 @@ theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "TYPING SPEED"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="TextSlider" type="HSlider" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed"]
|
||||
layout_mode = 2
|
||||
@@ -599,6 +620,7 @@ theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "AUTO DELAY"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AutoSlider" type="HSlider" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed"]
|
||||
layout_mode = 2
|
||||
@@ -642,10 +664,16 @@ theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "AUTOPLAY"
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AutoPlayCheckBox" type="CheckBox" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/AutoPlay"]
|
||||
custom_minimum_size = Vector2(25, 25)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_h6tq4")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_t7te2")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_t7te2")
|
||||
|
||||
[node name="ScreenContainer" type="MarginContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
@@ -0,0 +1,876 @@
|
||||
[gd_scene load_steps=27 format=3 uid="uid://dy40jygog8t3k"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c0q67t6m1i4dl" path="res://Scenes/UI/ui.gd" id="1_mg12k"]
|
||||
[ext_resource type="FontFile" uid="uid://dv8ppra5tgn1t" path="res://Art/Fonts/PixelatedEleganceRegular-ovyAA.ttf" id="2_vb7na"]
|
||||
[ext_resource type="Texture2D" uid="uid://l7786mlmvet8" path="res://Art/UI/menu_gear.png" id="3_ibj64"]
|
||||
[ext_resource type="Script" uid="uid://bru53a1mvu0t2" path="res://Scenes/UI/its_game_over_control.gd" id="4_duuxe"]
|
||||
[ext_resource type="Script" uid="uid://dxyi7st0g4hdf" path="res://Scenes/UI/pause_menu.gd" id="4_s3gqk"]
|
||||
[ext_resource type="Shader" uid="uid://n2f3kv6b7k2o" path="res://Scenes/UI/its_game_over.gdshader" id="5_duuxe"]
|
||||
[ext_resource type="Script" uid="uid://cvcuwg4hha1vr" path="res://Scenes/UI/submenu.gd" id="5_pmm6b"]
|
||||
[ext_resource type="Texture2D" uid="uid://qodbgs7d5mqs" path="res://Art/UI/its_game_over.png" id="6_duuxe"]
|
||||
[ext_resource type="Script" uid="uid://cjft0c0ui8yhs" path="res://Scenes/UI/its_game_over_background.gd" id="6_jfwrg"]
|
||||
[ext_resource type="Script" uid="uid://d2f2qod8t0umo" path="res://Scenes/UI/save.gd" id="7_vy225"]
|
||||
[ext_resource type="Script" uid="uid://c7lc7t6801rls" path="res://Scenes/UI/load.gd" id="8_fy0us"]
|
||||
[ext_resource type="Script" uid="uid://be2ypveoa0hf5" path="res://Scenes/UI/masks.gd" id="8_mbl0m"]
|
||||
[ext_resource type="Script" uid="uid://c7r7iaoghw8lh" path="res://Scenes/UI/settings.gd" id="9_h6tq4"]
|
||||
[ext_resource type="Script" uid="uid://dbjei4d2lfwnb" path="res://Scenes/UI/fading_mask.gd" id="9_s3gqk"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_n85x3"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("FadingMask:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(0, 0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_20bx3"]
|
||||
resource_name = "fade_to_black"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("FadingMask:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_in743"]
|
||||
resource_name = "fade_to_normal"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("FadingMask:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_5yx4m"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_n85x3"),
|
||||
&"fade_in": SubResource("Animation_20bx3"),
|
||||
&"fade_out": SubResource("Animation_in743")
|
||||
}
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fo2i3"]
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
|
||||
[sub_resource type="Theme" id="Theme_27bfm"]
|
||||
default_font_size = 18
|
||||
OptionButton/fonts/font = null
|
||||
|
||||
[sub_resource type="Theme" id="Theme_k8uqd"]
|
||||
default_font = ExtResource("2_vb7na")
|
||||
default_font_size = 16
|
||||
OptionButton/fonts/font = ExtResource("2_vb7na")
|
||||
|
||||
[sub_resource type="Theme" id="Theme_mbl0m"]
|
||||
Button/font_sizes/font_size = 30
|
||||
Button/fonts/font = ExtResource("2_vb7na")
|
||||
RichTextLabel/fonts/normal_font = ExtResource("2_vb7na")
|
||||
|
||||
[sub_resource type="Animation" id="Animation_duuxe"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("HBoxContainer/ReloadCheckpoint: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)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("HBoxContainer/BackToMainMenu:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_jfwrg"]
|
||||
resource_name = "fade_in"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Message:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("HBoxContainer/ReloadCheckpoint:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("HBoxContainer/BackToMainMenu:modulate")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mbl0m"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_duuxe"),
|
||||
&"fade_in": SubResource("Animation_jfwrg")
|
||||
}
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_duuxe"]
|
||||
shader = ExtResource("5_duuxe")
|
||||
shader_parameter/progress = 0.0
|
||||
shader_parameter/softness = 0.05
|
||||
|
||||
[node name="UILayer" type="CanvasLayer"]
|
||||
layer = 100
|
||||
script = ExtResource("1_mg12k")
|
||||
|
||||
[node name="Masks" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("8_mbl0m")
|
||||
|
||||
[node name="FadingMask" type="ColorRect" parent="Masks"]
|
||||
modulate = Color(0, 0, 0, 0)
|
||||
z_index = 13
|
||||
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)
|
||||
script = ExtResource("9_s3gqk")
|
||||
|
||||
[node name="FadingMaskAnimation" type="AnimationPlayer" parent="Masks/FadingMask"]
|
||||
root_node = NodePath("../..")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_5yx4m")
|
||||
}
|
||||
|
||||
[node name="Mask" type="ColorRect" parent="Masks"]
|
||||
visible = false
|
||||
z_index = 11
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_force_pass_scroll_events = false
|
||||
color = Color(0, 0, 0, 0.470588)
|
||||
|
||||
[node name="PauseMenu" type="Control" parent="."]
|
||||
z_index = 12
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("4_s3gqk")
|
||||
|
||||
[node name="Submenu" type="PanelContainer" parent="PauseMenu"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -125.0
|
||||
offset_top = -200.0
|
||||
offset_right = 125.0
|
||||
offset_bottom = 200.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fo2i3")
|
||||
script = ExtResource("5_pmm6b")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="PauseMenu/Submenu"]
|
||||
layout_mode = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PauseMenu/Submenu"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 25
|
||||
theme_override_constants/margin_top = 25
|
||||
theme_override_constants/margin_right = 25
|
||||
theme_override_constants/margin_bottom = 25
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Submenu/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Resume" type="Button" parent="PauseMenu/Submenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "RESUME"
|
||||
|
||||
[node name="Save" type="Button" parent="PauseMenu/Submenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "SAVE"
|
||||
|
||||
[node name="Load" type="Button" parent="PauseMenu/Submenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "LOAD"
|
||||
|
||||
[node name="Settings" type="Button" parent="PauseMenu/Submenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "SETTINGS"
|
||||
|
||||
[node name="MainMenu" type="Button" parent="PauseMenu/Submenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "MAIN MENU"
|
||||
|
||||
[node name="Quit" type="Button" parent="PauseMenu/Submenu/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "QUIT GAME"
|
||||
|
||||
[node name="Save" type="PanelContainer" parent="PauseMenu"]
|
||||
z_index = 1
|
||||
custom_minimum_size = Vector2(0, 700)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -354.5
|
||||
offset_right = 200.0
|
||||
offset_bottom = 354.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fo2i3")
|
||||
script = ExtResource("7_vy225")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="PauseMenu/Save"]
|
||||
layout_mode = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PauseMenu/Save"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 25
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 25
|
||||
theme_override_constants/margin_bottom = 0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Save/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 30
|
||||
bbcode_enabled = true
|
||||
text = "
|
||||
[center]SAVE GAME[/center]"
|
||||
|
||||
[node name="AutoSaveSlot" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 200)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="SaveSlot1" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="SaveSlot2" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="SaveSlot3" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="SaveSlot4" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="Back" type="Button" parent="PauseMenu/Save/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(80, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 6
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "BACK"
|
||||
|
||||
[node name="Load" type="PanelContainer" parent="PauseMenu"]
|
||||
visible = false
|
||||
z_index = 1
|
||||
custom_minimum_size = Vector2(0, 700)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -300.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 300.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fo2i3")
|
||||
script = ExtResource("8_fy0us")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="PauseMenu/Load"]
|
||||
layout_mode = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PauseMenu/Load"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 25
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 25
|
||||
theme_override_constants/margin_bottom = 0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Load/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 30
|
||||
bbcode_enabled = true
|
||||
text = "
|
||||
[center]LOAD GAME[/center]"
|
||||
|
||||
[node name="AutoSaveSlot" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 200)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="LoadSlot1" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="LoadSlot2" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="LoadSlot3" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="LoadSlot4" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 27
|
||||
text = "EMPTY"
|
||||
|
||||
[node name="Back" type="Button" parent="PauseMenu/Load/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(80, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 6
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "BACK"
|
||||
|
||||
[node name="Settings" type="PanelContainer" parent="PauseMenu" node_paths=PackedStringArray("text_slider", "auto_slider", "text_counter", "auto_counter", "autoplay", "auto_mask", "display_button", "resolution_button")]
|
||||
z_index = 1
|
||||
custom_minimum_size = Vector2(1600, 600)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -300.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 300.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_fo2i3")
|
||||
script = ExtResource("9_h6tq4")
|
||||
text_slider = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed/TextSlider")
|
||||
auto_slider = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed/AutoSlider")
|
||||
text_counter = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed/TextCounter")
|
||||
auto_counter = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed/AutoCounter")
|
||||
autoplay = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/AutoPlay/AutoPlayCheckBox")
|
||||
auto_mask = NodePath("MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoMask")
|
||||
display_button = NodePath("MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Display/DisplayButton")
|
||||
resolution_button = NodePath("MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Resolution/ResolutionButton")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="PauseMenu/Settings"]
|
||||
layout_mode = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PauseMenu/Settings"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 20
|
||||
theme_override_constants/margin_top = 50
|
||||
theme_override_constants/margin_right = 20
|
||||
theme_override_constants/margin_bottom = 50
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Settings/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 40
|
||||
|
||||
[node name="Settings" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 35
|
||||
bbcode_enabled = true
|
||||
text = "[center]SETTINGS[/center]"
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 5.0
|
||||
columns = 3
|
||||
|
||||
[node name="DialogueContainer" type="MarginContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DialogueOptions" type="MarginContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 25
|
||||
bbcode_enabled = true
|
||||
text = "[center]DIALOGUE[/center]"
|
||||
|
||||
[node name="TextSpeed" type="HBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed"]
|
||||
custom_minimum_size = Vector2(160, 28)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "TYPING SPEED"
|
||||
|
||||
[node name="TextSlider" type="HSlider" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 4.0
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 5.0
|
||||
tick_count = 10
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="TextCounter" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed"]
|
||||
custom_minimum_size = Vector2(150, 25)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="Control" type="Control" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AutoSpeed" type="HBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed"]
|
||||
custom_minimum_size = Vector2(160, 25)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "AUTO DELAY"
|
||||
|
||||
[node name="AutoSlider" type="HSlider" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 4.0
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 5.0
|
||||
tick_count = 10
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="AutoCounter" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control/AutoSpeed"]
|
||||
custom_minimum_size = Vector2(150, 25)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="AutoMask" type="ColorRect" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/Control"]
|
||||
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, 0.784314)
|
||||
|
||||
[node name="AutoPlay" type="HBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/AutoPlay"]
|
||||
custom_minimum_size = Vector2(160, 25)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "AUTOPLAY"
|
||||
|
||||
[node name="AutoPlayCheckBox" type="CheckBox" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/DialogueContainer/VBoxContainer2/DialogueOptions/VBoxContainer/AutoPlay"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="ScreenContainer" type="MarginContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ScreenSettings" type="MarginContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 25
|
||||
bbcode_enabled = true
|
||||
text = "[center]SCREEN[/center]"
|
||||
|
||||
[node name="Display" type="HBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Display"]
|
||||
custom_minimum_size = Vector2(140, 28)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "DISPLAY"
|
||||
|
||||
[node name="DisplayButton" type="OptionButton" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Display"]
|
||||
custom_minimum_size = Vector2(250, 0)
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_27bfm")
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 16
|
||||
selected = 2
|
||||
item_count = 3
|
||||
popup/item_0/text = "WINDOWED"
|
||||
popup/item_0/id = 0
|
||||
popup/item_1/text = "WINDOWED FULLSCREEN"
|
||||
popup/item_1/id = 1
|
||||
popup/item_2/text = "FULLSCREEN"
|
||||
popup/item_2/id = 2
|
||||
|
||||
[node name="Resolution" type="HBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Resolution"]
|
||||
custom_minimum_size = Vector2(140, 28)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "RESOLUTION"
|
||||
|
||||
[node name="ResolutionButton" type="OptionButton" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/ScreenContainer/VBoxContainer2/ScreenSettings/VBoxContainer/Resolution"]
|
||||
custom_minimum_size = Vector2(250, 0)
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_k8uqd")
|
||||
|
||||
[node name="SoundContainer" type="MarginContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DialogueOptions" type="MarginContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer/VBoxContainer2"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer/VBoxContainer2/DialogueOptions"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer/VBoxContainer2/DialogueOptions/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 25
|
||||
bbcode_enabled = true
|
||||
text = "[center]AUDIO[/center]"
|
||||
|
||||
[node name="TextSpeed" type="HBoxContainer" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer/VBoxContainer2/DialogueOptions/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 50)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed"]
|
||||
custom_minimum_size = Vector2(140, 28)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
text = "MASTER"
|
||||
|
||||
[node name="MasterVolume" type="HSlider" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 1
|
||||
size_flags_stretch_ratio = 4.0
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 5.0
|
||||
tick_count = 10
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="MasterCounter" type="RichTextLabel" parent="PauseMenu/Settings/MarginContainer/VBoxContainer/GridContainer/SoundContainer/VBoxContainer2/DialogueOptions/VBoxContainer/TextSpeed"]
|
||||
custom_minimum_size = Vector2(150, 25)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
theme_override_fonts/normal_font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/normal_font_size = 16
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="Back" type="Button" parent="PauseMenu/Settings/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(80, 40)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 6
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "BACK"
|
||||
|
||||
[node name="MenuButton" type="Button" parent="PauseMenu"]
|
||||
custom_minimum_size = Vector2(0, 80)
|
||||
layout_mode = 1
|
||||
offset_right = 80.0
|
||||
offset_bottom = 85.0
|
||||
theme_override_fonts/font = ExtResource("2_vb7na")
|
||||
theme_override_font_sizes/font_size = 30
|
||||
theme_override_icons/icon = ExtResource("3_ibj64")
|
||||
|
||||
[node name="ConfirmationMask" type="ColorRect" parent="."]
|
||||
visible = false
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_force_pass_scroll_events = false
|
||||
color = Color(0, 0, 0, 0.784314)
|
||||
|
||||
[node name="ITSGameOverControl" type="Control" parent="."]
|
||||
visible = false
|
||||
z_index = 12
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme = SubResource("Theme_mbl0m")
|
||||
script = ExtResource("4_duuxe")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="ITSGameOverControl"]
|
||||
root_node = NodePath("../UI")
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_mbl0m")
|
||||
}
|
||||
|
||||
[node name="Background" type="TextureRect" parent="ITSGameOverControl"]
|
||||
material = SubResource("ShaderMaterial_duuxe")
|
||||
layout_mode = 0
|
||||
offset_right = 1920.0
|
||||
offset_bottom = 1080.0
|
||||
texture = ExtResource("6_duuxe")
|
||||
script = ExtResource("6_jfwrg")
|
||||
|
||||
[node name="UI" type="VBoxContainer" parent="ITSGameOverControl"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -625.0
|
||||
offset_top = -175.0
|
||||
offset_right = 625.0
|
||||
offset_bottom = 175.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 100
|
||||
alignment = 1
|
||||
|
||||
[node name="Message" type="RichTextLabel" parent="ITSGameOverControl/UI"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
custom_minimum_size = Vector2(200, 150)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/normal_font_size = 100
|
||||
bbcode_enabled = true
|
||||
text = "[color=dark_red]IT HAS YOU...[/color]"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="ITSGameOverControl/UI"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 50
|
||||
alignment = 1
|
||||
|
||||
[node name="ReloadCheckpoint" type="Button" parent="ITSGameOverControl/UI/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(600, 100)
|
||||
layout_mode = 2
|
||||
text = "RELOAD LATEST CHECKPOINT"
|
||||
|
||||
[node name="BackToMainMenu" type="Button" parent="ITSGameOverControl/UI/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(600, 100)
|
||||
layout_mode = 2
|
||||
text = "BACK TO MAIN MENU"
|
||||
Reference in New Issue
Block a user