mirror of
https://github.com/thegatesbrowser/godot-multiplayer.git
synced 2025-09-02 03:25:46 -04:00
285 lines
8.4 KiB
Text
285 lines
8.4 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://dpre6ebljycx4"]
|
|
|
|
[ext_resource type="Script" path="res://ui/player_panel.gd" id="1_hxm32"]
|
|
[ext_resource type="Resource" uid="uid://rclnl7v8k722" path="res://user_data/user_data_events.res" id="2_y2iyx"]
|
|
[ext_resource type="Script" path="res://ui/change_name.gd" id="3_yfkbo"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tmqoe"]
|
|
resource_local_to_scene = true
|
|
bg_color = Color(0.211765, 0.211765, 0.211765, 0.505882)
|
|
corner_radius_top_left = 10
|
|
corner_radius_bottom_left = 10
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_k7gc0"]
|
|
bg_color = Color(0.6, 0.6, 0.6, 0)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oc66c"]
|
|
bg_color = Color(0.251, 1, 0, 0.7)
|
|
corner_radius_top_left = 25
|
|
corner_radius_top_right = 25
|
|
corner_radius_bottom_right = 25
|
|
corner_radius_bottom_left = 25
|
|
|
|
[sub_resource type="StyleBoxLine" id="StyleBoxLine_1pmgd"]
|
|
color = Color(0.509804, 0.509804, 0.509804, 0.501961)
|
|
grow_begin = 0.0
|
|
grow_end = 0.0
|
|
thickness = 3
|
|
|
|
[sub_resource type="Animation" id="Animation_tisq7"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Panel:theme_override_styles/panel:bg_color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(0.211765, 0.211765, 0.211765, 0.505882)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("MarginContainer/VBoxContainer/Control/NicknameEdit:editable")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("MarginContainer/VBoxContainer/Control/NicknameEdit:text")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": ["Player One"]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("MarginContainer/VBoxContainer/Hints:visible")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("MarginContainer/VBoxContainer/VolumeSlider:visible")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/5/type = "value"
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/path = NodePath("MarginContainer/VBoxContainer/Control/NicknameEdit:placeholder_text")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [""]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_2fcr5"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Panel:theme_override_styles/panel:bg_color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(0.211765, 0.211765, 0.211765, 0.505882)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("MarginContainer/VBoxContainer/Control/NicknameEdit:editable")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("MarginContainer/VBoxContainer/Control/NicknameEdit:text")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [""]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("MarginContainer/VBoxContainer/Hints:visible")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("MarginContainer/VBoxContainer/VolumeSlider:visible")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/5/type = "value"
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/path = NodePath("MarginContainer/VBoxContainer/Control/NicknameEdit:placeholder_text")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": ["Your nickname"]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mruyl"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_tisq7"),
|
|
"my_panel": SubResource("Animation_2fcr5")
|
|
}
|
|
|
|
[node name="PlayerPanel" type="Control" node_paths=PackedStringArray("nickname_edit", "volume_slider", "speaking_indicator", "animation_player")]
|
|
custom_minimum_size = Vector2(0, 60)
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_right = 300.0
|
|
offset_bottom = 40.0
|
|
mouse_filter = 1
|
|
script = ExtResource("1_hxm32")
|
|
nickname_edit = NodePath("MarginContainer/VBoxContainer/Control/NicknameEdit")
|
|
volume_slider = NodePath("MarginContainer/VBoxContainer/VolumeSlider")
|
|
speaking_indicator = NodePath("MarginContainer/VBoxContainer/Control/SpeakIndicator")
|
|
animation_player = NodePath("AnimationPlayer")
|
|
user_data_events = ExtResource("2_y2iyx")
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_tmqoe")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 5
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 5
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Control" type="Control" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="NicknameEdit" type="LineEdit" parent="MarginContainer/VBoxContainer/Control"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_right = -20.0
|
|
offset_bottom = 4.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_colors/font_color = Color(1, 1, 1, 0.701961)
|
|
theme_override_colors/font_uneditable_color = Color(1, 1, 1, 0.701961)
|
|
theme_override_colors/selection_color = Color(1, 1, 1, 0.701961)
|
|
theme_override_font_sizes/font_size = 24
|
|
theme_override_styles/normal = SubResource("StyleBoxFlat_k7gc0")
|
|
theme_override_styles/focus = SubResource("StyleBoxFlat_k7gc0")
|
|
theme_override_styles/read_only = SubResource("StyleBoxFlat_k7gc0")
|
|
text = "Player One"
|
|
max_length = 20
|
|
editable = false
|
|
script = ExtResource("3_yfkbo")
|
|
|
|
[node name="SpeakIndicator" type="Panel" parent="MarginContainer/VBoxContainer/Control"]
|
|
layout_mode = 1
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -15.0
|
|
offset_top = -18.0
|
|
offset_bottom = -3.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_oc66c")
|
|
|
|
[node name="VolumeSlider" type="HSlider" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
focus_mode = 0
|
|
theme_override_styles/slider = SubResource("StyleBoxLine_1pmgd")
|
|
min_value = 0.001
|
|
max_value = 1.0
|
|
step = 0.01
|
|
value = 0.701
|
|
scrollable = false
|
|
|
|
[node name="Hints" type="RichTextLabel" parent="MarginContainer/VBoxContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
theme_override_colors/default_color = Color(1, 1, 1, 0.701961)
|
|
theme_override_font_sizes/normal_font_size = 14
|
|
theme_override_font_sizes/bold_font_size = 12
|
|
bbcode_enabled = true
|
|
text = "[b]N[/b] - name, [b]Shift[/b] - speak, [b]Ctlr[/b] - volume"
|
|
fit_content = true
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_mruyl")
|
|
}
|