giants-godot/ui/menus/options_menu.tscn

111 lines
2.9 KiB
Plaintext

[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.
"
[node name="OptionsMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
script = SubResource( 1 )
__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
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VideoOptions" type="Button" parent="VBoxContainer"]
margin_right = 477.0
margin_bottom = 35.0
text = "Graphics settings"
[node name="SoundOptions" type="Button" parent="VBoxContainer"]
margin_top = 65.0
margin_right = 477.0
margin_bottom = 100.0
text = "Sound options"
[node name="MeccOptions" type="Button" parent="VBoxContainer"]
margin_top = 130.0
margin_right = 477.0
margin_bottom = 165.0
disabled = true
text = "Mecc controls"
[node name="ReaperOptions" type="Button" parent="VBoxContainer"]
margin_top = 195.0
margin_right = 477.0
margin_bottom = 230.0
text = "Reaper controls"
[node name="KabutoOptions" type="Button" parent="VBoxContainer"]
margin_top = 260.0
margin_right = 477.0
margin_bottom = 295.0
disabled = true
text = "Kabuto controls"
[node name="Save" type="Button" parent="VBoxContainer"]
margin_top = 325.0
margin_right = 477.0
margin_bottom = 360.0
text = "Close"
__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"]
[connection signal="pressed" from="VBoxContainer/Save" to="." method="_on_Save_pressed"]