模板场景文件
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
[gd_scene load_steps=4 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/player_list_ui.gd" id="2_script"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_panel"]
|
||||
bg_color = Color(0.055, 0.06, 0.07, 0.82)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.55, 0.58, 0.62, 0.45)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[sub_resource type="StyleBoxLine" id="StyleBoxLine_separator"]
|
||||
color = Color(0.65, 0.68, 0.72, 0.42)
|
||||
|
||||
[node name="PlayerListUI" type="Control"]
|
||||
z_index = 80
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("2_script")
|
||||
|
||||
[node name="SafeArea" 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 = 16
|
||||
theme_override_constants/margin_top = 16
|
||||
theme_override_constants/margin_right = 16
|
||||
theme_override_constants/margin_bottom = 16
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="PositionContainer" type="Control" parent="SafeArea"]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="SafeArea/PositionContainer"]
|
||||
layout_mode = 1
|
||||
anchor_top = 0.2
|
||||
anchor_bottom = 0.2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="SafeArea/PositionContainer/Panel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 22
|
||||
theme_override_constants/margin_top = 18
|
||||
theme_override_constants/margin_right = 22
|
||||
theme_override_constants/margin_bottom = 20
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Content" type="VBoxContainer" parent="SafeArea/PositionContainer/Panel/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Title" type="Label" parent="SafeArea/PositionContainer/Panel/MarginContainer/Content"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.95, 0.96, 0.97, 1)
|
||||
theme_override_font_sizes/font_size = 26
|
||||
text = "ONLINE PLAYERS"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Count" type="Label" parent="SafeArea/PositionContainer/Panel/MarginContainer/Content"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.65, 0.68, 0.72, 1)
|
||||
theme_override_font_sizes/font_size = 15
|
||||
text = "0 online"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="SafeArea/PositionContainer/Panel/MarginContainer/Content"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/separator = SubResource("StyleBoxLine_separator")
|
||||
|
||||
[node name="PlayerScroll" type="ScrollContainer" parent="SafeArea/PositionContainer/Panel/MarginContainer/Content"]
|
||||
custom_minimum_size = Vector2(0, 30)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
horizontal_scroll_mode = 0
|
||||
vertical_scroll_mode = 1
|
||||
|
||||
[node name="Players" type="RichTextLabel" parent="SafeArea/PositionContainer/Panel/MarginContainer/Content/PlayerScroll"]
|
||||
custom_minimum_size = Vector2(0, 30)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
mouse_filter = 2
|
||||
theme_override_colors/default_color = Color(0.92, 0.95, 0.93, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 0.8)
|
||||
theme_override_constants/outline_size = 2
|
||||
theme_override_font_sizes/normal_font_size = 18
|
||||
bbcode_enabled = true
|
||||
fit_content = true
|
||||
scroll_active = false
|
||||
Reference in New Issue
Block a user