giants-godot/ui/menus/options_menu.tscn

111 lines
2.9 KiB
Plaintext
Raw Normal View History

2021-09-17 15:04:05 +02:00
[gd_scene load_steps=4 format=2]
[ext_resource path="res://ui/ui_theme.tres" type="Theme" id=1]
[ext_resource path="res://assets/all_gbs/textures/chatbox.tga" type="Texture" id=2]
[sub_resource type="GDScript" id=1]
script/source = "extends BaseUI
func _on_Save_pressed():
close()
func _on_VideoOptions_pressed():
enter_ui(preload(\"res://ui/menus/video_settings.tscn\"))
func _on_SoundOptions_pressed():
enter_ui(preload(\"res://ui/menus/sound_settings.tscn\"))
func _on_MeccOptions_pressed():
pass # Replace with function body.
func _on_ReaperOptions_pressed():
enter_ui(preload(\"res://ui/menus/reaper_menu.tscn\"))
func _on_KabutoOptions_pressed():
pass # Replace with function body.
"
2021-09-17 15:04:05 +02:00
[node name="OptionsMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
script = SubResource( 1 )
2021-09-17 15:04:05 +02:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureRect" type="TextureRect" parent="."]
anchor_right = 1.001
anchor_bottom = 0.997
margin_left = -2.0
margin_right = -0.0240479
margin_bottom = -0.200012
texture = ExtResource( 2 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 273.0
margin_top = 30.0
margin_right = -274.0
margin_bottom = -49.0
custom_constants/separation = 30
2021-09-17 15:04:05 +02:00
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VideoOptions" type="Button" parent="VBoxContainer"]
2021-09-17 15:04:05 +02:00
margin_right = 477.0
margin_bottom = 35.0
text = "Graphics settings"
2021-09-17 15:04:05 +02:00
[node name="SoundOptions" type="Button" parent="VBoxContainer"]
margin_top = 65.0
2021-09-17 15:04:05 +02:00
margin_right = 477.0
margin_bottom = 100.0
text = "Sound options"
2021-09-17 15:04:05 +02:00
[node name="MeccOptions" type="Button" parent="VBoxContainer"]
margin_top = 130.0
2021-09-17 15:04:05 +02:00
margin_right = 477.0
margin_bottom = 165.0
disabled = true
text = "Mecc controls"
2021-09-17 15:04:05 +02:00
[node name="ReaperOptions" type="Button" parent="VBoxContainer"]
2021-09-17 15:04:05 +02:00
margin_top = 195.0
margin_right = 477.0
margin_bottom = 230.0
text = "Reaper controls"
2021-09-17 15:04:05 +02:00
[node name="KabutoOptions" type="Button" parent="VBoxContainer"]
margin_top = 260.0
2021-09-17 15:04:05 +02:00
margin_right = 477.0
margin_bottom = 295.0
disabled = true
text = "Kabuto controls"
2021-09-17 15:04:05 +02:00
[node name="Save" type="Button" parent="VBoxContainer"]
margin_top = 325.0
2021-09-17 15:04:05 +02:00
margin_right = 477.0
margin_bottom = 360.0
text = "Close"
2021-09-17 15:04:05 +02:00
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="VBoxContainer/VideoOptions" to="." method="_on_VideoOptions_pressed"]
[connection signal="pressed" from="VBoxContainer/SoundOptions" to="." method="_on_SoundOptions_pressed"]
[connection signal="pressed" from="VBoxContainer/MeccOptions" to="." method="_on_MeccOptions_pressed"]
[connection signal="pressed" from="VBoxContainer/ReaperOptions" to="." method="_on_ReaperOptions_pressed"]
[connection signal="pressed" from="VBoxContainer/KabutoOptions" to="." method="_on_KabutoOptions_pressed"]
2021-09-17 15:04:05 +02:00
[connection signal="pressed" from="VBoxContainer/Save" to="." method="_on_Save_pressed"]