制作图鉴

This commit is contained in:
小李xl 2024-03-09 10:15:24 +08:00
parent b619aee85e
commit 1f008f0405
11 changed files with 681 additions and 117 deletions

View File

@ -0,0 +1,134 @@
[gd_scene load_steps=6 format=3 uid="uid://b2xq02i3vxct"]
[ext_resource type="Script" path="res://src/game/ui/encyclopedia/EncyclopediaPanel.cs" id="1_hd86y"]
[ext_resource type="Texture2D" uid="uid://blfvsup876agh" path="res://resource/sprite/ui/commonIcon/Search.png" id="2_3ln1u"]
[ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="3_o1xl7"]
[ext_resource type="Texture2D" uid="uid://bn47bmilcw4x0" path="res://resource/sprite/ui/commonIcon/Select2.png" id="4_gtlqd"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_gm0bl"]
resource_local_to_scene = true
shader = ExtResource("3_o1xl7")
shader_parameter/blend = Color(1, 1, 1, 1)
shader_parameter/schedule = 0.0
shader_parameter/modulate = Color(1, 1, 1, 1)
shader_parameter/show_outline = true
shader_parameter/outline_color = Color(1, 1, 1, 1)
shader_parameter/outline_rainbow = false
shader_parameter/outline_use_blend = true
shader_parameter/grey = 0.0
[node name="Encyclopedia" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource("1_hd86y")
[node name="Panel2" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 75.0
[node name="MarginContainer" type="MarginContainer" parent="Panel2"]
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 = 2
theme_override_constants/margin_top = 2
theme_override_constants/margin_right = 2
theme_override_constants/margin_bottom = 2
[node name="VBoxContainer2" type="VBoxContainer" parent="Panel2/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="MarginContainer" type="MarginContainer" parent="Panel2/MarginContainer/VBoxContainer2"]
layout_mode = 2
theme_override_constants/margin_left = 2
theme_override_constants/margin_top = 2
theme_override_constants/margin_right = 2
theme_override_constants/margin_bottom = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Panel2/MarginContainer/VBoxContainer2/MarginContainer"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
size_flags_vertical = 3
[node name="LineEdit" type="LineEdit" parent="Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
custom_minimum_size = Vector2(500, 44)
layout_mode = 2
size_flags_vertical = 4
placeholder_text = "搜索名称"
[node name="Search" type="Button" parent="Panel2/MarginContainer/VBoxContainer2/MarginContainer/HBoxContainer"]
custom_minimum_size = Vector2(44, 44)
layout_mode = 2
size_flags_vertical = 4
icon = ExtResource("2_3ln1u")
[node name="ScrollContainer" type="ScrollContainer" parent="Panel2/MarginContainer/VBoxContainer2"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 75.0
[node name="ObjectButton" type="Button" parent="Panel2/MarginContainer/VBoxContainer2/ScrollContainer"]
custom_minimum_size = Vector2(124, 160)
layout_mode = 2
[node name="PreviewImage" type="TextureRect" parent="Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
material = SubResource("ShaderMaterial_gm0bl")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 2.0
offset_top = 2.0
offset_right = -2.0
offset_bottom = -38.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
expand_mode = 2
stretch_mode = 5
[node name="ObjectName" type="Label" parent="Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -43.0
offset_right = 124.0
offset_bottom = 43.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(0.5, 0.5)
text = "武器"
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 3
clip_text = true
text_overrun_behavior = 3
[node name="Select" type="NinePatchRect" parent="Panel2/MarginContainer/VBoxContainer2/ScrollContainer/ObjectButton"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_gtlqd")
region_rect = Rect2(0, 0, 36, 36)
patch_margin_left = 8
patch_margin_top = 8
patch_margin_right = 8
patch_margin_bottom = 8

View File

@ -8,6 +8,8 @@ layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_ef73i")
Layer = 2
@ -50,6 +52,22 @@ focus_neighbor_bottom = NodePath("../Setting")
theme = ExtResource("2_x1py5")
text = "重新开始"
[node name="Encyclopedia" type="Button" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 50)
layout_mode = 2
focus_neighbor_top = NodePath("../Exit")
focus_neighbor_bottom = NodePath("../Setting")
theme = ExtResource("2_x1py5")
text = "图鉴"
[node name="Setting" type="Button" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 50)
layout_mode = 2
focus_neighbor_top = NodePath("../Exit")
focus_neighbor_bottom = NodePath("../Setting")
theme = ExtResource("2_x1py5")
text = "设置"
[node name="Exit" type="Button" parent="VBoxContainer"]
custom_minimum_size = Vector2(0, 50)
layout_mode = 2

View File

@ -22,7 +22,6 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_1uvbk")
metadata/_edit_vertical_guides_ = [960.0, 1220.0]
[node name="Bg" type="ColorRect" parent="."]
layout_mode = 1

View File

@ -122,7 +122,7 @@ DefaultLayer = 1
ShowOffset = Vector2(2.08165e-12, 2)
CollisionVisible = false
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0006" index="1"]
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0006" index="0"]
position = Vector2(-10, -7)
texture = ExtResource("7_30qwa")
@ -134,7 +134,7 @@ DefaultLayer = 1
ShowOffset = Vector2(2.08165e-12, 2)
CollisionVisible = false
[node name="ActivityInstance" type="Node2D" parent="ItemRoot/Item0008" index="1"]
[node name="ActivityInstance" type="Node2D" parent="ItemRoot/Item0008" index="0"]
position = Vector2(2.5, -12)
script = ExtResource("5_lowqi")
Id = "item_0031"
@ -150,7 +150,7 @@ DefaultLayer = 1
ShowOffset = Vector2(2.08165e-12, 2)
CollisionVisible = false
[node name="Item26" type="Sprite2D" parent="ItemRoot/Item0013" index="1"]
[node name="Item26" type="Sprite2D" parent="ItemRoot/Item0013" index="0"]
position = Vector2(18, -2)
texture = ExtResource("8_61dkg")
@ -170,19 +170,19 @@ DefaultLayer = 1
ShowOffset = Vector2(2.08165e-12, 2)
CollisionVisible = false
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0017" index="1"]
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0017" index="0"]
position = Vector2(-3, -16)
texture = ExtResource("8_u3vry")
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0017" index="2"]
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0017" index="1"]
position = Vector2(18, -11)
texture = ExtResource("9_lhdr8")
[node name="Sprite2D3" type="Sprite2D" parent="ItemRoot/Item0017" index="3"]
[node name="Sprite2D3" type="Sprite2D" parent="ItemRoot/Item0017" index="2"]
position = Vector2(-16, -8)
texture = ExtResource("10_4eqn0")
[node name="Sprite2D4" type="Sprite2D" parent="ItemRoot/Item0017" index="4"]
[node name="Sprite2D4" type="Sprite2D" parent="ItemRoot/Item0017" index="3"]
position = Vector2(10, -7)
texture = ExtResource("11_tg3jo")
@ -208,11 +208,11 @@ Id = "item_0002"
DefaultLayer = 1
CollisionVisible = false
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0002" index="1"]
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0002" index="0"]
position = Vector2(32, -2)
texture = ExtResource("12_agfji")
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0002" index="2"]
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0002" index="1"]
material = SubResource("ShaderMaterial_i7git")
position = Vector2(-1, -15)
scale = Vector2(1, -1)
@ -230,7 +230,7 @@ script = ExtResource("5_lowqi")
Id = "item_0004"
DefaultLayer = 1
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0004" index="1"]
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0004" index="0"]
position = Vector2(0, -17)
texture = ExtResource("13_unnpl")
@ -264,15 +264,15 @@ script = ExtResource("5_lowqi")
Id = "item_0009"
DefaultLayer = 1
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0009" index="1"]
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0009" index="0"]
position = Vector2(-24, -10)
texture = ExtResource("15_h7524")
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0009" index="2"]
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0009" index="1"]
position = Vector2(1, -10)
texture = ExtResource("15_h7524")
[node name="Sprite2D3" type="Sprite2D" parent="ItemRoot/Item0009" index="3"]
[node name="Sprite2D3" type="Sprite2D" parent="ItemRoot/Item0009" index="2"]
position = Vector2(37, -10)
texture = ExtResource("15_h7524")
@ -306,7 +306,7 @@ script = ExtResource("5_lowqi")
Id = "item_0015"
DefaultLayer = 1
[node name="Slice04" type="Sprite2D" parent="ItemRoot/Item0015" index="1"]
[node name="Slice04" type="Sprite2D" parent="ItemRoot/Item0015" index="0"]
position = Vector2(16, -9)
texture = ExtResource("15_h7524")
@ -328,11 +328,11 @@ script = ExtResource("5_lowqi")
Id = "item_0019"
DefaultLayer = 1
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0019" index="1"]
[node name="Sprite2D" type="Sprite2D" parent="ItemRoot/Item0019" index="0"]
position = Vector2(-23, -7)
texture = ExtResource("16_xj0e1")
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0019" index="2"]
[node name="Sprite2D2" type="Sprite2D" parent="ItemRoot/Item0019" index="1"]
position = Vector2(24, -8)
texture = ExtResource("17_gwwce")
@ -399,19 +399,16 @@ DefaultLayer = 1
position = Vector2(436, 242)
script = ExtResource("5_lowqi")
Id = "weapon0002"
DefaultLayer = 1
[node name="Weapon0003" type="Node2D" parent="ItemRoot" index="35"]
position = Vector2(489, 255)
script = ExtResource("5_lowqi")
Id = "weapon0003"
DefaultLayer = 1
[node name="Weapon0004" type="Node2D" parent="ItemRoot" index="36"]
position = Vector2(543, 261)
script = ExtResource("5_lowqi")
Id = "weapon0004"
DefaultLayer = 1
[node name="Node2D" type="Node2D" parent="." index="6"]
position = Vector2(881, 446)

View File

@ -14,6 +14,7 @@ public class ResourcePath
public const string prefab_ui_MapEditor_tscn = "res://prefab/ui/MapEditor.tscn";
public const string prefab_ui_PauseMenu_tscn = "res://prefab/ui/PauseMenu.tscn";
public const string prefab_ui_MapEditorMapMark_tscn = "res://prefab/ui/MapEditorMapMark.tscn";
public const string prefab_ui_Encyclopedia_tscn = "res://prefab/ui/Encyclopedia.tscn";
public const string prefab_ui_MapEditorCreateMark_tscn = "res://prefab/ui/MapEditorCreateMark.tscn";
public const string prefab_ui_MapEditorCreateRoom_tscn = "res://prefab/ui/MapEditorCreateRoom.tscn";
public const string prefab_ui_EditorImportCombination_tscn = "res://prefab/ui/EditorImportCombination.tscn";
@ -114,6 +115,7 @@ public class ResourcePath
public const string prefab_item_Item0017_tscn = "res://prefab/item/Item0017.tscn";
public const string prefab_item_Item0056_tscn = "res://prefab/item/Item0056.tscn";
public const string prefab_item_Item0001_tscn = "res://prefab/item/Item0001.tscn";
public const string prefab_item_Item0026_tscn = "res://prefab/item/Item0026.tscn";
public const string prefab_item_Item0006_tscn = "res://prefab/item/Item0006.tscn";
public const string prefab_item_Item0010_tscn = "res://prefab/item/Item0010.tscn";
public const string prefab_item_Item0011_tscn = "res://prefab/item/Item0011.tscn";
@ -152,65 +154,6 @@ public class ResourcePath
public const string prefab_currency_GoldTemplate_tscn = "res://prefab/currency/GoldTemplate.tscn";
public const string prefab_currency_Gold10_tscn = "res://prefab/currency/Gold10.tscn";
public const string prefab_currency_Gold5_tscn = "res://prefab/currency/Gold5.tscn";
public const string build_windows_data_DungeonShooting_windows_x86_64_DungeonShooting_runtimeconfig_json = "res://build/windows/data_DungeonShooting_windows_x86_64/DungeonShooting.runtimeconfig.json";
public const string build_windows_data_DungeonShooting_windows_x86_64_DungeonShooting_deps_json = "res://build/windows/data_DungeonShooting_windows_x86_64/DungeonShooting.deps.json";
public const string build_windows_resource_map_tileMaps_GroupConfig_json = "res://build/windows/resource/map/tileMaps/GroupConfig.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle5_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle5/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle5_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle5/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle5_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle5/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle5_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle5/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle2_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle2/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle2_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle2/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle2_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle2/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle2_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle2/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle3_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle3/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle3_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle3/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle3_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle3/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle3_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle3/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle4_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle4/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle4_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle4/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle4_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle4/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle4_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle4/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle1_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle1/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle1_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle1/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle1_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle1/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle1_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle1/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle6_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle6/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle6_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle6/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle6_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle6/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_battle_Battle6_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/battle/Battle6/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_shop_Shop1_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/shop/Shop1/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_shop_Shop1_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/shop/Shop1/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_shop_Shop1_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/shop/Shop1/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_shop_Shop1_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/shop/Shop1/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_boss_Boss1_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/boss/Boss1/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_boss_Boss1_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/boss/Boss1/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_boss_Boss1_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/boss/Boss1/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_boss_Boss1_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/boss/Boss1/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_outlet_End1_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/outlet/End1/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_outlet_End1_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/outlet/End1/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_outlet_End1_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/outlet/End1/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_outlet_End1_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/outlet/End1/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_inlet_Start_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/inlet/Start/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_inlet_Start_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/inlet/Start/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_inlet_Start_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/inlet/Start/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_inlet_Start_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/inlet/Start/Preinstall.json";
public const string build_windows_resource_map_tileMaps_Test1_reward_Award1_Preview_png = "res://build/windows/resource/map/tileMaps/Test1/reward/Award1/Preview.png";
public const string build_windows_resource_map_tileMaps_Test1_reward_Award1_TileInfo_json = "res://build/windows/resource/map/tileMaps/Test1/reward/Award1/TileInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_reward_Award1_RoomInfo_json = "res://build/windows/resource/map/tileMaps/Test1/reward/Award1/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_Test1_reward_Award1_Preinstall_json = "res://build/windows/resource/map/tileMaps/Test1/reward/Award1/Preinstall.json";
public const string build_windows_resource_map_tileMaps_test2_battle_1_TileInfo_json = "res://build/windows/resource/map/tileMaps/test2/battle/1/TileInfo.json";
public const string build_windows_resource_map_tileMaps_test2_battle_1_RoomInfo_json = "res://build/windows/resource/map/tileMaps/test2/battle/1/RoomInfo.json";
public const string build_windows_resource_map_tileMaps_test2_battle_1_Preinstall_json = "res://build/windows/resource/map/tileMaps/test2/battle/1/Preinstall.json";
public const string build_windows_resource_map_tileSet_TileSetConfig_json = "res://build/windows/resource/map/tileSet/TileSetConfig.json";
public const string build_windows_resource_map_tileSet_TileSet2_Main_png = "res://build/windows/resource/map/tileSet/TileSet2/Main.png";
public const string build_windows_resource_map_tileSet_TileSet2_TileSet_json = "res://build/windows/resource/map/tileSet/TileSet2/TileSet.json";
public const string build_windows_resource_map_tileSet_TileSet2_Test2_png = "res://build/windows/resource/map/tileSet/TileSet2/Test2.png";
public const string build_windows_resource_map_tileSet_TileSet1_Main_png = "res://build/windows/resource/map/tileSet/TileSet1/Main.png";
public const string build_windows_resource_map_tileSet_TileSet1_TileSet_json = "res://build/windows/resource/map/tileSet/TileSet1/TileSet.json";
public const string build_windows_resource_map_tileSet_TileSet1_Test1_png = "res://build/windows/resource/map/tileSet/TileSet1/Test1.png";
public const string build_windows_resource_map_tileSet_TileSet1_Test3_png = "res://build/windows/resource/map/tileSet/TileSet1/Test3.png";
public const string build_windows_resource_map_tileSet_TileSet1_Test2_png = "res://build/windows/resource/map/tileSet/TileSet1/Test2.png";
public const string scene_Main_tscn = "res://scene/Main.tscn";
public const string scene_Hall_tscn = "res://scene/Hall.tscn";
public const string scene_Dungeon_tscn = "res://scene/Dungeon.tscn";
@ -297,6 +240,7 @@ public class ResourcePath
public const string resource_curve_Curve1_tres = "res://resource/curve/Curve1.tres";
public const string resource_theme_theme1_tres = "res://resource/theme/theme1.tres";
public const string resource_theme_mainTheme_tres = "res://resource/theme/mainTheme.tres";
public const string resource_sprite_Light_png = "res://resource/sprite/Light.png";
public const string resource_sprite_ui_GUI_png = "res://resource/sprite/ui/GUI.png";
public const string resource_sprite_ui_font_bg_png = "res://resource/sprite/ui/font_bg.png";
public const string resource_sprite_ui_roomMap_MapBar_png = "res://resource/sprite/ui/roomMap/MapBar.png";
@ -360,6 +304,7 @@ public class ResourcePath
public const string resource_sprite_ui_mapEditorTools_DoorDragButton_down_png = "res://resource/sprite/ui/mapEditorTools/DoorDragButton_down.png";
public const string resource_sprite_ui_mapEditorProject_CellBg_png = "res://resource/sprite/ui/mapEditorProject/CellBg.png";
public const string resource_sprite_ui_keyboard_e_png = "res://resource/sprite/ui/keyboard/e.png";
public const string resource_sprite_ui_roulette_RouletteBg_png = "res://resource/sprite/ui/roulette/RouletteBg.png";
public const string resource_sprite_prop_buff_BuffProp0003_png = "res://resource/sprite/prop/buff/BuffProp0003.png";
public const string resource_sprite_prop_buff_BuffProp0002_png = "res://resource/sprite/prop/buff/BuffProp0002.png";
public const string resource_sprite_prop_buff_BuffProp0014_png = "res://resource/sprite/prop/buff/BuffProp0014.png";
@ -574,46 +519,47 @@ public class ResourcePath
public const string resource_sprite_item_hall_a_Slice_28_png = "res://resource/sprite/item/hall_a/Slice_28.png";
public const string resource_sprite_item_hall_a_Slice_49_png = "res://resource/sprite/item/hall_a/Slice_49.png";
public const string resource_sprite_item_hall_a_Slice_48_png = "res://resource/sprite/item/hall_a/Slice_48.png";
public const string resource_sprite_item_hall_b_huapen_png = "res://resource/sprite/item/hall_b/huapen.png";
public const string resource_sprite_item_hall_b_shuihu_png = "res://resource/sprite/item/hall_b/shuihu.png";
public const string resource_sprite_item_hall_b_jieshouqi_png = "res://resource/sprite/item/hall_b/jieshouqi.png";
public const string resource_sprite_item_hall_b_ditan_png = "res://resource/sprite/item/hall_b/ditan.png";
public const string resource_sprite_item_hall_b_传送带_png = "res://resource/sprite/item/hall_b/传送带.png";
public const string resource_sprite_item_hall_b_saoba_png = "res://resource/sprite/item/hall_b/saoba.png";
public const string resource_sprite_item_hall_b_bingxiang01_png = "res://resource/sprite/item/hall_b/bingxiang01.png";
public const string resource_sprite_item_hall_b_zhishi_png = "res://resource/sprite/item/hall_b/zhishi.png";
public const string resource_sprite_item_hall_b_wall1_png = "res://resource/sprite/item/hall_b/wall1.png";
public const string resource_sprite_item_hall_b_wall3_png = "res://resource/sprite/item/hall_b/wall3.png";
public const string resource_sprite_item_hall_b_ditan01_png = "res://resource/sprite/item/hall_b/ditan01.png";
public const string resource_sprite_item_hall_b_wall2_png = "res://resource/sprite/item/hall_b/wall2.png";
public const string resource_sprite_item_hall_b_fuhuo_png = "res://resource/sprite/item/hall_b/fuhuo.png";
public const string resource_sprite_item_hall_b_kouzi_png = "res://resource/sprite/item/hall_b/kouzi.png";
public const string resource_sprite_item_hall_b_pingmu_png = "res://resource/sprite/item/hall_b/pingmu.png";
public const string resource_sprite_item_hall_b_shuiguan02_png = "res://resource/sprite/item/hall_b/shuiguan02.png";
public const string resource_sprite_item_hall_b_shuiguan01_png = "res://resource/sprite/item/hall_b/shuiguan01.png";
public const string resource_sprite_item_hall_b_mao_png = "res://resource/sprite/item/hall_b/mao.png";
public const string resource_sprite_item_hall_b_mugui_png = "res://resource/sprite/item/hall_b/mugui.png";
public const string resource_sprite_item_hall_b_zhuozi01_png = "res://resource/sprite/item/hall_b/zhuozi01.png";
public const string resource_sprite_item_hall_b_传送带图标_png = "res://resource/sprite/item/hall_b/传送带图标.png";
public const string resource_sprite_item_hall_b_yuguang_png = "res://resource/sprite/item/hall_b/yuguang.png";
public const string resource_sprite_item_hall_b_椅子_png = "res://resource/sprite/item/hall_b/椅子.png";
public const string resource_sprite_item_hall_b_zhuozi02_png = "res://resource/sprite/item/hall_b/zhuozi02.png";
public const string resource_sprite_item_hall_b_xiangzi_png = "res://resource/sprite/item/hall_b/xiangzi.png";
public const string resource_sprite_item_hall_b_huatan_png = "res://resource/sprite/item/hall_b/huatan.png";
public const string resource_sprite_item_hall_b_baoxiangui_png = "res://resource/sprite/item/hall_b/baoxiangui.png";
public const string resource_sprite_item_hall_b_shuimu_png = "res://resource/sprite/item/hall_b/shuimu.png";
public const string resource_sprite_item_hall_b_huatan02_png = "res://resource/sprite/item/hall_b/huatan02.png";
public const string resource_sprite_item_hall_b_dimian3_png = "res://resource/sprite/item/hall_b/dimian3.png";
public const string resource_sprite_item_hall_b_fengjing_png = "res://resource/sprite/item/hall_b/fengjing.png";
public const string resource_sprite_item_hall_b_dimian2_png = "res://resource/sprite/item/hall_b/dimian2.png";
public const string resource_sprite_item_hall_b_dimian_png = "res://resource/sprite/item/hall_b/dimian.png";
public const string resource_sprite_item_hall_b_chuanlian_png = "res://resource/sprite/item/hall_b/chuanlian.png";
public const string resource_sprite_item_hall_b_玻璃块_png = "res://resource/sprite/item/hall_b/玻璃块.png";
public const string resource_sprite_item_hall_b_dimian4_png = "res://resource/sprite/item/hall_b/dimian4.png";
public const string resource_sprite_item_hall_b_item11_png = "res://resource/sprite/item/hall_b/item-11.png";
public const string resource_sprite_item_hall_b_item05_png = "res://resource/sprite/item/hall_b/item-05.png";
public const string resource_sprite_item_hall_b_item010_png = "res://resource/sprite/item/hall_b/item-010.png";
public const string resource_sprite_item_hall_b_item04_png = "res://resource/sprite/item/hall_b/item-04.png";
public const string resource_sprite_item_hall_b_item06_png = "res://resource/sprite/item/hall_b/item-06.png";
public const string resource_sprite_item_hall_b_item12_png = "res://resource/sprite/item/hall_b/item-12.png";
public const string resource_sprite_item_hall_b_item13_png = "res://resource/sprite/item/hall_b/item-13.png";
public const string resource_sprite_item_hall_b_item07_png = "res://resource/sprite/item/hall_b/item-07.png";
public const string resource_sprite_item_hall_b_item03_png = "res://resource/sprite/item/hall_b/item-03.png";
public const string resource_sprite_item_hall_b_item17_png = "res://resource/sprite/item/hall_b/item-17.png";
public const string resource_sprite_item_hall_b_item16_png = "res://resource/sprite/item/hall_b/item-16.png";
public const string resource_sprite_item_hall_b_item02_png = "res://resource/sprite/item/hall_b/item-02.png";
public const string resource_sprite_item_hall_b_item28_png = "res://resource/sprite/item/hall_b/item-28.png";
public const string resource_sprite_item_hall_b_item14_png = "res://resource/sprite/item/hall_b/item-14.png";
public const string resource_sprite_item_hall_b_item01_png = "res://resource/sprite/item/hall_b/item-01.png";
public const string resource_sprite_item_hall_b_item15_png = "res://resource/sprite/item/hall_b/item-15.png";
public const string resource_sprite_item_hall_b_item29_png = "res://resource/sprite/item/hall_b/item-29.png";
public const string resource_sprite_item_hall_b_item30_png = "res://resource/sprite/item/hall_b/item-30.png";
public const string resource_sprite_item_hall_b_item24_png = "res://resource/sprite/item/hall_b/item-24.png";
public const string resource_sprite_item_hall_b_item18_png = "res://resource/sprite/item/hall_b/item-18.png";
public const string resource_sprite_item_hall_b_item19_png = "res://resource/sprite/item/hall_b/item-19.png";
public const string resource_sprite_item_hall_b_item25_png = "res://resource/sprite/item/hall_b/item-25.png";
public const string resource_sprite_item_hall_b_item31_png = "res://resource/sprite/item/hall_b/item-31.png";
public const string resource_sprite_item_hall_b_item27_png = "res://resource/sprite/item/hall_b/item-27.png";
public const string resource_sprite_item_hall_b_item33_png = "res://resource/sprite/item/hall_b/item-33.png";
public const string resource_sprite_item_hall_b_item32_png = "res://resource/sprite/item/hall_b/item-32.png";
public const string resource_sprite_item_hall_b_item26_png = "res://resource/sprite/item/hall_b/item-26.png";
public const string resource_sprite_item_hall_b_item22_png = "res://resource/sprite/item/hall_b/item-22.png";
public const string resource_sprite_item_hall_b_item36_png = "res://resource/sprite/item/hall_b/item-36.png";
public const string resource_sprite_item_hall_b_item23_png = "res://resource/sprite/item/hall_b/item-23.png";
public const string resource_sprite_item_hall_b_item09_png = "res://resource/sprite/item/hall_b/item-09.png";
public const string resource_sprite_item_hall_b_item35_png = "res://resource/sprite/item/hall_b/item-35.png";
public const string resource_sprite_item_hall_b_item21_png = "res://resource/sprite/item/hall_b/item-21.png";
public const string resource_sprite_item_hall_b_item20_png = "res://resource/sprite/item/hall_b/item-20.png";
public const string resource_sprite_item_hall_b_item34_png = "res://resource/sprite/item/hall_b/item-34.png";
public const string resource_sprite_item_hall_b_item08_png = "res://resource/sprite/item/hall_b/item-08.png";
public const string resource_sprite_item_hall_c_item_99_png = "res://resource/sprite/item/hall_c/item _99.png";
public const string resource_sprite_item_hall_c_item_58_png = "res://resource/sprite/item/hall_c/item _58.png";
public const string resource_sprite_item_hall_c_item_59_png = "res://resource/sprite/item/hall_c/item _59.png";
public const string resource_sprite_item_hall_c_item_49_png = "res://resource/sprite/item/hall_c/item _49.png";
public const string resource_sprite_item_hall_c_Slice_41_png = "res://resource/sprite/item/hall_c/Slice_41.png";
public const string resource_sprite_item_hall_c_item_48_png = "res://resource/sprite/item/hall_c/item _48.png";
public const string resource_sprite_item_hall_c_item_04_png = "res://resource/sprite/item/hall_c/item _04.png";
public const string resource_sprite_item_hall_c_item_10_png = "res://resource/sprite/item/hall_c/item _10.png";

View File

@ -12,6 +12,7 @@ public static partial class UiManager
public const string MapEditor = "MapEditor";
public const string PauseMenu = "PauseMenu";
public const string MapEditorMapMark = "MapEditorMapMark";
public const string Encyclopedia = "Encyclopedia";
public const string MapEditorCreateMark = "MapEditorCreateMark";
public const string MapEditorCreateRoom = "MapEditorCreateRoom";
public const string EditorImportCombination = "EditorImportCombination";
@ -379,6 +380,54 @@ public static partial class UiManager
return GetUiInstance<UI.MapEditorMapMark.MapEditorMapMarkPanel>(nameof(UI.MapEditorMapMark.MapEditorMapMark));
}
/// <summary>
/// 创建 Encyclopedia, 并返回UI实例, 该函数不会打开 Ui
/// </summary>
public static UI.Encyclopedia.EncyclopediaPanel Create_Encyclopedia()
{
return CreateUi<UI.Encyclopedia.EncyclopediaPanel>(UiNames.Encyclopedia);
}
/// <summary>
/// 打开 Encyclopedia, 并返回UI实例
/// </summary>
public static UI.Encyclopedia.EncyclopediaPanel Open_Encyclopedia()
{
return OpenUi<UI.Encyclopedia.EncyclopediaPanel>(UiNames.Encyclopedia);
}
/// <summary>
/// 隐藏 Encyclopedia 的所有实例
/// </summary>
public static void Hide_Encyclopedia()
{
var uiInstance = Get_Encyclopedia_Instance();
foreach (var uiPanel in uiInstance)
{
uiPanel.HideUi();
}
}
/// <summary>
/// 销毁 Encyclopedia 的所有实例
/// </summary>
public static void Destroy_Encyclopedia()
{
var uiInstance = Get_Encyclopedia_Instance();
foreach (var uiPanel in uiInstance)
{
uiPanel.Destroy();
}
}
/// <summary>
/// 获取所有 Encyclopedia 的实例, 如果没有实例, 则返回一个空数组
/// </summary>
public static UI.Encyclopedia.EncyclopediaPanel[] Get_Encyclopedia_Instance()
{
return GetUiInstance<UI.Encyclopedia.EncyclopediaPanel>(nameof(UI.Encyclopedia.Encyclopedia));
}
/// <summary>
/// 创建 MapEditorCreateMark, 并返回UI实例, 该函数不会打开 Ui
/// </summary>

View File

@ -319,15 +319,17 @@ public partial class EditorToolsPanel : EditorTools, ISerializationListener
/// </summary>
private void OpenExportExcelFolder()
{
var path = Environment.CurrentDirectory + "/excel";
var osName = OS.GetName();
GD.Print("打开excel文件夹: " + path);
if (osName == "Windows")
{
var path = Environment.CurrentDirectory + "\\excel";
GD.Print("打开excel文件夹: " + path);
System.Diagnostics.Process.Start("explorer.exe", path);
}
else
{
var path = Environment.CurrentDirectory + "/excel";
GD.Print("打开excel文件夹: " + path);
System.Diagnostics.Process.Start("open", path);
}
}

View File

@ -0,0 +1,333 @@
namespace UI.Encyclopedia;
/// <summary>
/// Ui代码, 该类是根据ui场景自动生成的, 请不要手动编辑该类, 以免造成代码丢失
/// </summary>
public abstract partial class Encyclopedia : UiBase
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Panel"/>, 节点路径: Encyclopedia.Panel2
/// </summary>
public Panel2 L_Panel2
{
get
{
if (_L_Panel2 == null) _L_Panel2 = new Panel2((EncyclopediaPanel)this, GetNode<Godot.Panel>("Panel2"));
return _L_Panel2;
}
}
private Panel2 _L_Panel2;
public Encyclopedia() : base(nameof(Encyclopedia))
{
}
public sealed override void OnInitNestedUi()
{
}
/// <summary>
/// 类型: <see cref="Godot.LineEdit"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.HBoxContainer.LineEdit
/// </summary>
public class LineEdit : UiNode<EncyclopediaPanel, Godot.LineEdit, LineEdit>
{
public LineEdit(EncyclopediaPanel uiPanel, Godot.LineEdit node) : base(uiPanel, node) { }
public override LineEdit Clone() => new (UiPanel, (Godot.LineEdit)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.Button"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.HBoxContainer.Search
/// </summary>
public class Search : UiNode<EncyclopediaPanel, Godot.Button, Search>
{
public Search(EncyclopediaPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
public override Search Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.HBoxContainer"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.HBoxContainer
/// </summary>
public class HBoxContainer : UiNode<EncyclopediaPanel, Godot.HBoxContainer, HBoxContainer>
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.LineEdit"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.LineEdit
/// </summary>
public LineEdit L_LineEdit
{
get
{
if (_L_LineEdit == null) _L_LineEdit = new LineEdit(UiPanel, Instance.GetNode<Godot.LineEdit>("LineEdit"));
return _L_LineEdit;
}
}
private LineEdit _L_LineEdit;
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.Search
/// </summary>
public Search L_Search
{
get
{
if (_L_Search == null) _L_Search = new Search(UiPanel, Instance.GetNode<Godot.Button>("Search"));
return _L_Search;
}
}
private Search _L_Search;
public HBoxContainer(EncyclopediaPanel uiPanel, Godot.HBoxContainer node) : base(uiPanel, node) { }
public override HBoxContainer Clone() => new (UiPanel, (Godot.HBoxContainer)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.MarginContainer"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer
/// </summary>
public class MarginContainer_1 : UiNode<EncyclopediaPanel, Godot.MarginContainer, MarginContainer_1>
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.HBoxContainer"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.HBoxContainer
/// </summary>
public HBoxContainer L_HBoxContainer
{
get
{
if (_L_HBoxContainer == null) _L_HBoxContainer = new HBoxContainer(UiPanel, Instance.GetNode<Godot.HBoxContainer>("HBoxContainer"));
return _L_HBoxContainer;
}
}
private HBoxContainer _L_HBoxContainer;
public MarginContainer_1(EncyclopediaPanel uiPanel, Godot.MarginContainer node) : base(uiPanel, node) { }
public override MarginContainer_1 Clone() => new (UiPanel, (Godot.MarginContainer)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.TextureRect"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton.PreviewImage
/// </summary>
public class PreviewImage : UiNode<EncyclopediaPanel, Godot.TextureRect, PreviewImage>
{
public PreviewImage(EncyclopediaPanel uiPanel, Godot.TextureRect node) : base(uiPanel, node) { }
public override PreviewImage Clone() => new (UiPanel, (Godot.TextureRect)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.Label"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton.ObjectName
/// </summary>
public class ObjectName : UiNode<EncyclopediaPanel, Godot.Label, ObjectName>
{
public ObjectName(EncyclopediaPanel uiPanel, Godot.Label node) : base(uiPanel, node) { }
public override ObjectName Clone() => new (UiPanel, (Godot.Label)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.NinePatchRect"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton.Select
/// </summary>
public class Select : UiNode<EncyclopediaPanel, Godot.NinePatchRect, Select>
{
public Select(EncyclopediaPanel uiPanel, Godot.NinePatchRect node) : base(uiPanel, node) { }
public override Select Clone() => new (UiPanel, (Godot.NinePatchRect)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.Button"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton
/// </summary>
public class ObjectButton : UiNode<EncyclopediaPanel, Godot.Button, ObjectButton>
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.TextureRect"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.PreviewImage
/// </summary>
public PreviewImage L_PreviewImage
{
get
{
if (_L_PreviewImage == null) _L_PreviewImage = new PreviewImage(UiPanel, Instance.GetNode<Godot.TextureRect>("PreviewImage"));
return _L_PreviewImage;
}
}
private PreviewImage _L_PreviewImage;
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Label"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectName
/// </summary>
public ObjectName L_ObjectName
{
get
{
if (_L_ObjectName == null) _L_ObjectName = new ObjectName(UiPanel, Instance.GetNode<Godot.Label>("ObjectName"));
return _L_ObjectName;
}
}
private ObjectName _L_ObjectName;
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.NinePatchRect"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.Select
/// </summary>
public Select L_Select
{
get
{
if (_L_Select == null) _L_Select = new Select(UiPanel, Instance.GetNode<Godot.NinePatchRect>("Select"));
return _L_Select;
}
}
private Select _L_Select;
public ObjectButton(EncyclopediaPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
public override ObjectButton Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.ScrollContainer"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer
/// </summary>
public class ScrollContainer : UiNode<EncyclopediaPanel, Godot.ScrollContainer, ScrollContainer>
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ObjectButton
/// </summary>
public ObjectButton L_ObjectButton
{
get
{
if (_L_ObjectButton == null) _L_ObjectButton = new ObjectButton(UiPanel, Instance.GetNode<Godot.Button>("ObjectButton"));
return _L_ObjectButton;
}
}
private ObjectButton _L_ObjectButton;
public ScrollContainer(EncyclopediaPanel uiPanel, Godot.ScrollContainer node) : base(uiPanel, node) { }
public override ScrollContainer Clone() => new (UiPanel, (Godot.ScrollContainer)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.VBoxContainer"/>, 路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2
/// </summary>
public class VBoxContainer2 : UiNode<EncyclopediaPanel, Godot.VBoxContainer, VBoxContainer2>
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.MarginContainer"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.MarginContainer
/// </summary>
public MarginContainer_1 L_MarginContainer
{
get
{
if (_L_MarginContainer == null) _L_MarginContainer = new MarginContainer_1(UiPanel, Instance.GetNode<Godot.MarginContainer>("MarginContainer"));
return _L_MarginContainer;
}
}
private MarginContainer_1 _L_MarginContainer;
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.ScrollContainer"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.ScrollContainer
/// </summary>
public ScrollContainer L_ScrollContainer
{
get
{
if (_L_ScrollContainer == null) _L_ScrollContainer = new ScrollContainer(UiPanel, Instance.GetNode<Godot.ScrollContainer>("ScrollContainer"));
return _L_ScrollContainer;
}
}
private ScrollContainer _L_ScrollContainer;
public VBoxContainer2(EncyclopediaPanel uiPanel, Godot.VBoxContainer node) : base(uiPanel, node) { }
public override VBoxContainer2 Clone() => new (UiPanel, (Godot.VBoxContainer)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.MarginContainer"/>, 路径: Encyclopedia.Panel2.MarginContainer
/// </summary>
public class MarginContainer : UiNode<EncyclopediaPanel, Godot.MarginContainer, MarginContainer>
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Encyclopedia.Panel2.VBoxContainer2
/// </summary>
public VBoxContainer2 L_VBoxContainer2
{
get
{
if (_L_VBoxContainer2 == null) _L_VBoxContainer2 = new VBoxContainer2(UiPanel, Instance.GetNode<Godot.VBoxContainer>("VBoxContainer2"));
return _L_VBoxContainer2;
}
}
private VBoxContainer2 _L_VBoxContainer2;
public MarginContainer(EncyclopediaPanel uiPanel, Godot.MarginContainer node) : base(uiPanel, node) { }
public override MarginContainer Clone() => new (UiPanel, (Godot.MarginContainer)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.Panel"/>, 路径: Encyclopedia.Panel2
/// </summary>
public class Panel2 : UiNode<EncyclopediaPanel, Godot.Panel, Panel2>
{
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.MarginContainer"/>, 节点路径: Encyclopedia.MarginContainer
/// </summary>
public MarginContainer L_MarginContainer
{
get
{
if (_L_MarginContainer == null) _L_MarginContainer = new MarginContainer(UiPanel, Instance.GetNode<Godot.MarginContainer>("MarginContainer"));
return _L_MarginContainer;
}
}
private MarginContainer _L_MarginContainer;
public Panel2(EncyclopediaPanel uiPanel, Godot.Panel node) : base(uiPanel, node) { }
public override Panel2 Clone() => new (UiPanel, (Godot.Panel)Instance.Duplicate());
}
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.LineEdit"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.HBoxContainer.LineEdit
/// </summary>
public LineEdit S_LineEdit => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_MarginContainer.L_HBoxContainer.L_LineEdit;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.HBoxContainer.Search
/// </summary>
public Search S_Search => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_MarginContainer.L_HBoxContainer.L_Search;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.HBoxContainer"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.MarginContainer.HBoxContainer
/// </summary>
public HBoxContainer S_HBoxContainer => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_MarginContainer.L_HBoxContainer;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.TextureRect"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton.PreviewImage
/// </summary>
public PreviewImage S_PreviewImage => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_ScrollContainer.L_ObjectButton.L_PreviewImage;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Label"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton.ObjectName
/// </summary>
public ObjectName S_ObjectName => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_ScrollContainer.L_ObjectButton.L_ObjectName;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.NinePatchRect"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton.Select
/// </summary>
public Select S_Select => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_ScrollContainer.L_ObjectButton.L_Select;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer.ObjectButton
/// </summary>
public ObjectButton S_ObjectButton => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_ScrollContainer.L_ObjectButton;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.ScrollContainer"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2.ScrollContainer
/// </summary>
public ScrollContainer S_ScrollContainer => L_Panel2.L_MarginContainer.L_VBoxContainer2.L_ScrollContainer;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.VBoxContainer"/>, 节点路径: Encyclopedia.Panel2.MarginContainer.VBoxContainer2
/// </summary>
public VBoxContainer2 S_VBoxContainer2 => L_Panel2.L_MarginContainer.L_VBoxContainer2;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Panel"/>, 节点路径: Encyclopedia.Panel2
/// </summary>
public Panel2 S_Panel2 => L_Panel2;
}

View File

@ -0,0 +1,18 @@
using Godot;
namespace UI.Encyclopedia;
public partial class EncyclopediaPanel : Encyclopedia
{
public override void OnCreateUi()
{
}
public override void OnDestroyUi()
{
}
}

View File

@ -68,6 +68,24 @@ public abstract partial class PauseMenu : UiBase
public override Restart Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Encyclopedia
/// </summary>
public class Encyclopedia : UiNode<PauseMenuPanel, Godot.Button, Encyclopedia>
{
public Encyclopedia(PauseMenuPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
public override Encyclopedia Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Setting
/// </summary>
public class Setting : UiNode<PauseMenuPanel, Godot.Button, Setting>
{
public Setting(PauseMenuPanel uiPanel, Godot.Button node) : base(uiPanel, node) { }
public override Setting Clone() => new (UiPanel, (Godot.Button)Instance.Duplicate());
}
/// <summary>
/// 类型: <see cref="Godot.Button"/>, 路径: PauseMenu.VBoxContainer.Exit
/// </summary>
@ -108,6 +126,32 @@ public abstract partial class PauseMenu : UiBase
}
private Restart _L_Restart;
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Encyclopedia
/// </summary>
public Encyclopedia L_Encyclopedia
{
get
{
if (_L_Encyclopedia == null) _L_Encyclopedia = new Encyclopedia(UiPanel, Instance.GetNode<Godot.Button>("Encyclopedia"));
return _L_Encyclopedia;
}
}
private Encyclopedia _L_Encyclopedia;
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Setting
/// </summary>
public Setting L_Setting
{
get
{
if (_L_Setting == null) _L_Setting = new Setting(UiPanel, Instance.GetNode<Godot.Button>("Setting"));
return _L_Setting;
}
}
private Setting _L_Setting;
/// <summary>
/// 使用 Instance 属性获取当前节点实例对象, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.Exit
/// </summary>
@ -141,6 +185,16 @@ public abstract partial class PauseMenu : UiBase
/// </summary>
public Restart S_Restart => L_VBoxContainer.L_Restart;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Encyclopedia
/// </summary>
public Encyclopedia S_Encyclopedia => L_VBoxContainer.L_Encyclopedia;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Setting
/// </summary>
public Setting S_Setting => L_VBoxContainer.L_Setting;
/// <summary>
/// 场景中唯一名称的节点, 节点类型: <see cref="Godot.Button"/>, 节点路径: PauseMenu.VBoxContainer.Exit
/// </summary>

View File

@ -8,6 +8,8 @@ public partial class PauseMenuPanel : PauseMenu
public override void OnCreateUi()
{
S_Continue.Instance.Pressed += OnContinueClick;
S_Setting.Instance.Pressed += OnSettingClick;
S_Encyclopedia.Instance.Pressed += OnEncyclopediaClick;
S_Restart.Instance.Pressed += OnRestartClick;
S_Exit.Instance.Pressed += OnExitClick;
@ -41,6 +43,18 @@ public partial class PauseMenuPanel : PauseMenu
Destroy();
}
//设置
private void OnSettingClick()
{
OpenNextUi(UiManager.UiNames.Setting);
}
//图鉴
private void OnEncyclopediaClick()
{
OpenNextUi(UiManager.UiNames.Encyclopedia);
}
//重新开始
private void OnRestartClick()
{