This commit is contained in:
TsubakiLoL 2024-09-10 18:01:45 +08:00
parent c96b83e5a0
commit a581ee003b
38 changed files with 936 additions and 17 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bjfkp3bcw7rjj"
path="res://.godot/imported/图层 1.png-32a88135ffcd965f8cdaf16208c12817.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层 1.png"
dest_files=["res://.godot/imported/图层 1.png-32a88135ffcd965f8cdaf16208c12817.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: 874 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dygka5vk5qdhs"
path="res://.godot/imported/图层 2.png-db5388807859d42681fe5466c4c46623.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层 2.png"
dest_files=["res://.godot/imported/图层 2.png-db5388807859d42681fe5466c4c46623.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: 10 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0souut27w2rq"
path="res://.godot/imported/图层100.png-af14a0ae7f36fe7562eb20e6a917ea86.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层100.png"
dest_files=["res://.godot/imported/图层100.png-af14a0ae7f36fe7562eb20e6a917ea86.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: 8.1 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bd8ihwl2g1igc"
path="res://.godot/imported/图层101.png-6706cfe7e935dcf46d6945decb1ec8e1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层101.png"
dest_files=["res://.godot/imported/图层101.png-6706cfe7e935dcf46d6945decb1ec8e1.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: 5.7 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://jp6na74ed4yn"
path="res://.godot/imported/图层102.png-1a3ace471431d6095635b86a727fe0c4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层102.png"
dest_files=["res://.godot/imported/图层102.png-1a3ace471431d6095635b86a727fe0c4.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: 29 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://baou8kmprfpwt"
path="res://.godot/imported/图层103.png-a51c042a09711cc5cd305db7ebe73d5b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层103.png"
dest_files=["res://.godot/imported/图层103.png-a51c042a09711cc5cd305db7ebe73d5b.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: 30 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c6ftnvo1gl1o7"
path="res://.godot/imported/图层127.png-43688f295c63d73b77d0cfc021d877b1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层127.png"
dest_files=["res://.godot/imported/图层127.png-43688f295c63d73b77d0cfc021d877b1.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.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://byjpm2savyf63"
path="res://.godot/imported/图层132.png-a600cee18ca00b5dc2a674a103e6649e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层132.png"
dest_files=["res://.godot/imported/图层132.png-a600cee18ca00b5dc2a674a103e6649e.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.2 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dtkl2k8r6ivj5"
path="res://.godot/imported/图层135.png-2b5578fd3b65865a62ff63d180b29a79.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层135.png"
dest_files=["res://.godot/imported/图层135.png-2b5578fd3b65865a62ff63d180b29a79.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: 5.7 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://by70vhlonu4ml"
path="res://.godot/imported/图层173.png-0c011ba0e6d244b1059d6ddfabc5897b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层173.png"
dest_files=["res://.godot/imported/图层173.png-0c011ba0e6d244b1059d6ddfabc5897b.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.9 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://hpogdw4jv6rl"
path="res://.godot/imported/图层177.png-2f9b9c629960891f05e3df56e78bafc4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层177.png"
dest_files=["res://.godot/imported/图层177.png-2f9b9c629960891f05e3df56e78bafc4.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://4vh7r32sndeq"
path="res://.godot/imported/图层230.png-180d80bbf220b6d11d861100e8f9f1f6.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层230.png"
dest_files=["res://.godot/imported/图层230.png-180d80bbf220b6d11d861100e8f9f1f6.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: 47 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0hc28s0y5c0q"
path="res://.godot/imported/图层89.png-afdcb35304bb54d741d18872be637207.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层89.png"
dest_files=["res://.godot/imported/图层89.png-afdcb35304bb54d741d18872be637207.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: 11 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://drgfs6epv0jqd"
path="res://.godot/imported/图层92.png-6efb7a96aa44978b322fe6d2612e90d2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层92.png"
dest_files=["res://.godot/imported/图层92.png-6efb7a96aa44978b322fe6d2612e90d2.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: 279 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://x063sguqi6g6"
path="res://.godot/imported/图层93.png-b23cbf6b3f8157da05bd95d73146c492.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层93.png"
dest_files=["res://.godot/imported/图层93.png-b23cbf6b3f8157da05bd95d73146c492.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: 103 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djaebws5opaql"
path="res://.godot/imported/图层95.png-6ea835a7d6ea96f050578f700ba3b4ee.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层95.png"
dest_files=["res://.godot/imported/图层95.png-6ea835a7d6ea96f050578f700ba3b4ee.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: 97 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://vbtkrk0b8c3u"
path="res://.godot/imported/图层97.png-c830e804809ee5aee54464cbcdac7740.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/ui/ui_005_basic_message/图层97.png"
dest_files=["res://.godot/imported/图层97.png-c830e804809ee5aee54464cbcdac7740.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

317
scene/basic_message.tscn Normal file
View File

@ -0,0 +1,317 @@
[gd_scene load_steps=17 format=3 uid="uid://chh7gr3qbkr8u"]
[ext_resource type="Texture2D" uid="uid://dygka5vk5qdhs" path="res://res/ui/ui_005_basic_message/图层 2.png" id="1_vhe21"]
[ext_resource type="Texture2D" uid="uid://vbtkrk0b8c3u" path="res://res/ui/ui_005_basic_message/图层97.png" id="2_u0tfq"]
[ext_resource type="Texture2D" uid="uid://drgfs6epv0jqd" path="res://res/ui/ui_005_basic_message/图层92.png" id="3_5dvp4"]
[ext_resource type="Texture2D" uid="uid://d3meg8ge874u8" path="res://res/ui/ui_004_character_bag/图层67.png" id="4_el6g3"]
[ext_resource type="Texture2D" uid="uid://hpogdw4jv6rl" path="res://res/ui/ui_005_basic_message/图层177.png" id="5_5lslk"]
[ext_resource type="Texture2D" uid="uid://c6ftnvo1gl1o7" path="res://res/ui/ui_005_basic_message/图层127.png" id="6_s8ry1"]
[ext_resource type="Texture2D" uid="uid://djaebws5opaql" path="res://res/ui/ui_005_basic_message/图层95.png" id="7_a1x8x"]
[ext_resource type="Texture2D" uid="uid://x063sguqi6g6" path="res://res/ui/ui_005_basic_message/图层93.png" id="8_bo3jh"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_7cm0j"]
texture = ExtResource("2_u0tfq")
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_v80f3"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_x5uu1"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_vae5h"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_pyyu2"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_81i7t"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_e8md5"]
texture = ExtResource("7_a1x8x")
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_k0wv2"]
texture = ExtResource("8_bo3jh")
[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_vhe21")
expand_mode = 1
stretch_mode = 6
[node name="panel" type="Panel" parent="."]
layout_mode = 0
anchor_left = 0.0171875
anchor_top = 0.0972222
anchor_right = 0.116146
anchor_bottom = 0.967593
theme_override_styles/panel = SubResource("StyleBoxTexture_7cm0j")
metadata/_edit_use_anchors_ = true
[node name="MarginContainer" type="MarginContainer" parent="panel"]
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 = 13
theme_override_constants/margin_top = 25
theme_override_constants/margin_right = 15
theme_override_constants/margin_bottom = 25
[node name="ScrollContainer" type="ScrollContainer" parent="panel/MarginContainer"]
layout_mode = 2
horizontal_scroll_mode = 0
vertical_scroll_mode = 3
[node name="VBoxContainer" type="VBoxContainer" parent="panel/MarginContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="character" type="TextureRect" parent="."]
layout_mode = 0
anchor_left = 0.191146
anchor_top = 0.0953704
anchor_right = 0.46875
anchor_bottom = 1.0
expand_mode = 1
stretch_mode = 5
metadata/_edit_use_anchors_ = true
[node name="texture" type="TextureRect" parent="."]
layout_mode = 0
anchor_left = 0.1375
anchor_top = 0.0444444
anchor_right = 0.323958
anchor_bottom = 0.126852
texture = ExtResource("3_5dvp4")
metadata/_edit_use_anchors_ = true
[node name="MarginContainer" type="MarginContainer" parent="texture"]
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 = 27
[node name="HBoxContainer" type="HBoxContainer" parent="texture/MarginContainer"]
layout_mode = 2
[node name="star1" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"]
layout_mode = 2
texture = ExtResource("4_el6g3")
stretch_mode = 5
[node name="star2" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"]
layout_mode = 2
texture = ExtResource("4_el6g3")
stretch_mode = 5
[node name="star3" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"]
layout_mode = 2
texture = ExtResource("4_el6g3")
stretch_mode = 5
[node name="star4" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"]
layout_mode = 2
texture = ExtResource("4_el6g3")
stretch_mode = 5
[node name="star5" type="TextureRect" parent="texture/MarginContainer/HBoxContainer"]
layout_mode = 2
texture = ExtResource("4_el6g3")
stretch_mode = 5
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 0
anchor_left = 0.471354
anchor_top = 0.0398148
anchor_right = 1.0
anchor_bottom = 1.0
metadata/_edit_use_anchors_ = true
[node name="TextureRect" type="TextureRect" parent="VBoxContainer"]
custom_minimum_size = Vector2(961, 98)
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 3
size_flags_stretch_ratio = 98.0
texture = ExtResource("5_5lslk")
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TextureRect"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Button" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 30
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_v80f3")
theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h")
theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2")
text = "基础信息"
flat = true
[node name="Button2" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 30
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_v80f3")
theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h")
theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2")
text = "特质能力"
flat = true
[node name="Button3" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 30
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_v80f3")
theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h")
theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2")
text = "人际关系"
flat = true
[node name="Button4" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 30
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_v80f3")
theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h")
theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2")
text = "背包"
flat = true
[node name="Button5" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 30
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_v80f3")
theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h")
theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2")
text = "技能配置"
flat = true
[node name="Button6" type="Button" parent="VBoxContainer/TextureRect/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 8
theme_override_font_sizes/font_size = 30
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_v80f3")
theme_override_styles/hover = SubResource("StyleBoxEmpty_x5uu1")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_vae5h")
theme_override_styles/normal = SubResource("StyleBoxEmpty_pyyu2")
text = "开局配置"
flat = true
[node name="TabContainer" type="TabContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 939.0
theme_override_styles/panel = SubResource("StyleBoxEmpty_81i7t")
current_tab = 0
clip_tabs = false
tabs_visible = false
[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/TabContainer"]
layout_mode = 2
theme_override_constants/margin_right = 19
theme_override_constants/margin_bottom = 43
metadata/_tab_index = 0
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/TabContainer/MarginContainer"]
layout_mode = 2
[node name="texture" type="TextureRect" parent="VBoxContainer/TabContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(996, 0)
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 3
size_flags_stretch_ratio = 110.0
texture = ExtResource("6_s8ry1")
[node name="Panel" type="Panel" parent="VBoxContainer/TabContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(942, 0)
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 3
size_flags_stretch_ratio = 186.0
theme_override_styles/panel = SubResource("StyleBoxTexture_e8md5")
[node name="Label" type="Label" parent="VBoxContainer/TabContainer/MarginContainer/VBoxContainer/Panel"]
layout_mode = 0
anchor_left = 0.0191083
anchor_top = 0.0928962
anchor_right = 0.115711
anchor_bottom = 0.338798
theme_override_colors/font_color = Color(0.800491, 0.800491, 0.800491, 1)
theme_override_font_sizes/font_size = 30
text = "简介"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
[node name="Label2" type="Label" parent="VBoxContainer/TabContainer/MarginContainer/VBoxContainer/Panel"]
layout_mode = 0
anchor_left = 0.150743
anchor_top = 0.15847
anchor_right = 0.960722
anchor_bottom = 0.819672
metadata/_edit_use_anchors_ = true
[node name="tab" type="Control" parent="VBoxContainer/TabContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 28.0
[node name="Panel2" type="Panel" parent="VBoxContainer/TabContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(942, 0)
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 3
size_flags_stretch_ratio = 565.0
theme_override_styles/panel = SubResource("StyleBoxTexture_k0wv2")

View File

@ -1,12 +1,15 @@
extends TextureRect extends TextureRect
class_name CharacterBagCard class_name CharacterBagCard
#被按下时发出
signal self_click(card: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] @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]
#初始化数据应先更改此字典然后进行add child 触发ready
var data={ var data={
"star_num":3, "star_num":3,
"face":"res://res/ui/ui_003_select/test.png", "face":"res://res/ui/ui_003_select/test.png",
"name":"角色名字" "name":"角色名字"
} }
#设置星数
func set_star_num(num:int): func set_star_num(num:int):
for i in star_group.size(): for i in star_group.size():
if i<num: if i<num:
@ -14,10 +17,12 @@ func set_star_num(num:int):
else: else:
star_group[i].hide() star_group[i].hide()
pass pass
#设置卡面
func set_face(path:String): func set_face(path:String):
var new_face=load(path) var new_face=load(path)
if new_face!=null and new_face is Texture2D: if new_face!=null and new_face is Texture2D:
%texture_face.texture=new_face %texture_face.texture=new_face
#设置名字
func set_character_name(n:String): func set_character_name(n:String):
%n.text=n %n.text=n
pass pass
@ -25,3 +30,8 @@ func _ready() -> void:
set_star_num(data.star_num) set_star_num(data.star_num)
set_face(data.face) set_face(data.face)
set_character_name(data.name) set_character_name(data.name)
func _on_button_pressed() -> void:
self_click.emit(self)
pass # Replace with function body.

View File

@ -91,6 +91,16 @@ layout_mode = 2
size_flags_horizontal = 4 size_flags_horizontal = 4
texture = ExtResource("5_ahpsw") texture = ExtResource("5_ahpsw")
[node name="Button" type="Button" parent="mask"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
focus_mode = 0
flat = true
[node name="n" type="Label" parent="."] [node name="n" type="Label" parent="."]
unique_name_in_owner = true unique_name_in_owner = true
layout_mode = 0 layout_mode = 0
@ -102,3 +112,5 @@ text = "角色名字"
horizontal_alignment = 1 horizontal_alignment = 1
vertical_alignment = 1 vertical_alignment = 1
metadata/_edit_use_anchors_ = true metadata/_edit_use_anchors_ = true
[connection signal="pressed" from="mask/Button" to="." method="_on_button_pressed"]

View File

@ -22,11 +22,11 @@
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ly4bd"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_ly4bd"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("4_dco75") shader = ExtResource("4_dco75")
shader_parameter/power = 1.0 shader_parameter/power = 0.8
shader_parameter/up = 0.2 shader_parameter/up = 0.3
shader_parameter/down = 0.2 shader_parameter/down = 0.3
shader_parameter/left = 0.2 shader_parameter/left = 0.3
shader_parameter/right = 0.2 shader_parameter/right = 0.3
shader_parameter/up_clip = 0.0 shader_parameter/up_clip = 0.0
shader_parameter/down_clip = 0.0 shader_parameter/down_clip = 0.0
shader_parameter/left_clip = 0.0 shader_parameter/left_clip = 0.0
@ -68,7 +68,7 @@ z_index = 1
material = SubResource("ShaderMaterial_ly4bd") material = SubResource("ShaderMaterial_ly4bd")
layout_mode = 2 layout_mode = 2
anchor_left = 0.179688 anchor_left = 0.179688
anchor_top = 0.0657407 anchor_top = 0.00185185
anchor_right = 0.775 anchor_right = 0.775
anchor_bottom = 0.917593 anchor_bottom = 0.917593
grow_horizontal = 2 grow_horizontal = 2
@ -83,9 +83,9 @@ show_behind_parent = true
layout_mode = 1 layout_mode = 1
anchors_preset = -1 anchors_preset = -1
anchor_left = -0.15923 anchor_left = -0.15923
anchor_top = -0.0771739 anchor_top = -0.00202224
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.09674 anchor_bottom = 1.09707
grow_vertical = 2 grow_vertical = 2
texture = SubResource("GradientTexture1D_lyq3l") texture = SubResource("GradientTexture1D_lyq3l")
expand_mode = 1 expand_mode = 1
@ -96,15 +96,17 @@ layout_mode = 1
anchors_preset = -1 anchors_preset = -1
anchor_left = 0.0614583 anchor_left = 0.0614583
anchor_top = 0.0851852 anchor_top = 0.0851852
anchor_right = 0.261979 anchor_right = 0.262
anchor_bottom = 0.868519 anchor_bottom = 0.803
offset_right = -0.0401001
offset_bottom = -0.240051
theme_override_constants/separation = 35 theme_override_constants/separation = 35
metadata/_edit_use_anchors_ = true metadata/_edit_use_anchors_ = true
[node name="Button1" type="Button" parent="VBoxContainer"] [node name="Button1" type="Button" parent="VBoxContainer"]
z_index = 1 z_index = 1
clip_contents = true clip_contents = true
custom_minimum_size = Vector2(385, 101) custom_minimum_size = Vector2(385, 80)
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 0 size_flags_horizontal = 0
size_flags_vertical = 3 size_flags_vertical = 3
@ -131,7 +133,7 @@ stretch_mode = 6
[node name="Button2" type="Button" parent="VBoxContainer"] [node name="Button2" type="Button" parent="VBoxContainer"]
clip_contents = true clip_contents = true
custom_minimum_size = Vector2(385, 101) custom_minimum_size = Vector2(320, 80)
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 0 size_flags_horizontal = 0
size_flags_vertical = 3 size_flags_vertical = 3
@ -159,7 +161,7 @@ metadata/_edit_use_anchors_ = true
[node name="Button3" type="Button" parent="VBoxContainer"] [node name="Button3" type="Button" parent="VBoxContainer"]
clip_contents = true clip_contents = true
custom_minimum_size = Vector2(385, 101) custom_minimum_size = Vector2(320, 80)
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 0 size_flags_horizontal = 0
size_flags_vertical = 3 size_flags_vertical = 3
@ -187,7 +189,7 @@ metadata/_edit_use_anchors_ = true
[node name="Button4" type="Button" parent="VBoxContainer"] [node name="Button4" type="Button" parent="VBoxContainer"]
clip_contents = true clip_contents = true
custom_minimum_size = Vector2(385, 101) custom_minimum_size = Vector2(320, 80)
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 0 size_flags_horizontal = 0
size_flags_vertical = 3 size_flags_vertical = 3
@ -215,7 +217,7 @@ metadata/_edit_use_anchors_ = true
[node name="Button5" type="Button" parent="VBoxContainer"] [node name="Button5" type="Button" parent="VBoxContainer"]
clip_contents = true clip_contents = true
custom_minimum_size = Vector2(385, 101) custom_minimum_size = Vector2(320, 80)
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 0 size_flags_horizontal = 0
size_flags_vertical = 3 size_flags_vertical = 3
@ -243,7 +245,7 @@ metadata/_edit_use_anchors_ = true
[node name="Button6" type="Button" parent="VBoxContainer"] [node name="Button6" type="Button" parent="VBoxContainer"]
clip_contents = true clip_contents = true
custom_minimum_size = Vector2(385, 101) custom_minimum_size = Vector2(320, 80)
layout_mode = 2 layout_mode = 2
size_flags_horizontal = 0 size_flags_horizontal = 0
size_flags_vertical = 3 size_flags_vertical = 3