This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
liblast/Game.tscn

322 lines
10 KiB
Plaintext

[gd_scene load_steps=7 format=2]
[ext_resource path="res://GUI/theme.tres" type="Theme" id=1]
[ext_resource path="res://Game.gd" type="Script" id=2]
[ext_resource path="res://Level.tscn" type="PackedScene" id=3]
[ext_resource path="res://GUI/CharacterSelect.tscn" type="PackedScene" id=4]
[sub_resource type="ProceduralSky" id=1]
[sub_resource type="Environment" id=2]
background_mode = 2
background_sky = SubResource( 1 )
tonemap_mode = 2
tonemap_white = 2.0
ss_reflections_enabled = true
ssao_enabled = true
ssao_radius = 2.5
ssao_radius2 = 4.0
ssao_quality = 2
dof_blur_far_distance = 30.0
dof_blur_far_transition = 7.62
dof_blur_far_amount = 0.08
dof_blur_far_quality = 2
dof_blur_near_distance = 1.74
dof_blur_near_transition = 1.15
dof_blur_near_amount = 0.11
dof_blur_near_quality = 2
glow_enabled = true
glow_levels/1 = true
glow_levels/2 = true
glow_levels/4 = true
glow_levels/6 = true
glow_levels/7 = true
glow_intensity = 0.42
glow_strength = 0.4
glow_blend_mode = 0
glow_hdr_threshold = 1.3
glow_bicubic_upscale = true
[node name="Game" type="Node"]
script = ExtResource( 2 )
SERVER_IP = "127.0.0.1"
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 2 )
[node name="Level" parent="." instance=ExtResource( 3 )]
visible = false
[node name="Players" type="Spatial" parent="."]
[node name="MenuContainer" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -0.943848
margin_right = -0.943848
theme = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MainMenu" type="VBoxContainer" parent="MenuContainer"]
margin_left = 312.0
margin_top = 172.0
margin_right = 712.0
margin_bottom = 428.0
rect_min_size = Vector2( 400, 0 )
[node name="Name" type="LineEdit" parent="MenuContainer/MainMenu"]
margin_right = 400.0
margin_bottom = 48.0
placeholder_text = "Enter your name"
[node name="QuickConnect" type="Button" parent="MenuContainer/MainMenu"]
margin_top = 52.0
margin_right = 400.0
margin_bottom = 100.0
rect_min_size = Vector2( 0, 40 )
text = "Quick Connect!"
[node name="Connect" type="Button" parent="MenuContainer/MainMenu"]
margin_top = 104.0
margin_right = 400.0
margin_bottom = 152.0
text = "Connect"
[node name="Disconnect" type="Button" parent="MenuContainer/MainMenu"]
visible = false
margin_top = 24.0
margin_right = 400.0
margin_bottom = 44.0
text = "Disconnect"
[node name="Options" type="Button" parent="MenuContainer/MainMenu"]
margin_top = 156.0
margin_right = 400.0
margin_bottom = 204.0
text = "Options"
[node name="Quit" type="Button" parent="MenuContainer/MainMenu"]
margin_top = 208.0
margin_right = 400.0
margin_bottom = 256.0
text = "Quit"
[node name="CharacterSelectScreen" parent="MenuContainer" instance=ExtResource( 4 )]
visible = false
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 512.0
margin_top = 300.0
margin_right = 512.0
margin_bottom = 300.0
[node name="ConnectMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 142.0
margin_right = 712.0
margin_bottom = 458.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/ConnectMenu"]
margin_right = 400.0
margin_bottom = 20.0
text = "Back"
[node name="Destination" type="HBoxContainer" parent="MenuContainer/ConnectMenu"]
margin_top = 24.0
margin_right = 400.0
margin_bottom = 48.0
[node name="IPAdress" type="LineEdit" parent="MenuContainer/ConnectMenu/Destination"]
margin_right = 278.0
margin_bottom = 24.0
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.38
placeholder_text = "IP address"
caret_blink = true
caret_blink_speed = 0.5
[node name="Port" type="LineEdit" parent="MenuContainer/ConnectMenu/Destination"]
margin_left = 282.0
margin_right = 400.0
margin_bottom = 24.0
size_flags_horizontal = 3
placeholder_text = "port"
caret_blink = true
caret_blink_speed = 0.5
[node name="NetworkType" type="HBoxContainer" parent="MenuContainer/ConnectMenu"]
margin_top = 52.0
margin_right = 400.0
margin_bottom = 72.0
[node name="Host" type="Button" parent="MenuContainer/ConnectMenu/NetworkType"]
margin_right = 130.0
margin_bottom = 20.0
size_flags_horizontal = 3
text = "Host"
[node name="HostAsSpectator" type="Button" parent="MenuContainer/ConnectMenu/NetworkType"]
margin_left = 134.0
margin_right = 265.0
margin_bottom = 20.0
size_flags_horizontal = 3
text = "Host As Spectator"
[node name="Join" type="Button" parent="MenuContainer/ConnectMenu/NetworkType"]
margin_left = 269.0
margin_right = 400.0
margin_bottom = 20.0
size_flags_horizontal = 3
text = "Join"
[node name="HSeparator" type="HSeparator" parent="MenuContainer/ConnectMenu"]
margin_right = 40.0
margin_bottom = 4.0
[node name="Home" type="Button" parent="MenuContainer/ConnectMenu"]
margin_top = 100.0
margin_right = 400.0
margin_bottom = 120.0
text = "Home"
[node name="Unfa" type="Button" parent="MenuContainer/ConnectMenu"]
margin_top = 124.0
margin_right = 400.0
margin_bottom = 144.0
text = "Unfa"
[node name="Jan" type="Button" parent="MenuContainer/ConnectMenu"]
margin_top = 148.0
margin_right = 400.0
margin_bottom = 168.0
text = "Jan"
[node name="OptionsMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 224.0
margin_right = 712.0
margin_bottom = 376.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/OptionsMenu"]
margin_left = 129.0
margin_top = -10.0
margin_right = 171.0
margin_bottom = 10.0
text = "Back"
[node name="Controls" type="Button" parent="MenuContainer/OptionsMenu"]
margin_left = 129.0
margin_top = -10.0
margin_right = 171.0
margin_bottom = 10.0
text = "Controls"
[node name="Graphics" type="Button" parent="MenuContainer/OptionsMenu"]
margin_left = 129.0
margin_top = -10.0
margin_right = 171.0
margin_bottom = 10.0
text = "Graphics"
[node name="ControlsMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 255.0
margin_right = 712.0
margin_bottom = 345.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/ControlsMenu"]
margin_right = 300.0
margin_bottom = 20.0
text = "Back"
[node name="HBoxContainer" type="HBoxContainer" parent="MenuContainer/ControlsMenu"]
margin_right = 40.0
margin_bottom = 40.0
[node name="SensitivityLabel" type="Label" parent="MenuContainer/ControlsMenu/HBoxContainer"]
margin_right = 40.0
margin_bottom = 14.0
text = "Sensitivity"
[node name="SensitivitySlider" type="HSlider" parent="MenuContainer/ControlsMenu/HBoxContainer"]
margin_right = 16.0
margin_bottom = 16.0
size_flags_horizontal = 3
min_value = 0.2
max_value = 5.0
step = 0.0
value = 1.0
exp_edit = true
allow_greater = true
allow_lesser = true
[node name="GraphicsMenu" type="VBoxContainer" parent="MenuContainer"]
visible = false
margin_left = 312.0
margin_top = 250.0
margin_right = 712.0
margin_bottom = 350.0
rect_min_size = Vector2( 400, 0 )
[node name="Back" type="Button" parent="MenuContainer/GraphicsMenu"]
margin_right = 300.0
margin_bottom = 20.0
text = "Back"
[node name="Fullscreen" type="CheckButton" parent="MenuContainer/GraphicsMenu"]
margin_top = 24.0
margin_right = 300.0
margin_bottom = 64.0
text = "Fullscreen"
[node name="PlayerListContainer" type="CenterContainer" parent="."]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Panel" type="Panel" parent="PlayerListContainer"]
margin_left = 262.0
margin_top = 50.0
margin_right = 762.0
margin_bottom = 550.0
rect_min_size = Vector2( 500, 500 )
[node name="PlayerList" type="VBoxContainer" parent="PlayerListContainer/Panel"]
alignment = 1
[connection signal="pressed" from="MenuContainer/MainMenu/QuickConnect" to="." method="join_test_server"]
[connection signal="pressed" from="MenuContainer/MainMenu/Connect" to="." method="open_menu" binds= [ "ConnectMenu" ]]
[connection signal="pressed" from="MenuContainer/MainMenu/Disconnect" to="." method="free_client"]
[connection signal="pressed" from="MenuContainer/MainMenu/Options" to="." method="open_menu" binds= [ "OptionsMenu" ]]
[connection signal="pressed" from="MenuContainer/MainMenu/Quit" to="." method="quit"]
[connection signal="pressed" from="MenuContainer/CharacterSelectScreen/CenterContainer/VBoxContainer/Options/OptionsButton" to="." method="open_menu" binds= [ "OptionsMenu" ]]
[connection signal="pressed" from="MenuContainer/CharacterSelectScreen/CenterContainer/VBoxContainer/Options/DisconnectButton" to="." method="free_client"]
[connection signal="pressed" from="MenuContainer/ConnectMenu/Back" to="." method="return_to_menu" binds= [ "MainMenu" ]]
[connection signal="text_changed" from="MenuContainer/ConnectMenu/Destination/IPAdress" to="." method="set_ip"]
[connection signal="pressed" from="MenuContainer/ConnectMenu/NetworkType/Host" to="." method="initialize_server"]
[connection signal="pressed" from="MenuContainer/ConnectMenu/NetworkType/HostAsSpectator" to="." method="initialize_server" binds= [ false ]]
[connection signal="pressed" from="MenuContainer/ConnectMenu/NetworkType/Join" to="." method="initialize_client"]
[connection signal="pressed" from="MenuContainer/ConnectMenu/Home" to="." method="join_home"]
[connection signal="pressed" from="MenuContainer/ConnectMenu/Unfa" to="." method="join_unfa"]
[connection signal="pressed" from="MenuContainer/ConnectMenu/Jan" to="." method="join_jan"]
[connection signal="pressed" from="MenuContainer/OptionsMenu/Back" to="." method="return_to_menu"]
[connection signal="pressed" from="MenuContainer/OptionsMenu/Controls" to="." method="open_menu" binds= [ "ControlsMenu" ]]
[connection signal="pressed" from="MenuContainer/OptionsMenu/Graphics" to="." method="open_menu" binds= [ "GraphicsMenu" ]]
[connection signal="pressed" from="MenuContainer/ControlsMenu/Back" to="." method="return_to_menu" binds= [ "OptionsMenu" ]]
[connection signal="value_changed" from="MenuContainer/ControlsMenu/HBoxContainer/SensitivitySlider" to="." method="set_mouse_sensitivity"]
[connection signal="pressed" from="MenuContainer/GraphicsMenu/Back" to="." method="return_to_menu" binds= [ "OptionsMenu" ]]
[connection signal="toggled" from="MenuContainer/GraphicsMenu/Fullscreen" to="." method="set_fullscreen"]
[editable path="MenuContainer/CharacterSelectScreen"]