hero-mark-2/objects/hud/options_screen.tscn

554 lines
14 KiB
Text

[gd_scene load_steps=10 format=2]
[ext_resource path="res://objects/hud/options_screen.gd" type="Script" id=1]
[ext_resource path="res://ui/theme.tres" type="Theme" id=2]
[ext_resource path="res://objects/hud/selection_group.gd" type="Script" id=4]
[sub_resource type="StyleBoxFlat" id=6]
content_margin_left = 4.0
content_margin_right = 4.0
content_margin_bottom = 0.0
bg_color = Color( 0.6, 0.6, 0.6, 0 )
border_width_bottom = 1
border_color = Color( 1, 1, 1, 1 )
expand_margin_bottom = 5.0
anti_aliasing = false
[sub_resource type="ButtonGroup" id=1]
[sub_resource type="ButtonGroup" id=7]
[sub_resource type="ButtonGroup" id=3]
[sub_resource type="ButtonGroup" id=4]
[sub_resource type="ButtonGroup" id=5]
[node name="OptionsScreen" type="Control"]
focus_mode = 2
theme = ExtResource( 2 )
script = ExtResource( 1 )
tab_selected_style = SubResource( 6 )
[node name="Panel" type="Panel" parent="."]
margin_left = 8.0
margin_top = 16.0
margin_right = 248.0
margin_bottom = 176.0
[node name="OptionsTitle" type="Label" parent="."]
margin_left = 16.0
margin_top = 24.0
margin_right = 240.0
margin_bottom = 34.0
theme = ExtResource( 2 )
text = "-OPTIONS-"
align = 1
[node name="Tabs" type="TabContainer" parent="."]
margin_left = 16.0
margin_top = 40.0
margin_right = 240.0
margin_bottom = 152.0
theme = ExtResource( 2 )
[node name="Game" type="VBoxContainer" parent="Tabs"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 10.0
focus_neighbour_bottom = NodePath("Rumble")
[node name="Spacer" type="Control" parent="Tabs/Game"]
margin_right = 224.0
margin_bottom = 5.0
rect_min_size = Vector2( 0, 5 )
[node name="Rumble" type="HBoxContainer" parent="Tabs/Game"]
unique_name_in_owner = true
margin_top = 9.0
margin_right = 224.0
margin_bottom = 32.0
rect_min_size = Vector2( 0, 12 )
focus_neighbour_top = NodePath("../../..")
script = ExtResource( 4 )
group = SubResource( 1 )
[node name="Label" type="Label" parent="Tabs/Game/Rumble"]
margin_right = 53.0
margin_bottom = 23.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Rumble:
"
[node name="None" type="Button" parent="Tabs/Game/Rumble"]
margin_left = 69.0
margin_right = 97.0
margin_bottom = 10.0
focus_neighbour_left = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
pressed = true
action_mode = 0
group = SubResource( 1 )
text = "None"
[node name="Normal" type="Button" parent="Tabs/Game/Rumble"]
margin_left = 119.0
margin_right = 161.0
margin_bottom = 10.0
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 1 )
text = "Normal"
[node name="BPM" type="Button" parent="Tabs/Game/Rumble"]
margin_left = 187.0
margin_right = 208.0
margin_bottom = 10.0
focus_neighbour_right = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
custom_colors/font_color_focus = Color( 1, 0, 0, 1 )
toggle_mode = true
action_mode = 0
group = SubResource( 1 )
text = "BPM"
align = 0
[node name="Video" type="VBoxContainer" parent="Tabs"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 10.0
focus_neighbour_bottom = NodePath("Fullscreen")
[node name="Spacer" type="Control" parent="Tabs/Video"]
margin_right = 224.0
margin_bottom = 8.0
rect_min_size = Vector2( 0, 8 )
[node name="Fullscreen" type="HBoxContainer" parent="Tabs/Video"]
unique_name_in_owner = true
margin_top = 12.0
margin_right = 224.0
margin_bottom = 24.0
rect_min_size = Vector2( 0, 12 )
focus_neighbour_top = NodePath("../../..")
focus_neighbour_bottom = NodePath("../WindowSize")
script = ExtResource( 4 )
group = SubResource( 7 )
[node name="Label" type="Label" parent="Tabs/Video/Fullscreen"]
margin_right = 140.0
margin_bottom = 12.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Start in fullscreen:"
[node name="Off" type="Button" parent="Tabs/Video/Fullscreen"]
margin_left = 152.0
margin_right = 173.0
margin_bottom = 10.0
focus_neighbour_left = NodePath(".")
focus_neighbour_right = NodePath("../On")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
pressed = true
action_mode = 0
group = SubResource( 7 )
text = "Off"
[node name="On" type="Button" parent="Tabs/Video/Fullscreen"]
margin_left = 198.0
margin_right = 212.0
margin_bottom = 10.0
focus_neighbour_left = NodePath("../Off")
focus_neighbour_right = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 7 )
text = "on"
[node name="WindowSize" type="HBoxContainer" parent="Tabs/Video"]
unique_name_in_owner = true
margin_top = 28.0
margin_right = 224.0
margin_bottom = 40.0
rect_min_size = Vector2( 0, 12 )
focus_neighbour_top = NodePath("../Fullscreen")
focus_neighbour_bottom = NodePath("../ScalingMode")
script = ExtResource( 4 )
group = SubResource( 3 )
[node name="Label" type="Label" parent="Tabs/Video/WindowSize"]
margin_right = 84.0
margin_bottom = 12.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Window Size:"
[node name="1x" type="Button" parent="Tabs/Video/WindowSize"]
margin_left = 93.0
margin_right = 107.0
margin_bottom = 10.0
focus_neighbour_left = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
pressed = true
action_mode = 0
group = SubResource( 3 )
text = "1x"
[node name="2x" type="Button" parent="Tabs/Video/WindowSize"]
margin_left = 121.0
margin_right = 135.0
margin_bottom = 10.0
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 3 )
text = "2x"
[node name="3x" type="Button" parent="Tabs/Video/WindowSize"]
margin_left = 149.0
margin_right = 163.0
margin_bottom = 10.0
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 3 )
text = "3x"
[node name="4x" type="Button" parent="Tabs/Video/WindowSize"]
margin_left = 177.0
margin_right = 191.0
margin_bottom = 10.0
focus_neighbour_left = NodePath("../3x")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 3 )
text = "4x"
[node name="5x" type="Button" parent="Tabs/Video/WindowSize"]
margin_left = 205.0
margin_right = 219.0
margin_bottom = 10.0
focus_neighbour_right = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 3 )
text = "5x"
[node name="ScalingMode" type="HBoxContainer" parent="Tabs/Video"]
unique_name_in_owner = true
margin_top = 44.0
margin_right = 224.0
margin_bottom = 56.0
rect_min_size = Vector2( 0, 12 )
focus_neighbour_top = NodePath("../WindowSize")
focus_neighbour_bottom = NodePath("../TransitionSpeed")
script = ExtResource( 4 )
group = SubResource( 4 )
[node name="Label" type="Label" parent="Tabs/Video/ScalingMode"]
margin_right = 56.0
margin_bottom = 12.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Scaling:"
[node name="Integer" type="Button" parent="Tabs/Video/ScalingMode"]
margin_left = 61.0
margin_right = 110.0
margin_bottom = 10.0
focus_neighbour_left = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
pressed = true
action_mode = 0
group = SubResource( 4 )
text = "integer"
[node name="Aspect" type="Button" parent="Tabs/Video/ScalingMode"]
margin_left = 121.0
margin_right = 163.0
margin_bottom = 10.0
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 4 )
text = "aspect"
[node name="Stretch" type="Button" parent="Tabs/Video/ScalingMode"]
margin_left = 173.0
margin_right = 222.0
margin_bottom = 10.0
focus_neighbour_right = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 4 )
text = "stretch"
align = 0
[node name="TransitionSpeed" type="HBoxContainer" parent="Tabs/Video"]
unique_name_in_owner = true
margin_top = 60.0
margin_right = 224.0
margin_bottom = 72.0
rect_min_size = Vector2( 0, 12 )
focus_neighbour_top = NodePath("../ScalingMode")
script = ExtResource( 4 )
group = SubResource( 5 )
[node name="Label" type="Label" parent="Tabs/Video/TransitionSpeed"]
margin_right = 77.0
margin_bottom = 12.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Fade speed:"
[node name="None" type="Button" parent="Tabs/Video/TransitionSpeed"]
margin_left = 81.0
margin_right = 109.0
margin_bottom = 10.0
focus_neighbour_left = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 5 )
text = "None"
[node name="Slow" type="Button" parent="Tabs/Video/TransitionSpeed"]
margin_left = 115.0
margin_right = 143.0
margin_bottom = 10.0
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 5 )
text = "slow"
[node name="Medium" type="Button" parent="Tabs/Video/TransitionSpeed"]
margin_left = 148.0
margin_right = 190.0
margin_bottom = 10.0
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
pressed = true
action_mode = 0
group = SubResource( 5 )
text = "Medium"
[node name="Fast" type="Button" parent="Tabs/Video/TransitionSpeed"]
margin_left = 195.0
margin_right = 223.0
margin_bottom = 10.0
focus_neighbour_right = NodePath(".")
size_flags_horizontal = 6
size_flags_vertical = 0
toggle_mode = true
action_mode = 0
group = SubResource( 5 )
text = "Fast"
[node name="Audio" type="VBoxContainer" parent="Tabs"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 10.0
focus_neighbour_bottom = NodePath("MasterVolume/MasterSlider")
[node name="Spacer" type="Control" parent="Tabs/Audio"]
margin_right = 224.0
margin_bottom = 8.0
rect_min_size = Vector2( 0, 8 )
[node name="MasterVolume" type="HBoxContainer" parent="Tabs/Audio"]
margin_top = 12.0
margin_right = 224.0
margin_bottom = 24.0
rect_min_size = Vector2( 0, 12 )
[node name="Label" type="Label" parent="Tabs/Audio/MasterVolume"]
margin_right = 95.0
margin_bottom = 12.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "Master vol.:"
valign = 1
[node name="MasterSlider" type="HSlider" parent="Tabs/Audio/MasterVolume"]
unique_name_in_owner = true
margin_left = 99.0
margin_right = 199.0
margin_bottom = 10.0
rect_min_size = Vector2( 100, 0 )
focus_neighbour_top = NodePath("../../../..")
focus_neighbour_bottom = NodePath("../../MusicVolume/MusicSlider")
size_flags_horizontal = 3
max_value = 1.0
step = 0.05
value = 1.0
scrollable = false
__meta__ = {
"_edit_group_": true
}
[node name="Volume" type="Label" parent="Tabs/Audio/MasterVolume"]
margin_left = 203.0
margin_right = 224.0
margin_bottom = 12.0
size_flags_horizontal = 9
size_flags_vertical = 1
text = "100"
valign = 1
[node name="MusicVolume" type="HBoxContainer" parent="Tabs/Audio"]
margin_top = 28.0
margin_right = 224.0
margin_bottom = 40.0
rect_min_size = Vector2( 0, 12 )
[node name="Label" type="Label" parent="Tabs/Audio/MusicVolume"]
margin_right = 95.0
margin_bottom = 12.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "music vol.:"
valign = 1
[node name="MusicSlider" type="HSlider" parent="Tabs/Audio/MusicVolume"]
unique_name_in_owner = true
margin_left = 99.0
margin_right = 199.0
margin_bottom = 10.0
rect_min_size = Vector2( 100, 0 )
focus_neighbour_top = NodePath("../../MasterVolume/MasterSlider")
focus_neighbour_bottom = NodePath("../../SoundVolume/SoundSlider")
size_flags_horizontal = 3
max_value = 1.0
step = 0.05
value = 1.0
scrollable = false
__meta__ = {
"_edit_group_": true
}
[node name="Volume" type="Label" parent="Tabs/Audio/MusicVolume"]
margin_left = 203.0
margin_right = 224.0
margin_bottom = 12.0
size_flags_horizontal = 9
size_flags_vertical = 1
text = "100"
valign = 1
[node name="SoundVolume" type="HBoxContainer" parent="Tabs/Audio"]
margin_top = 44.0
margin_right = 224.0
margin_bottom = 56.0
rect_min_size = Vector2( 0, 12 )
[node name="Label" type="Label" parent="Tabs/Audio/SoundVolume"]
margin_right = 95.0
margin_bottom = 12.0
size_flags_horizontal = 3
size_flags_vertical = 1
text = "SOund vol.:"
valign = 1
[node name="SoundSlider" type="HSlider" parent="Tabs/Audio/SoundVolume"]
unique_name_in_owner = true
margin_left = 99.0
margin_right = 199.0
margin_bottom = 10.0
rect_min_size = Vector2( 100, 0 )
focus_neighbour_top = NodePath("../../MusicVolume/MusicSlider")
size_flags_horizontal = 3
max_value = 1.0
step = 0.05
value = 1.0
scrollable = false
__meta__ = {
"_edit_group_": true
}
[node name="Volume" type="Label" parent="Tabs/Audio/SoundVolume"]
margin_left = 203.0
margin_right = 224.0
margin_bottom = 12.0
size_flags_horizontal = 9
size_flags_vertical = 1
text = "100"
valign = 1
[node name="HBoxContainer" type="VBoxContainer" parent="."]
margin_left = 16.0
margin_top = 152.0
margin_right = 240.0
margin_bottom = 170.0
theme = ExtResource( 2 )
[node name="Controls" type="Label" parent="HBoxContainer"]
margin_right = 224.0
margin_bottom = 10.0
text = "Z: back, X: apply, C: defaults"
[node name="ConfirmDialog" type="PanelContainer" parent="."]
visible = false
margin_left = 48.0
margin_top = 40.0
margin_right = 208.0
margin_bottom = 88.0
focus_mode = 2
[node name="Label" type="Label" parent="ConfirmDialog"]
margin_left = 3.0
margin_top = 3.0
margin_right = 157.0
margin_bottom = 45.0
size_flags_vertical = 5
text = "Apply Changes?"
align = 1
[node name="Label2" type="Label" parent="ConfirmDialog"]
margin_left = 3.0
margin_top = 20.0
margin_right = 157.0
margin_bottom = 27.0
text = "X: apply, Z: discard"
align = 1
[connection signal="focus_entered" from="." to="." method="_on_tabs_focus_entered"]
[connection signal="focus_exited" from="." to="." method="_on_tabs_focus_exited"]
[connection signal="gui_input" from="OptionsTitle" to="." method="_on_Tabs_gui_input"]
[connection signal="selection_changed" from="Tabs/Game/Rumble" to="." method="_mark_dirty"]
[connection signal="selection_changed" from="Tabs/Video/Fullscreen" to="." method="_mark_dirty"]
[connection signal="selection_changed" from="Tabs/Video/WindowSize" to="." method="_mark_dirty"]
[connection signal="selection_changed" from="Tabs/Video/ScalingMode" to="." method="_mark_dirty"]
[connection signal="selection_changed" from="Tabs/Video/TransitionSpeed" to="." method="_mark_dirty"]
[connection signal="value_changed" from="Tabs/Audio/MasterVolume/MasterSlider" to="." method="_mark_dirty"]
[connection signal="value_changed" from="Tabs/Audio/MusicVolume/MusicSlider" to="." method="_mark_dirty"]
[connection signal="value_changed" from="Tabs/Audio/SoundVolume/SoundSlider" to="." method="_mark_dirty"]
[connection signal="gui_input" from="ConfirmDialog" to="." method="_on_ConfirmDialog_gui_input"]