This commit is contained in:
TsubakiLoL 2024-09-10 16:34:05 +08:00
parent 9f665497ab
commit 46b93c0a1f
34 changed files with 949 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bxbwbvgbfntiv"
path="res://.godot/imported/图层 1.png-0216530e402bf24b13e3a845941b409f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层 1.png"
dest_files=["res://.godot/imported/图层 1.png-0216530e402bf24b13e3a845941b409f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ckbu37n5w8de8"
path="res://.godot/imported/图层 3.png-10c4855185720b7eba1108fbfaae067c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层 3.png"
dest_files=["res://.godot/imported/图层 3.png-10c4855185720b7eba1108fbfaae067c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dr4heoy0kivbq"
path="res://.godot/imported/图层 5.png-94036468c32980bc4b52e23cd9a2ff17.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层 5.png"
dest_files=["res://.godot/imported/图层 5.png-94036468c32980bc4b52e23cd9a2ff17.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bt5qrcsynsp6j"
path="res://.godot/imported/图层231.png-e40d18924fa330a18c81d5129ffd2be3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层231.png"
dest_files=["res://.godot/imported/图层231.png-e40d18924fa330a18c81d5129ffd2be3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bi4qd4hkdm4wb"
path="res://.godot/imported/图层35.png-ccff6dcb17a01f2aa20d1ae9f28a89d9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层35.png"
dest_files=["res://.godot/imported/图层35.png-ccff6dcb17a01f2aa20d1ae9f28a89d9.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://13ed8w6scsgo"
path="res://.godot/imported/图层38.png-814b23b3d586bc9213c53a5cd20d070c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层38.png"
dest_files=["res://.godot/imported/图层38.png-814b23b3d586bc9213c53a5cd20d070c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ddwgjg72ivkwn"
path="res://.godot/imported/图层39.png-920bcf1f9c2bdf8271abbb5ec7c448e4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层39.png"
dest_files=["res://.godot/imported/图层39.png-920bcf1f9c2bdf8271abbb5ec7c448e4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://p68ycyicgxxe"
path="res://.godot/imported/图层40.png-44784f7cfa74da92ac396b6c9a619f7d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层40.png"
dest_files=["res://.godot/imported/图层40.png-44784f7cfa74da92ac396b6c9a619f7d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bq23yis2bwf3d"
path="res://.godot/imported/图层41.png-74f894293432747e6ca0b83d24bb0075.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层41.png"
dest_files=["res://.godot/imported/图层41.png-74f894293432747e6ca0b83d24bb0075.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://blv4q1cix0hu0"
path="res://.godot/imported/图层42.png-68f5db644c66f45ca54c691badf929dd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层42.png"
dest_files=["res://.godot/imported/图层42.png-68f5db644c66f45ca54c691badf929dd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cxo6pmp6bo4nf"
path="res://.godot/imported/图层43.png-cde55ff0ef1b0de4b1e07e8877460679.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层43.png"
dest_files=["res://.godot/imported/图层43.png-cde55ff0ef1b0de4b1e07e8877460679.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b2wy134i3get4"
path="res://.godot/imported/图层66.png-3147e12b0f1063950d558dca8ce2f5fd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层66.png"
dest_files=["res://.godot/imported/图层66.png-3147e12b0f1063950d558dca8ce2f5fd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d3meg8ge874u8"
path="res://.godot/imported/图层67.png-88355b3e39bb22cd0c7c45f4c3193d5e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层67.png"
dest_files=["res://.godot/imported/图层67.png-88355b3e39bb22cd0c7c45f4c3193d5e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cpp1oa06e780d"
path="res://.godot/imported/图层68.png-119958f28ccbb8701121eb836a11ee9f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层68.png"
dest_files=["res://.godot/imported/图层68.png-119958f28ccbb8701121eb836a11ee9f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://5tl46hgyvw0n"
path="res://.godot/imported/图层71.png-56b702258e652a19642234715ea4e0b3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/character_bag/图层71.png"
dest_files=["res://.godot/imported/图层71.png-56b702258e652a19642234715ea4e0b3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

291
scene/character_bag.tscn Normal file
View File

@ -0,0 +1,291 @@
[gd_scene load_steps=18 format=3 uid="uid://cgl1vcdusqroq"]
[ext_resource type="Texture2D" uid="uid://bxbwbvgbfntiv" path="res://res/ui/character_bag/图层 1.png" id="1_688g7"]
[ext_resource type="Texture2D" uid="uid://bt5qrcsynsp6j" path="res://res/ui/character_bag/图层231.png" id="2_bq8dd"]
[ext_resource type="Texture2D" uid="uid://bi4qd4hkdm4wb" path="res://res/ui/character_bag/图层35.png" id="3_m44x5"]
[ext_resource type="PackedScene" uid="uid://dacsn16xvd4dj" path="res://scene/character_bag_card.tscn" id="4_i7p8r"]
[ext_resource type="Texture2D" uid="uid://blv4q1cix0hu0" path="res://res/ui/character_bag/图层42.png" id="4_us8ay"]
[ext_resource type="Texture2D" uid="uid://cxo6pmp6bo4nf" path="res://res/ui/character_bag/图层43.png" id="6_gxmw5"]
[ext_resource type="Texture2D" uid="uid://13ed8w6scsgo" path="res://res/ui/character_bag/图层38.png" id="7_piio5"]
[ext_resource type="Texture2D" uid="uid://ddwgjg72ivkwn" path="res://res/ui/character_bag/图层39.png" id="8_pn6mv"]
[ext_resource type="Texture2D" uid="uid://p68ycyicgxxe" path="res://res/ui/character_bag/图层40.png" id="9_tg2kw"]
[ext_resource type="Texture2D" uid="uid://bq23yis2bwf3d" path="res://res/ui/character_bag/图层41.png" id="10_ijoj6"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3l4tb"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7x5v6"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_yu86v"]
[sub_resource type="Gradient" id="Gradient_ht7bm"]
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_xx4c2"]
gradient = SubResource("Gradient_ht7bm")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_26agh"]
texture = SubResource("GradientTexture1D_xx4c2")
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xo627"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="back" 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_688g7")
expand_mode = 1
stretch_mode = 6
[node name="Button" type="Button" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.00677083
anchor_top = 0.0138889
anchor_right = 0.0677083
anchor_bottom = 0.0833333
offset_right = -8.0
offset_bottom = -8.0
focus_mode = 0
icon = ExtResource("2_bq8dd")
flat = true
[node name="NinePatchRect" type="NinePatchRect" parent="."]
layout_mode = 0
anchor_left = 0.025
anchor_top = 0.087037
anchor_right = 0.842188
anchor_bottom = 0.977778
texture = ExtResource("3_m44x5")
patch_margin_left = 34
patch_margin_top = 34
patch_margin_bottom = 34
metadata/_edit_use_anchors_ = true
[node name="MarginContainer" type="MarginContainer" parent="NinePatchRect"]
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 = 34
theme_override_constants/margin_top = 34
theme_override_constants/margin_bottom = 34
[node name="ScrollContainer" type="ScrollContainer" parent="NinePatchRect/MarginContainer"]
layout_mode = 2
horizontal_scroll_mode = 0
vertical_scroll_mode = 3
[node name="flow" type="HFlowContainer" parent="NinePatchRect/MarginContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
[node name="TextureRect" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect2" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect3" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect4" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect5" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect6" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect7" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect8" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect9" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect10" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="TextureRect11" parent="NinePatchRect/MarginContainer/ScrollContainer/flow" instance=ExtResource("4_i7p8r")]
layout_mode = 2
[node name="NinePatchRect2" type="NinePatchRect" parent="."]
layout_mode = 0
anchor_left = 0.839063
anchor_top = 0.0990741
anchor_right = 0.969792
anchor_bottom = 0.95463
texture = ExtResource("4_us8ay")
metadata/_edit_use_anchors_ = true
[node name="MarginContainer" type="MarginContainer" parent="NinePatchRect2"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_top = 20
theme_override_constants/margin_bottom = 20
[node name="VBoxContainer" type="VBoxContainer" parent="NinePatchRect2/MarginContainer"]
layout_mode = 2
[node name="PanelContainer" type="PanelContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
size_flags_vertical = 0
theme_override_styles/panel = SubResource("StyleBoxEmpty_3l4tb")
[node name="HBoxContainer" type="HBoxContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 8
size_flags_stretch_ratio = 2.0
texture = ExtResource("6_gxmw5")
stretch_mode = 5
[node name="Label" type="Label" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 2
size_flags_vertical = 8
size_flags_stretch_ratio = 3.0
theme_override_font_sizes/font_size = 34
text = "全部"
[node name="Button" type="Button" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer"]
layout_mode = 2
focus_mode = 0
flat = true
[node name="PanelContainer2" type="PanelContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_7x5v6")
[node name="HBoxContainer2" type="HBoxContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer2"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer2/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_stretch_ratio = 2.0
texture = ExtResource("7_piio5")
stretch_mode = 5
[node name="Label" type="Label" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer2/HBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 2
size_flags_vertical = 8
size_flags_stretch_ratio = 3.0
theme_override_font_sizes/font_size = 34
text = "历史"
[node name="Button" type="Button" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer2"]
layout_mode = 2
focus_mode = 0
flat = true
[node name="PanelContainer3" type="PanelContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_yu86v")
[node name="HBoxContainer3" type="HBoxContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer3"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer3/HBoxContainer3"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_stretch_ratio = 2.0
texture = ExtResource("8_pn6mv")
stretch_mode = 5
[node name="Label" type="Label" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer3/HBoxContainer3"]
layout_mode = 2
size_flags_horizontal = 2
size_flags_vertical = 8
size_flags_stretch_ratio = 3.0
theme_override_font_sizes/font_size = 34
text = "奇幻"
[node name="Button" type="Button" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer3"]
layout_mode = 2
focus_mode = 0
flat = true
[node name="PanelContainer4" type="PanelContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxTexture_26agh")
[node name="HBoxContainer4" type="HBoxContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer4"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer4/HBoxContainer4"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_stretch_ratio = 2.0
texture = ExtResource("9_tg2kw")
stretch_mode = 5
[node name="Label" type="Label" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer4/HBoxContainer4"]
layout_mode = 2
size_flags_horizontal = 2
size_flags_vertical = 8
size_flags_stretch_ratio = 3.0
theme_override_font_sizes/font_size = 34
text = "现实"
[node name="Button" type="Button" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer4"]
layout_mode = 2
focus_mode = 0
flat = true
[node name="PanelContainer5" type="PanelContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_xo627")
[node name="HBoxContainer5" type="HBoxContainer" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer5"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer5/HBoxContainer5"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_stretch_ratio = 2.0
texture = ExtResource("10_ijoj6")
stretch_mode = 5
[node name="Label" type="Label" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer5/HBoxContainer5"]
layout_mode = 2
size_flags_horizontal = 2
size_flags_vertical = 8
size_flags_stretch_ratio = 3.0
theme_override_font_sizes/font_size = 34
text = "末世"
[node name="Button" type="Button" parent="NinePatchRect2/MarginContainer/VBoxContainer/PanelContainer5"]
layout_mode = 2
focus_mode = 0
flat = true

View File

@ -0,0 +1,27 @@
extends TextureRect
class_name CharacterBagCard
@onready var star_group:Array[TextureRect]=[$mask/HBoxContainer/HBoxContainer/TextureRect, $mask/HBoxContainer/HBoxContainer/TextureRect2, $mask/HBoxContainer/HBoxContainer/TextureRect3, $mask/HBoxContainer/HBoxContainer/TextureRect4, $mask/HBoxContainer/HBoxContainer/TextureRect5]
var data={
"star_num":3,
"face":"res://res/ui/select/test.png",
"name":"角色名字"
}
func set_star_num(num:int):
for i in star_group.size():
if i<num:
star_group[i].show()
else:
star_group[i].hide()
pass
func set_face(path:String):
var new_face=load(path)
if new_face!=null and new_face is Texture2D:
%texture_face.texture=new_face
func set_character_name(n:String):
%n.text=n
pass
func _ready() -> void:
set_star_num(data.star_num)
set_face(data.face)
set_character_name(data.name)

View File

@ -0,0 +1,104 @@
[gd_scene load_steps=7 format=3 uid="uid://dacsn16xvd4dj"]
[ext_resource type="Texture2D" uid="uid://5tl46hgyvw0n" path="res://res/ui/character_bag/图层71.png" id="1_k4ylg"]
[ext_resource type="Script" path="res://scene/character_bag_card.gd" id="2_47isi"]
[ext_resource type="Texture2D" uid="uid://li8e5ntlgcpg" path="res://res/ui/select/test.png" id="2_jooco"]
[ext_resource type="Texture2D" uid="uid://ckbu37n5w8de8" path="res://res/ui/character_bag/图层 3.png" id="3_b4wi7"]
[ext_resource type="Texture2D" uid="uid://b2wy134i3get4" path="res://res/ui/character_bag/图层66.png" id="4_5677t"]
[ext_resource type="Texture2D" uid="uid://d3meg8ge874u8" path="res://res/ui/character_bag/图层67.png" id="5_ahpsw"]
[node name="TextureRect" type="TextureRect"]
anchors_preset = -1
anchor_right = 0.143229
anchor_bottom = 0.437037
size_flags_horizontal = 0
texture = ExtResource("1_k4ylg")
script = ExtResource("2_47isi")
metadata/_edit_use_anchors_ = true
[node name="mask" type="TextureRect" parent="."]
clip_contents = true
layout_mode = 1
anchors_preset = -1
anchor_left = 0.116364
anchor_top = 0.0741525
anchor_right = 0.865455
anchor_bottom = 0.891949
texture = ExtResource("4_5677t")
stretch_mode = 5
metadata/_edit_use_anchors_ = true
[node name="texture_face" type="TextureRect" parent="mask"]
unique_name_in_owner = true
show_behind_parent = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_jooco")
expand_mode = 1
stretch_mode = 6
[node name="TextureRect" type="TextureRect" parent="mask"]
show_behind_parent = true
layout_mode = 1
anchors_preset = -1
anchor_top = -0.0137157
anchor_right = 1.0
anchor_bottom = 1.01372
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_b4wi7")
metadata/_edit_use_anchors_ = true
[node name="HBoxContainer" type="HBoxContainer" parent="mask"]
layout_mode = 1
anchors_preset = -1
anchor_left = 0.0533981
anchor_top = 0.888601
anchor_right = 0.932039
anchor_bottom = 0.979275
metadata/_edit_use_anchors_ = true
[node name="HBoxContainer" type="HBoxContainer" parent="mask/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 6
[node name="TextureRect" type="TextureRect" parent="mask/HBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("5_ahpsw")
[node name="TextureRect2" type="TextureRect" parent="mask/HBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("5_ahpsw")
[node name="TextureRect3" type="TextureRect" parent="mask/HBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("5_ahpsw")
[node name="TextureRect4" type="TextureRect" parent="mask/HBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("5_ahpsw")
[node name="TextureRect5" type="TextureRect" parent="mask/HBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("5_ahpsw")
[node name="n" type="Label" parent="."]
unique_name_in_owner = true
layout_mode = 0
anchor_left = 0.327273
anchor_top = 0.894068
anchor_right = 0.665455
anchor_bottom = 0.942797
text = "角色名字"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=22 format=3 uid="uid://33lcg23hy4mi"]
[gd_scene load_steps=23 format=3 uid="uid://33lcg23hy4mi"]
[ext_resource type="Script" path="res://scene/select.gd" id="1_cgnul"]
[ext_resource type="Texture2D" uid="uid://li8e5ntlgcpg" path="res://res/ui/select/test.png" id="3_jw1jl"]
@ -17,6 +17,7 @@
[ext_resource type="Texture2D" uid="uid://3j0a4ta8ww4y" path="res://res/ui/select/现实图标.png" id="12_qqyd6"]
[ext_resource type="Texture2D" uid="uid://y03c11caxq5g" path="res://res/ui/select/末世图标.png" id="13_06h8p"]
[ext_resource type="Texture2D" uid="uid://cukrtaeu70hc5" path="res://res/ui/select/继续图标.png" id="15_jcwu5"]
[ext_resource type="Texture2D" uid="uid://bt5qrcsynsp6j" path="res://res/ui/character_bag/图层231.png" id="18_qwfod"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ly4bd"]
resource_local_to_scene = true
@ -94,10 +95,10 @@ metadata/_edit_use_anchors_ = true
layout_mode = 1
anchors_preset = -1
anchor_left = 0.0614583
anchor_top = 0.05
anchor_top = 0.0851852
anchor_right = 0.261979
anchor_bottom = 0.833333
theme_override_constants/separation = 48
anchor_bottom = 0.868519
theme_override_constants/separation = 35
metadata/_edit_use_anchors_ = true
[node name="Button1" type="Button" parent="VBoxContainer"]
@ -534,6 +535,18 @@ horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="Button" type="Button" parent="."]
layout_mode = 0
anchor_left = 0.00677083
anchor_top = 0.0138889
anchor_right = 0.0677083
anchor_bottom = 0.0833333
offset_right = -8.0
offset_bottom = -8.0
focus_mode = 0
icon = ExtResource("18_qwfod")
flat = true
[connection signal="pressed" from="VBoxContainer/Button1" to="." method="side_btn_clicked" binds= [0]]
[connection signal="pressed" from="VBoxContainer/Button2" to="." method="side_btn_clicked" binds= [1]]
[connection signal="pressed" from="VBoxContainer/Button3" to="." method="side_btn_clicked" binds= [2]]