Improved network handling
This commit is contained in:
@ -1,12 +1,16 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://b40y7iuskv1ar"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://b40y7iuskv1ar"]
|
||||
|
||||
[ext_resource type="Script" path="res://world/Game.gd" id="1_xmqq4"]
|
||||
[ext_resource type="PackedScene" uid="uid://bxotvk73tbgw0" path="res://ui/UI.tscn" id="2_x1l7l"]
|
||||
[ext_resource type="Script" path="res://world/RotateY.gd" id="3_4gn6n"]
|
||||
[ext_resource type="Script" path="res://ui/FPSLabel.gd" id="3_k5d80"]
|
||||
[ext_resource type="Script" path="res://ui/PingLabel.gd" id="4_1a3hc"]
|
||||
[ext_resource type="Script" path="res://network/Network.gd" id="4_ao4cj"]
|
||||
[ext_resource type="Shader" path="res://world/shader/Outline.gdshader" id="4_gweie"]
|
||||
[ext_resource type="Script" path="res://network/Ping.gd" id="4_vx388"]
|
||||
[ext_resource type="Environment" uid="uid://dixa0yso2s1u3" path="res://world/Environment.tres" id="5_bll74"]
|
||||
[ext_resource type="Script" path="res://world/Sun.gd" id="5_pf5uw"]
|
||||
[ext_resource type="CameraAttributesPractical" uid="uid://b835orxyqq6w5" path="res://world/CameraAttributes.tres" id="6_8wfwf"]
|
||||
[ext_resource type="Script" path="res://network/Login.gd" id="6_augbg"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_r8n03"]
|
||||
diffuse_mode = 3
|
||||
@ -67,7 +71,53 @@ mesh = SubResource("TorusMesh_mu45b")
|
||||
skeleton = NodePath("../../SubViewportContainer/SubViewport")
|
||||
script = ExtResource("3_4gn6n")
|
||||
|
||||
[node name="UI" parent="." instance=ExtResource("2_x1l7l")]
|
||||
[node name="UI" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="UI"]
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="UI/CanvasLayer"]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 50.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="UI/CanvasLayer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UI/CanvasLayer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="FPSLabel" type="Label" parent="UI/CanvasLayer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "FPS:"
|
||||
|
||||
[node name="FPS" type="Label" parent="UI/CanvasLayer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
script = ExtResource("3_k5d80")
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="UI/CanvasLayer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="PingLabel" type="Label" parent="UI/CanvasLayer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "Ping:"
|
||||
|
||||
[node name="Ping" type="Label" parent="UI/CanvasLayer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
layout_mode = 2
|
||||
text = "0"
|
||||
script = ExtResource("4_1a3hc")
|
||||
|
||||
[node name="Network" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("4_ao4cj")
|
||||
|
||||
[node name="Ping" type="Node" parent="Network"]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("4_vx388")
|
||||
|
||||
[node name="Login" type="Node" parent="Network"]
|
||||
script = ExtResource("6_augbg")
|
||||
|
||||
[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
|
||||
texture_filter = 1
|
||||
|
Reference in New Issue
Block a user