模板场景文件
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bglwdpf2mf7g0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bi0mlil0a0e5i" path="res://scripts/ui/inventory_slot_ui.gd" id="1_5k8m7"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_slot"]
|
||||
bg_color = Color(0.105, 0.115, 0.135, 0.88)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.52, 0.57, 0.64, 0.38)
|
||||
corner_radius_top_left = 3
|
||||
corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 3
|
||||
|
||||
[node name="InventorySlotUI" type="Control" unique_id=1288455076]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 64.0
|
||||
offset_bottom = 64.0
|
||||
script = ExtResource("1_5k8m7")
|
||||
|
||||
[node name="Background" type="Panel" parent="." unique_id=1237187040]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_slot")
|
||||
|
||||
[node name="ItemIcon" type="TextureRect" parent="." unique_id=1347257846]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 8.0
|
||||
offset_top = 8.0
|
||||
offset_right = -8.0
|
||||
offset_bottom = -8.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="QuantityLabel" type="Label" parent="." unique_id=1224415972]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -20.0
|
||||
offset_top = -20.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
mouse_filter = 2
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "99"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 2
|
||||
@@ -0,0 +1,205 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bclq8vh1x2goy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c2w12kgcvtww4" path="res://scripts/ui/inventory_ui.gd" id="1_h7x4v"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ui/close.svg" id="2_close"]
|
||||
|
||||
[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="InventoryUI" type="Control" unique_id=1878305014]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_h7x4v")
|
||||
|
||||
[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
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="SafeArea"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventoryPanels" type="HBoxContainer" parent="SafeArea/CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="EquipmentPanel" type="PanelContainer" parent="SafeArea/CenterContainer/InventoryPanels"]
|
||||
custom_minimum_size = Vector2(132, 0)
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="Title" type="Label" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 28)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Equipment"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_styles/separator = SubResource("StyleBoxLine_separator")
|
||||
|
||||
[node name="HatLabel" type="Label" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 15
|
||||
text = "Hat"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HatSlotContainer" type="CenterContainer" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 70)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="WeaponLabel" type="Label" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 15
|
||||
text = "Weapon"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="WeaponSlotContainer" type="CenterContainer" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 70)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="BackpackLabel" type="Label" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 15
|
||||
text = "Backpack"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="BackpackSlotContainer" type="CenterContainer" parent="SafeArea/CenterContainer/InventoryPanels/EquipmentPanel/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 70)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="InventoryPanel" type="PanelContainer" parent="SafeArea/CenterContainer/InventoryPanels" unique_id=486763135]
|
||||
custom_minimum_size = Vector2(296, 0)
|
||||
layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel" unique_id=1913204593]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel/MarginContainer" unique_id=599957956]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="TitleBar" type="HBoxContainer" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel/MarginContainer/VBoxContainer" unique_id=145161483]
|
||||
custom_minimum_size = Vector2(0, 28)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TitleSpacer" type="Control" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel/MarginContainer/VBoxContainer/TitleBar"]
|
||||
custom_minimum_size = Vector2(28, 0)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Title" type="Label" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel/MarginContainer/VBoxContainer/TitleBar" unique_id=860210156]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "Inventory"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="CloseButton" type="Button" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel/MarginContainer/VBoxContainer/TitleBar" unique_id=698056211]
|
||||
custom_minimum_size = Vector2(28, 28)
|
||||
layout_mode = 2
|
||||
focus_mode = 0
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/icon_normal_color = Color(0.95, 0.97, 0.95, 1)
|
||||
theme_override_colors/icon_hover_color = Color(1, 0.55, 0.55, 1)
|
||||
theme_override_colors/icon_pressed_color = Color(0.82, 0.3, 0.3, 1)
|
||||
icon = ExtResource("2_close")
|
||||
flat = true
|
||||
tooltip_text = "Close inventory"
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel/MarginContainer/VBoxContainer" unique_id=609650692]
|
||||
layout_mode = 2
|
||||
theme_override_styles/separator = SubResource("StyleBoxLine_separator")
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="SafeArea/CenterContainer/InventoryPanels/InventoryPanel/MarginContainer/VBoxContainer" unique_id=789467804]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/h_separation = 6
|
||||
theme_override_constants/v_separation = 6
|
||||
columns = 4
|
||||
|
||||
[node name="ItemTooltip" type="Control" parent="." unique_id=1254507357]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
offset_right = 280.0
|
||||
offset_bottom = 1.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Panel" type="Panel" parent="ItemTooltip" unique_id=323031125]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="ItemTooltip/Panel" unique_id=413423816]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme_override_constants/margin_left = 8
|
||||
theme_override_constants/margin_top = 8
|
||||
theme_override_constants/margin_right = 8
|
||||
theme_override_constants/margin_bottom = 8
|
||||
|
||||
[node name="TooltipText" type="RichTextLabel" parent="ItemTooltip/Panel/MarginContainer" unique_id=571796113]
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
bbcode_enabled = true
|
||||
text = ""
|
||||
fit_content = true
|
||||
scroll_active = false
|
||||
@@ -0,0 +1,198 @@
|
||||
[gd_scene format=3 uid="uid://bx7mq8t8hjn7q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c9x8y7z6a5b4c3d2" path="res://scripts/ui/main_menu_ui.gd" id="2_script"]
|
||||
|
||||
[sub_resource type="StyleBoxLine" id="StyleBoxLine_npnbc"]
|
||||
color = Color(0, 0, 0, 0)
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_button_normal"]
|
||||
content_margin_left = 12.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 12.0
|
||||
content_margin_bottom = 4.0
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_hover"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.22, 0.25, 0.29, 0.92)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_pressed"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.14, 0.16, 0.19, 0.96)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_button_focus"]
|
||||
|
||||
[node name="MainMenuUI" type="Control" unique_id=1809417860]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("2_script")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=702505842]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.0901961, 0.0901961, 0.0901961, 1)
|
||||
|
||||
[node name="MainContainer" type="VBoxContainer" parent="." unique_id=473263213]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 24.0
|
||||
offset_top = 24.0
|
||||
offset_right = -24.0
|
||||
offset_bottom = -24.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 50
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="MainContainer" unique_id=293700381]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 6
|
||||
size_flags_vertical = 0
|
||||
theme_override_font_sizes/font_size = 70
|
||||
text = "3D Multiplayer Template"
|
||||
|
||||
[node name="MainMenu" type="VBoxContainer" parent="MainContainer" unique_id=792964549]
|
||||
layout_direction = 1
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
theme_override_constants/separation = 20
|
||||
alignment = 1
|
||||
|
||||
[node name="HSeparator1" type="HSeparator" parent="MainContainer/MainMenu" unique_id=1429481219]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
theme_override_styles/separator = SubResource("StyleBoxLine_npnbc")
|
||||
|
||||
[node name="Option1" type="HBoxContainer" parent="MainContainer/MainMenu" unique_id=414194156]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="MainContainer/MainMenu/Option1" unique_id=848326644]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "Nickname : "
|
||||
|
||||
[node name="NickInput" type="LineEdit" parent="MainContainer/MainMenu/Option1" unique_id=1087637066]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 35
|
||||
placeholder_text = "YourNick"
|
||||
max_length = 20
|
||||
expand_to_text_length = true
|
||||
|
||||
[node name="Option2" type="HBoxContainer" parent="MainContainer/MainMenu" unique_id=1404573203]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="MainContainer/MainMenu/Option2" unique_id=1101934130]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "Player Skin : "
|
||||
|
||||
[node name="SkinInput" type="OptionButton" parent="MainContainer/MainMenu/Option2" unique_id=2039868006]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 35
|
||||
|
||||
[node name="Option3" type="HBoxContainer" parent="MainContainer/MainMenu" unique_id=1469914367]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="MainContainer/MainMenu/Option3" unique_id=492922165]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "IP Address : "
|
||||
|
||||
[node name="AddressInput" type="LineEdit" parent="MainContainer/MainMenu/Option3" unique_id=2119648065]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 35
|
||||
placeholder_text = "127.0.0.1"
|
||||
alignment = 1
|
||||
expand_to_text_length = true
|
||||
|
||||
[node name="HSeparator2" type="HSeparator" parent="MainContainer/MainMenu" unique_id=1512408463]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 30
|
||||
theme_override_styles/separator = SubResource("StyleBoxLine_npnbc")
|
||||
|
||||
[node name="Buttons" type="HBoxContainer" parent="MainContainer/MainMenu" unique_id=1105640710]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 30
|
||||
alignment = 1
|
||||
|
||||
[node name="Host" type="Button" parent="MainContainer/MainMenu/Buttons" unique_id=18102936]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_pressed_color = Color(0.42, 0.62, 0.82, 1)
|
||||
theme_override_colors/font_hover_color = Color(0.55, 0.75, 0.95, 1)
|
||||
theme_override_font_sizes/font_size = 35
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_button_normal")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "HOST"
|
||||
flat = true
|
||||
|
||||
[node name="Join" type="Button" parent="MainContainer/MainMenu/Buttons" unique_id=1615937929]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_pressed_color = Color(0.42, 0.62, 0.82, 1)
|
||||
theme_override_colors/font_hover_color = Color(0.55, 0.75, 0.95, 1)
|
||||
theme_override_font_sizes/font_size = 35
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_button_normal")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "JOIN"
|
||||
flat = true
|
||||
|
||||
[node name="Option4" type="HBoxContainer" parent="MainContainer/MainMenu" unique_id=1327970814]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
alignment = 1
|
||||
|
||||
[node name="Quit" type="Button" parent="MainContainer/MainMenu/Option4" unique_id=1022123460]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_pressed_color = Color(0.858824, 0, 0, 0.862745)
|
||||
theme_override_colors/font_hover_color = Color(0.858807, 4.71681e-06, 1.15514e-06, 0.862745)
|
||||
theme_override_font_sizes/font_size = 35
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "QUIT"
|
||||
flat = true
|
||||
|
||||
[connection signal="pressed" from="MainContainer/MainMenu/Buttons/Host" to="." method="_on_host_pressed"]
|
||||
[connection signal="pressed" from="MainContainer/MainMenu/Buttons/Join" to="." method="_on_join_pressed"]
|
||||
[connection signal="pressed" from="MainContainer/MainMenu/Option4/Quit" to="." method="_on_quit_pressed"]
|
||||
@@ -0,0 +1,76 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ccencq0lcd3ph"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c8x9y2z1a3b4c5d6" path="res://scripts/ui/multiplayer_chat_ui.gd" id="1_h7x4v"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_input"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 6.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 6.0
|
||||
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
|
||||
|
||||
[node name="MultiplayerChatUI" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 16.0
|
||||
offset_top = -284.0
|
||||
offset_right = 496.0
|
||||
offset_bottom = -16.0
|
||||
grow_vertical = 0
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_h7x4v")
|
||||
|
||||
[node name="ChatLayout" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 8
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Chat" type="RichTextLabel" parent="ChatLayout"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
mouse_filter = 2
|
||||
theme_override_colors/default_color = Color(0.96, 0.96, 0.96, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 0.95)
|
||||
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.85)
|
||||
theme_override_constants/outline_size = 4
|
||||
theme_override_constants/shadow_offset_x = 2
|
||||
theme_override_constants/shadow_offset_y = 2
|
||||
theme_override_font_sizes/normal_font_size = 18
|
||||
bbcode_enabled = true
|
||||
scroll_active = false
|
||||
vertical_alignment = 2
|
||||
|
||||
[node name="Message" type="LineEdit" parent="ChatLayout"]
|
||||
custom_minimum_size = Vector2(0, 38)
|
||||
layout_mode = 2
|
||||
mouse_filter = 2
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_colors/font_placeholder_color = Color(0.72, 0.72, 0.72, 1)
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 0.9)
|
||||
theme_override_constants/outline_size = 2
|
||||
theme_override_font_sizes/font_size = 17
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_input")
|
||||
theme_override_styles/focus = SubResource("StyleBoxFlat_input")
|
||||
placeholder_text = "Say to all..."
|
||||
max_length = 100
|
||||
keep_editing_on_text_submit = true
|
||||
|
||||
[node name="FeedTimer" type="Timer" parent="."]
|
||||
wait_time = 6.0
|
||||
one_shot = true
|
||||
@@ -0,0 +1,127 @@
|
||||
[gd_scene load_steps=6 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/pause_menu_ui.gd" id="2_script"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_panel"]
|
||||
bg_color = Color(0.055, 0.06, 0.07, 0.82)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_hover"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.22, 0.25, 0.29, 0.92)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button_pressed"]
|
||||
content_margin_left = 10.0
|
||||
content_margin_top = 4.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_bottom = 4.0
|
||||
bg_color = Color(0.14, 0.16, 0.19, 0.96)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_button_focus"]
|
||||
|
||||
[node name="PauseMenuUI" type="Control"]
|
||||
process_mode = 3
|
||||
z_index = 100
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 0
|
||||
script = ExtResource("2_script")
|
||||
|
||||
[node name="Overlay" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 0.58)
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="Overlay"]
|
||||
custom_minimum_size = Vector2(360, 0)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -180.0
|
||||
offset_top = -178.0
|
||||
offset_right = 180.0
|
||||
offset_bottom = 178.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_panel")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Overlay/Panel"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 40
|
||||
theme_override_constants/margin_top = 32
|
||||
theme_override_constants/margin_right = 40
|
||||
theme_override_constants/margin_bottom = 32
|
||||
|
||||
[node name="Buttons" type="VBoxContainer" parent="Overlay/Panel/MarginContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 24
|
||||
alignment = 1
|
||||
|
||||
[node name="Title" type="Label" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 52
|
||||
text = "PAUSED"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Resume" type="Button" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_hover_color = Color(0.55, 0.75, 0.95, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0.42, 0.62, 0.82, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "RESUME"
|
||||
flat = true
|
||||
|
||||
[node name="MainMenu" type="Button" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_hover_color = Color(0.55, 0.75, 0.95, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0.42, 0.62, 0.82, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_button_hover")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_button_pressed")
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "MAIN MENU"
|
||||
flat = true
|
||||
|
||||
[node name="Quit" type="Button" parent="Overlay/Panel/MarginContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
theme_override_colors/font_hover_color = Color(0.86, 0.1, 0.1, 1)
|
||||
theme_override_colors/font_pressed_color = Color(0.86, 0.1, 0.1, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_button_focus")
|
||||
text = "QUIT"
|
||||
flat = true
|
||||
|
||||
[connection signal="pressed" from="Overlay/Panel/MarginContainer/Buttons/Resume" to="." method="_on_resume_pressed"]
|
||||
[connection signal="pressed" from="Overlay/Panel/MarginContainer/Buttons/MainMenu" to="." method="_on_main_menu_pressed"]
|
||||
[connection signal="pressed" from="Overlay/Panel/MarginContainer/Buttons/Quit" to="." method="_on_quit_pressed"]
|
||||
@@ -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