-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMain.tscn
174 lines (142 loc) · 6.41 KB
/
Main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[gd_scene load_steps=11 format=3 uid="uid://denbhipr26x6c"]
[ext_resource type="Script" uid="uid://djl37ucyvmcxl" path="res://quickoptionsmenu.gd" id="1_8ecn3"]
[ext_resource type="PackedScene" uid="uid://dhd8tliyhvtiw" path="res://controlplayer.tscn" id="2"]
[ext_resource type="Texture2D" uid="uid://cylf2rhw3gp0e" path="res://moonlow/_albedo.png" id="2_ycy4d"]
[ext_resource type="PackedScene" uid="uid://cfmoahalri06d" path="res://addons/player-networking/NetworkGateway.tscn" id="3"]
[ext_resource type="Texture2D" uid="uid://baeyk5co8xxrj" path="res://moonlow/_normal.png" id="3_1a6vp"]
[ext_resource type="Script" uid="uid://bm1kgq8280lgs" path="res://syncobjects.gd" id="6_jvykx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_31q8f"]
bg_color = Color(0.6, 0.6, 0.0588235, 1)
[sub_resource type="CanvasTexture" id="CanvasTexture_t3x1q"]
diffuse_texture = ExtResource("2_ycy4d")
normal_texture = ExtResource("3_1a6vp")
specular_shininess = 0.0
[sub_resource type="Gradient" id="Gradient_tb38i"]
colors = PackedColorArray(0, 0, 0, 0.388235, 1, 1, 1, 0.47451)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_d7327"]
gradient = SubResource("Gradient_tb38i")
width = 120
height = 120
fill = 1
fill_from = Vector2(0.5, 0.5)
[node name="Main" type="Control"]
layout_mode = 3
anchor_right = 0.761571
anchor_bottom = 1.3
offset_right = -533.1
offset_bottom = -1040.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
mouse_default_cursor_shape = 3
metadata/_edit_use_anchors_ = true
[node name="QuickOptions" type="HBoxContainer" parent="."]
z_index = 1000
layout_mode = 0
offset_right = 596.0
offset_bottom = 40.0
mouse_filter = 0
script = ExtResource("1_8ecn3")
[node name="ShowNetworkGateway" type="Button" parent="QuickOptions"]
layout_mode = 2
toggle_mode = true
text = "Show Networkgateway"
[node name="VSeparator" type="VSeparator" parent="QuickOptions"]
layout_mode = 2
[node name="Connect" type="Button" parent="QuickOptions"]
layout_mode = 2
theme_override_styles/pressed = SubResource("StyleBoxFlat_31q8f")
toggle_mode = true
text = "Connect"
[node name="CSButton" type="Button" parent="QuickOptions"]
layout_mode = 2
toggle_mode = true
text = "CS"
[node name="CCButton" type="Button" parent="QuickOptions"]
layout_mode = 2
toggle_mode = true
text = "CC"
[node name="VSeparator2" type="VSeparator" parent="QuickOptions"]
layout_mode = 2
[node name="Roomname" type="LineEdit" parent="QuickOptions"]
custom_minimum_size = Vector2(75, 0)
layout_mode = 2
text = "cabbage"
[node name="VSeparator3" type="VSeparator" parent="QuickOptions"]
layout_mode = 2
[node name="PlayerCount" type="SpinBox" parent="QuickOptions"]
layout_mode = 2
prefix = "playercount"
[node name="NewCard" type="Button" parent="QuickOptions"]
layout_mode = 2
text = "New Card"
[node name="Physics" type="Button" parent="QuickOptions"]
visible = false
layout_mode = 2
toggle_mode = true
text = "Physics"
[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
layout_mode = 0
offset_right = 512.0
offset_bottom = 512.0
mouse_filter = 0
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
handle_input_locally = false
audio_listener_enable_2d = true
render_target_update_mode = 4
[node name="Background" type="Sprite2D" parent="SubViewportContainer/SubViewport"]
modulate = Color(0.592157, 0.592157, 0.592157, 1)
z_index = -100
texture_repeat = 2
position = Vector2(300, 400)
texture = SubResource("CanvasTexture_t3x1q")
region_enabled = true
region_rect = Rect2(0, 0, 1800, 1500)
[node name="Players" type="Node2D" parent="SubViewportContainer/SubViewport"]
z_index = 900
position = Vector2(-0.000152588, 400)
[node name="LocalPlayer" parent="SubViewportContainer/SubViewport/Players" instance=ExtResource("2")]
position = Vector2(95, 40)
[node name="Camera2D" type="Camera2D" parent="SubViewportContainer/SubViewport/Players/LocalPlayer"]
enabled = false
position_smoothing_enabled = true
drag_horizontal_enabled = true
drag_vertical_enabled = true
drag_left_margin = 0.7
drag_top_margin = 0.6
drag_right_margin = 0.6
drag_bottom_margin = 0.6
[node name="AudioListener2D" type="AudioListener2D" parent="SubViewportContainer/SubViewport/Players/LocalPlayer"]
[node name="SyncObjects" type="Node2D" parent="SubViewportContainer/SubViewport"]
z_index = 1
position = Vector2(-0.000152588, 0)
script = ExtResource("6_jvykx")
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="SubViewportContainer/SubViewport/SyncObjects"]
_spawnable_scenes = PackedStringArray("uid://bngiijug5ydb4")
spawn_path = NodePath("../SpawnedObjects")
[node name="SpawnedObjects" type="Node2D" parent="SubViewportContainer/SubViewport/SyncObjects"]
[node name="KNode2D" type="Node2D" parent="SubViewportContainer/SubViewport"]
position = Vector2(-0.000152588, 0)
[node name="Sprite2D" type="Sprite2D" parent="SubViewportContainer/SubViewport/KNode2D"]
position = Vector2(400, 400)
texture = SubResource("GradientTexture2D_d7327")
[node name="NetworkGateway" parent="." instance=ExtResource("3")]
visible = false
z_index = 1000
layout_mode = 0
offset_left = 4.0
offset_top = 44.0
offset_right = 681.0
offset_bottom = 428.0
playersnodepath = NodePath("../SubViewportContainer/SubViewport/Players")
localplayerscene = ""
[connection signal="toggled" from="QuickOptions/ShowNetworkGateway" to="QuickOptions" method="_on_show_network_gateway_toggled"]
[connection signal="toggled" from="QuickOptions/Connect" to="QuickOptions" method="_on_connect_toggled"]
[connection signal="toggled" from="QuickOptions/CSButton" to="QuickOptions" method="_on_cs_button_toggled"]
[connection signal="toggled" from="QuickOptions/CCButton" to="QuickOptions" method="_on_cc_button_toggled"]
[connection signal="pressed" from="QuickOptions/NewCard" to="QuickOptions" method="_on_new_card_pressed"]
[connection signal="toggled" from="QuickOptions/Physics" to="QuickOptions" method="_on_physics_toggled"]
[connection signal="mouse_entered" from="SubViewportContainer" to="QuickOptions" method="_on_sub_viewport_container_mouse_entered"]
[connection signal="mouse_exited" from="SubViewportContainer" to="QuickOptions" method="_on_sub_viewport_container_mouse_exited"]
[connection signal="body_entered" from="SubViewportContainer/SubViewport/Players/LocalPlayer" to="SubViewportContainer/SubViewport/SyncObjects" method="_on_local_player_body_entered"]
[connection signal="body_exited" from="SubViewportContainer/SubViewport/Players/LocalPlayer" to="SubViewportContainer/SubViewport/SyncObjects" method="_on_local_player_body_exited"]