初次提交
This commit is contained in:
1
场景/BagUI.cs.uid
Normal file
1
场景/BagUI.cs.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://y5hcj3mld0ee
|
166
场景/BagUI.tscn
Normal file
166
场景/BagUI.tscn
Normal file
@ -0,0 +1,166 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dge6ymap80163"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dry2x5otnbedt" path="res://Script/UI/BagUI.cs" id="1_22o3n"]
|
||||
[ext_resource type="FontFile" uid="uid://cjfdun63bo72f" path="res://Font/Uranus_Pixel_11Px.ttf" id="2_143nv"]
|
||||
[ext_resource type="Texture2D" uid="uid://1dilxhdoj2lx" path="res://图片/UI/Tiles/Large tiles/Thick outline/tile_0000.png" id="3_r5h2x"]
|
||||
[ext_resource type="PackedScene" uid="uid://qgkcuy2rholl" path="res://场景/itemUI.tscn" id="4_143nv"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_e6eii"]
|
||||
texture = ExtResource("3_r5h2x")
|
||||
texture_margin_left = 5.0
|
||||
texture_margin_top = 5.0
|
||||
texture_margin_right = 5.0
|
||||
texture_margin_bottom = 5.0
|
||||
region_rect = Rect2(0, 0, 32, 32)
|
||||
|
||||
[node name="bag" type="Control" node_paths=PackedStringArray("text", "background", "itemContainer")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_22o3n")
|
||||
text = NodePath("text")
|
||||
background = NodePath("bk")
|
||||
itemContainer = NodePath("bk/ScrollContainer/GridContainer")
|
||||
itemUI = ExtResource("4_143nv")
|
||||
|
||||
[node name="text" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 100.0
|
||||
grow_horizontal = 2
|
||||
theme_override_colors/font_color = Color(0.931596, 0.734354, 0.50331, 1)
|
||||
theme_override_fonts/font = ExtResource("2_143nv")
|
||||
theme_override_font_sizes/font_size = 80
|
||||
text = "背包"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="bk" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 100.0
|
||||
offset_top = 100.0
|
||||
offset_right = -100.0
|
||||
offset_bottom = -50.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_e6eii")
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="bk"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 10.0
|
||||
offset_top = 13.0
|
||||
offset_right = -10.0
|
||||
offset_bottom = -10.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="bk/ScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/h_separation = 6
|
||||
columns = 10
|
||||
|
||||
[node name="Button" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button2" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button3" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button4" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button5" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button6" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button7" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button8" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button9" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button10" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button11" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button12" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button13" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button14" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button15" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
||||
|
||||
[node name="Button16" parent="bk/ScrollContainer/GridContainer" node_paths=PackedStringArray("icon") instance=ExtResource("4_143nv")]
|
||||
layout_mode = 2
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":Resource("res://图片/Item/None.png"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon = NodePath("图标")
|
18
场景/BulletScene.tscn
Normal file
18
场景/BulletScene.tscn
Normal file
@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cls3iqd6lml2c"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cqo4d16yxek4d" path="res://图片/Object/bullet.png" id="1_i13uy"]
|
||||
[ext_resource type="Script" uid="uid://dg675fsx6dpv1" path="res://Script/Item/Projectile.cs" id="1_xp18j"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_oq1wp"]
|
||||
radius = 3.0
|
||||
|
||||
[node name="Bullet" type="Area2D"]
|
||||
scale = Vector2(5, 5)
|
||||
script = ExtResource("1_xp18j")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_i13uy")
|
||||
offset = Vector2(-6, 0)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_oq1wp")
|
57
场景/DevUI.tscn
Normal file
57
场景/DevUI.tscn
Normal file
@ -0,0 +1,57 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://eeevmyw1a4cm"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bbg61kqb7jv4c" path="res://图片/UI/Background/绘制齿轮背景图.png" id="1_7wx15"]
|
||||
[ext_resource type="Script" uid="uid://bpaoua3tyv5ju" path="res://Script/UI/DevUi.cs" id="1_g6lk2"]
|
||||
|
||||
[node name="DevUi" type="Control" node_paths=PackedStringArray("itemDevList")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_g6lk2")
|
||||
itemDevList = NodePath("VBoxContainer/HBoxContainer/ItemDev")
|
||||
|
||||
[node name="background" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("1_7wx15")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Debug菜单(F1)"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ItemDev" type="VBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/ItemDev"]
|
||||
layout_mode = 2
|
||||
text = "背包物品"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="清空背包" type="Button" parent="VBoxContainer/HBoxContainer/ItemDev"]
|
||||
layout_mode = 2
|
||||
text = "清空背包"
|
||||
|
||||
[connection signal="pressed" from="VBoxContainer/HBoxContainer/ItemDev/清空背包" to="." method="ClearItems"]
|
6
场景/Test.tscn
Normal file
6
场景/Test.tscn
Normal file
@ -0,0 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://d0byec464kpre"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://yl4050ru0ros" path="res://Script/Generate/PlayerGenerate.cs" id="1_ggo7q"]
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
script = ExtResource("1_ggo7q")
|
83
场景/itemUI.tscn
Normal file
83
场景/itemUI.tscn
Normal file
@ -0,0 +1,83 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://qgkcuy2rholl"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://danbtdb2bx51m" path="res://图片/UI/Tiles/Large tiles/Thick outline/tile_0001.png" id="1_udj33"]
|
||||
[ext_resource type="Script" uid="uid://cc7chrmpuw4vu" path="res://Script/UI/BagItemUI.cs" id="2_a7kwo"]
|
||||
[ext_resource type="FontFile" uid="uid://cjfdun63bo72f" path="res://Font/Uranus_Pixel_11Px.ttf" id="2_ayh4i"]
|
||||
[ext_resource type="Texture2D" uid="uid://w54e0f3ya7js" path="res://图片/Item/None.png" id="2_coh8y"]
|
||||
|
||||
[node name="Button" type="Button" node_paths=PackedStringArray("icon", "count", "itemName", "itemNamePanel")]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -640.0
|
||||
offset_top = -360.0
|
||||
offset_right = -540.0
|
||||
offset_bottom = -260.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_icons/icon = ExtResource("1_udj33")
|
||||
icon = Object(TextureRect,"_import_path":NodePath(""),"unique_name_in_owner":false,"process_mode":0,"process_priority":0,"process_physics_priority":0,"process_thread_group":0,"physics_interpolation_mode":2,"auto_translate_mode":0,"editor_description":"","visible":true,"modulate":Color(1, 1, 1, 1),"self_modulate":Color(1, 1, 1, 1),"show_behind_parent":false,"top_level":false,"clip_children":0,"light_mask":1,"visibility_layer":1,"z_index":0,"z_as_relative":true,"y_sort_enabled":false,"texture_filter":0,"texture_repeat":0,"material":null,"use_parent_material":false,"clip_contents":false,"custom_minimum_size":Vector2(0, 0),"layout_direction":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":-40.0,"offset_top":-40.0,"offset_right":40.0,"offset_bottom":40.0,"grow_horizontal":2,"grow_vertical":2,"rotation":0.0,"scale":Vector2(1, 1),"pivot_offset":Vector2(0, 0),"size_flags_horizontal":1,"size_flags_vertical":1,"size_flags_stretch_ratio":1.0,"localize_numeral_system":true,"tooltip_text":"","tooltip_auto_translate_mode":0,"focus_neighbor_left":NodePath(""),"focus_neighbor_top":NodePath(""),"focus_neighbor_right":NodePath(""),"focus_neighbor_bottom":NodePath(""),"focus_next":NodePath(""),"focus_previous":NodePath(""),"focus_mode":0,"mouse_filter":1,"mouse_force_pass_scroll_events":true,"mouse_default_cursor_shape":0,"shortcut_context":null,"theme":null,"theme_type_variation":&"","texture":ExtResource("2_coh8y"),"expand_mode":1,"stretch_mode":0,"flip_h":false,"flip_v":false,"script":null)
|
||||
|
||||
icon_alignment = 1
|
||||
expand_icon = true
|
||||
script = ExtResource("2_a7kwo")
|
||||
icon = NodePath("图标")
|
||||
count = NodePath("物品数")
|
||||
itemName = NodePath("ColorRect/物品名")
|
||||
itemNamePanel = NodePath("ColorRect")
|
||||
emptyIcon = ExtResource("2_coh8y")
|
||||
|
||||
[node name="图标" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -40.0
|
||||
offset_top = -40.0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_coh8y")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="物品数" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 50.0
|
||||
offset_top = 74.0
|
||||
offset_right = 96.0
|
||||
offset_bottom = 97.0
|
||||
theme_override_fonts/font = ExtResource("2_ayh4i")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "999"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_bottom = 30.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
color = Color(0.164706, 0.262745, 0.364706, 0.392157)
|
||||
|
||||
[node name="物品名" type="Label" parent="ColorRect"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 30.0
|
||||
grow_horizontal = 2
|
||||
rotation = 0.00102661
|
||||
text = "未知"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
|
||||
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]
|
21
场景/map.tscn
Normal file
21
场景/map.tscn
Normal file
@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://b6v31cdybmcao"]
|
||||
|
||||
[ext_resource type="TileSet" uid="uid://bv1h4m53yjm5x" path="res://引擎资源/TypeTileMapSet.tres" id="1_gqk43"]
|
||||
[ext_resource type="Script" uid="uid://bc2ats1ib4dde" path="res://Script/Map/DoubleMap.cs" id="1_opnpo"]
|
||||
[ext_resource type="TileSet" uid="uid://bffvfwxai31j" path="res://引擎资源/DisplayTileMapSet.tres" id="3_j2mop"]
|
||||
|
||||
[node name="Map" type="Node2D" node_paths=PackedStringArray("displayLayer", "mapLayer")]
|
||||
script = ExtResource("1_opnpo")
|
||||
displayLayer = NodePath("DisplayTileMapLayer")
|
||||
mapLayer = NodePath("DataTileMapLayer")
|
||||
|
||||
[node name="DataTileMapLayer" type="TileMapLayer" parent="."]
|
||||
scale = Vector2(5, 5)
|
||||
tile_set = ExtResource("1_gqk43")
|
||||
|
||||
[node name="DisplayTileMapLayer" type="TileMapLayer" parent="."]
|
||||
position = Vector2(40, 40)
|
||||
scale = Vector2(5, 5)
|
||||
tile_set = ExtResource("3_j2mop")
|
||||
|
||||
[node name="CreateMap" type="Node" parent="."]
|
85
场景/play.tscn
Normal file
85
场景/play.tscn
Normal file
@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://8u0ex56qvckx"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b6v31cdybmcao" path="res://场景/map.tscn" id="1_00uec"]
|
||||
[ext_resource type="Script" uid="uid://bhpimjcr0h66h" path="res://Script/Pawn/CameraControl.cs" id="4_ai87t"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfb4jkr001yc3" path="res://图片/Plyear/body/south.png" id="5_fd6oo"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcyqk5dse5rfr" path="res://图片/Plyear/hairBackground/KiiroHairBG5_south.png" id="6_7mk46"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2i248a85m3yy" path="res://图片/Plyear/head/KiiroHeadH1_south.png" id="7_p6iu8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cr5cdhh3sg6ak" path="res://图片/Plyear/hair/KiiroHair5_south.png" id="8_00uec"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddwe3fgpw6lws" path="res://图片/Plyear/clothing/south.png" id="11_1fjv0"]
|
||||
[ext_resource type="PackedScene" uid="uid://c366fehx7raps" path="res://场景/player.tscn" id="11_p6iu8"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5y5ge1gju2ed" path="res://图片/Plyear/leftEar/LeftEar_south.png" id="11_s21oq"]
|
||||
[ext_resource type="Texture2D" uid="uid://co1muhiugohsd" path="res://图片/Plyear/rightEar/RightEar_south.png" id="12_uqlbb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dge6ymap80163" path="res://场景/BagUI.tscn" id="13_p6iu8"]
|
||||
[ext_resource type="PackedScene" uid="uid://eeevmyw1a4cm" path="res://场景/DevUI.tscn" id="13_uqlbb"]
|
||||
[ext_resource type="Script" uid="uid://ctbyhk40owvej" path="res://Script/Base/TickControl.cs" id="14_00uec"]
|
||||
[ext_resource type="Script" uid="uid://cgesjwgws6bmr" path="res://Script/Base/InputControl.cs" id="15_s21oq"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_f1exj"]
|
||||
radius = 56.0
|
||||
height = 380.0
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
|
||||
[node name="Map" parent="." instance=ExtResource("1_00uec")]
|
||||
|
||||
[node name="Bug" type="Sprite2D" parent="."]
|
||||
position = Vector2(-287, 3)
|
||||
scale = Vector2(0.25, 0.25)
|
||||
texture = ExtResource("5_fd6oo")
|
||||
|
||||
[node name="hairBackground" type="Sprite2D" parent="Bug"]
|
||||
position = Vector2(0, -107)
|
||||
texture = ExtResource("6_7mk46")
|
||||
|
||||
[node name="clothing" type="Sprite2D" parent="Bug"]
|
||||
texture = ExtResource("11_1fjv0")
|
||||
|
||||
[node name="head" type="Sprite2D" parent="Bug"]
|
||||
position = Vector2(0, -107)
|
||||
texture = ExtResource("7_p6iu8")
|
||||
|
||||
[node name="hair" type="Sprite2D" parent="Bug/head"]
|
||||
texture = ExtResource("8_00uec")
|
||||
|
||||
[node name="leftEar" type="Sprite2D" parent="Bug/head"]
|
||||
texture = ExtResource("11_s21oq")
|
||||
|
||||
[node name="rightEar" type="Sprite2D" parent="Bug/head"]
|
||||
texture = ExtResource("12_uqlbb")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="Bug"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Bug/CharacterBody2D"]
|
||||
position = Vector2(0, 26)
|
||||
shape = SubResource("CapsuleShape2D_f1exj")
|
||||
|
||||
[node name="Player" parent="." node_paths=PackedStringArray("PlayerCamera") instance=ExtResource("11_p6iu8")]
|
||||
PlayerCamera = NodePath("../Camera2D")
|
||||
moveSpeed = 600.0
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="." node_paths=PackedStringArray("Target")]
|
||||
zoom = Vector2(0.5, 0.5)
|
||||
script = ExtResource("4_ai87t")
|
||||
Target = NodePath("../Player")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Bag" parent="CanvasLayer" node_paths=PackedStringArray("player") instance=ExtResource("13_p6iu8")]
|
||||
visible = false
|
||||
player = NodePath("../../Player")
|
||||
animationTime = 0.3
|
||||
|
||||
[node name="DevUi" parent="CanvasLayer" node_paths=PackedStringArray("player") instance=ExtResource("13_uqlbb")]
|
||||
visible = false
|
||||
player = NodePath("../../Player")
|
||||
|
||||
[node name="TickControl" type="Node" parent="."]
|
||||
script = ExtResource("14_00uec")
|
||||
|
||||
[node name="InputControl" type="Node" parent="." node_paths=PackedStringArray("tickControl", "player", "bagUI", "devUI")]
|
||||
script = ExtResource("15_s21oq")
|
||||
tickControl = NodePath("../TickControl")
|
||||
player = NodePath("../Player")
|
||||
bagUI = NodePath("../CanvasLayer/Bag")
|
||||
devUI = NodePath("../CanvasLayer/DevUi")
|
54
场景/player.tscn
Normal file
54
场景/player.tscn
Normal file
@ -0,0 +1,54 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://c366fehx7raps"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bfb4jkr001yc3" path="res://图片/Plyear/body/south.png" id="1_hvrvy"]
|
||||
[ext_resource type="Script" uid="uid://c1g503q7yoy1s" path="res://Script/Pawn/Player.cs" id="2_1mmea"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcyqk5dse5rfr" path="res://图片/Plyear/hairBackground/KiiroHairBG5_south.png" id="3_ftrlp"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddwe3fgpw6lws" path="res://图片/Plyear/clothing/south.png" id="4_818b3"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2i248a85m3yy" path="res://图片/Plyear/head/KiiroHeadH1_south.png" id="5_jb7g2"]
|
||||
[ext_resource type="Texture2D" uid="uid://cr5cdhh3sg6ak" path="res://图片/Plyear/hair/KiiroHair5_south.png" id="6_8c0k4"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5y5ge1gju2ed" path="res://图片/Plyear/leftEar/LeftEar_south.png" id="7_0wgn0"]
|
||||
[ext_resource type="Texture2D" uid="uid://co1muhiugohsd" path="res://图片/Plyear/rightEar/RightEar_south.png" id="8_nmbpy"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_f1exj"]
|
||||
radius = 56.0
|
||||
height = 380.0
|
||||
|
||||
[node name="Player" type="Sprite2D" node_paths=PackedStringArray("head", "body", "clothes", "hairBackground", "hair", "leftEar", "rightEar")]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("1_hvrvy")
|
||||
script = ExtResource("2_1mmea")
|
||||
moveSpeed = 300.0
|
||||
head = NodePath("head")
|
||||
body = NodePath(".")
|
||||
clothes = NodePath("clothing")
|
||||
hairBackground = NodePath("hairBackground")
|
||||
hair = NodePath("head/hair")
|
||||
leftEar = NodePath("head/leftEar")
|
||||
rightEar = NodePath("head/rightEar")
|
||||
characterResourcesPath = "res://图片/Plyear/"
|
||||
|
||||
[node name="hairBackground" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -107)
|
||||
texture = ExtResource("3_ftrlp")
|
||||
|
||||
[node name="clothing" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("4_818b3")
|
||||
|
||||
[node name="head" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -107)
|
||||
texture = ExtResource("5_jb7g2")
|
||||
|
||||
[node name="hair" type="Sprite2D" parent="head"]
|
||||
texture = ExtResource("6_8c0k4")
|
||||
|
||||
[node name="leftEar" type="Sprite2D" parent="head"]
|
||||
texture = ExtResource("7_0wgn0")
|
||||
|
||||
[node name="rightEar" type="Sprite2D" parent="head"]
|
||||
texture = ExtResource("8_nmbpy")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
position = Vector2(0, 26)
|
||||
shape = SubResource("CapsuleShape2D_f1exj")
|
5
场景/start.tscn
Normal file
5
场景/start.tscn
Normal file
@ -0,0 +1,5 @@
|
||||
[gd_scene format=3 uid="uid://ccq7tgdxq76tq"]
|
||||
|
||||
[node name="Start" type="Node2D"]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
Reference in New Issue
Block a user