84 lines
3.9 KiB
Plaintext
84 lines
3.9 KiB
Plaintext
[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"]
|