Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / Encyclopedia.tscn
@小李xl 小李xl on 12 Mar 2024 7 KB 制作图鉴
  1. [gd_scene load_steps=10 format=3 uid="uid://b2xq02i3vxct"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/encyclopedia/EncyclopediaPanel.cs" id="1_hd86y"]
  4. [ext_resource type="Texture2D" uid="uid://c0st2iiql8igg" path="res://resource/sprite/ui/encyclopedia/TitleBg.png" id="3_gdtik"]
  5. [ext_resource type="Shader" path="res://resource/material/Blend.gdshader" id="3_o1xl7"]
  6. [ext_resource type="Texture2D" uid="uid://dahib4qcevboo" path="res://resource/sprite/ui/encyclopedia/Panel2.png" id="4_21546"]
  7. [ext_resource type="Texture2D" uid="uid://brevrlfdtllmk" path="res://resource/sprite/ui/encyclopedia/Select.png" id="5_f0anf"]
  8. [ext_resource type="Texture2D" uid="uid://cu5y32wfai4pn" path="res://resource/sprite/ui/encyclopedia/Item.png" id="5_niceh"]
  9. [ext_resource type="Texture2D" uid="uid://conjg6fw6670x" path="res://resource/sprite/ui/encyclopedia/Panel.png" id="7_hfdat"]
  10. [ext_resource type="Material" uid="uid://j8t31iuumvhr" path="res://resource/material/Outline.tres" id="7_yd5ks"]
  11.  
  12. [sub_resource type="ShaderMaterial" id="ShaderMaterial_gm0bl"]
  13. resource_local_to_scene = true
  14. shader = ExtResource("3_o1xl7")
  15. shader_parameter/blend = Color(1, 1, 1, 1)
  16. shader_parameter/schedule = 0.0
  17. shader_parameter/modulate = Color(1, 1, 1, 1)
  18. shader_parameter/show_outline = true
  19. shader_parameter/outline_color = Color(1, 1, 1, 1)
  20. shader_parameter/outline_rainbow = false
  21. shader_parameter/outline_use_blend = true
  22. shader_parameter/grey = 0.0
  23.  
  24. [node name="Encyclopedia" type="Control"]
  25. layout_mode = 3
  26. anchors_preset = 15
  27. anchor_right = 1.0
  28. anchor_bottom = 1.0
  29. grow_horizontal = 2
  30. grow_vertical = 2
  31. script = ExtResource("1_hd86y")
  32.  
  33. [node name="ColorRect" type="ColorRect" parent="."]
  34. layout_mode = 1
  35. anchors_preset = 15
  36. anchor_right = 1.0
  37. anchor_bottom = 1.0
  38. grow_horizontal = 2
  39. grow_vertical = 2
  40. color = Color(0, 0, 0, 0.705882)
  41.  
  42. [node name="NinePatchRect" type="NinePatchRect" parent="."]
  43. layout_mode = 1
  44. anchors_preset = 15
  45. anchor_right = 1.0
  46. anchor_bottom = 1.0
  47. offset_left = 3.0
  48. offset_top = 54.0
  49. offset_right = -3.0
  50. offset_bottom = -3.0
  51. grow_horizontal = 2
  52. grow_vertical = 2
  53. texture = ExtResource("7_hfdat")
  54. region_rect = Rect2(0, 0, 128, 128)
  55. patch_margin_left = 56
  56. patch_margin_top = 56
  57. patch_margin_right = 56
  58. patch_margin_bottom = 56
  59.  
  60. [node name="TextureRect" type="TextureRect" parent="NinePatchRect"]
  61. layout_mode = 1
  62. anchors_preset = 10
  63. anchor_right = 1.0
  64. offset_left = -3.0
  65. offset_top = -35.0
  66. offset_right = -3.0
  67. offset_bottom = 69.0
  68. grow_horizontal = 2
  69. texture = ExtResource("3_gdtik")
  70. stretch_mode = 3
  71.  
  72. [node name="Label" type="Label" parent="NinePatchRect/TextureRect"]
  73. layout_mode = 1
  74. anchors_preset = 15
  75. anchor_right = 1.0
  76. anchor_bottom = 1.0
  77. offset_top = -3.0
  78. offset_bottom = -15.0
  79. grow_horizontal = 2
  80. grow_vertical = 2
  81. theme_override_colors/font_color = Color(0, 0, 0, 1)
  82. theme_override_font_sizes/font_size = 48
  83. text = "图鉴"
  84. horizontal_alignment = 1
  85. vertical_alignment = 1
  86.  
  87. [node name="MarginContainer" type="MarginContainer" parent="NinePatchRect"]
  88. layout_mode = 1
  89. anchors_preset = 15
  90. anchor_right = 1.0
  91. anchor_bottom = 1.0
  92. grow_horizontal = 2
  93. grow_vertical = 2
  94. theme_override_constants/margin_left = 40
  95. theme_override_constants/margin_top = 80
  96. theme_override_constants/margin_right = 40
  97. theme_override_constants/margin_bottom = 40
  98.  
  99. [node name="HBoxContainer" type="HBoxContainer" parent="NinePatchRect/MarginContainer"]
  100. layout_mode = 2
  101.  
  102. [node name="VBoxContainer2" type="VBoxContainer" parent="NinePatchRect/MarginContainer/HBoxContainer"]
  103. layout_mode = 2
  104. size_flags_horizontal = 3
  105. size_flags_stretch_ratio = 3.0
  106.  
  107. [node name="NinePatchRect" type="NinePatchRect" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer2"]
  108. layout_mode = 2
  109. size_flags_vertical = 3
  110. texture = ExtResource("4_21546")
  111. region_rect = Rect2(0, 0, 128, 128)
  112. patch_margin_left = 56
  113. patch_margin_top = 56
  114. patch_margin_right = 56
  115. patch_margin_bottom = 56
  116.  
  117. [node name="ScrollContainer" type="ScrollContainer" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer2/NinePatchRect"]
  118. layout_mode = 1
  119. anchors_preset = 15
  120. anchor_right = 1.0
  121. anchor_bottom = 1.0
  122. offset_left = 24.0
  123. offset_top = 24.0
  124. offset_right = -24.0
  125. offset_bottom = -24.0
  126. grow_horizontal = 2
  127. grow_vertical = 2
  128. size_flags_horizontal = 3
  129. size_flags_vertical = 3
  130. size_flags_stretch_ratio = 75.0
  131.  
  132. [node name="ObjectButton" type="TextureButton" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer2/NinePatchRect/ScrollContainer"]
  133. custom_minimum_size = Vector2(200, 120)
  134. layout_mode = 2
  135.  
  136. [node name="Bg" type="NinePatchRect" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer2/NinePatchRect/ScrollContainer/ObjectButton"]
  137. layout_mode = 1
  138. anchors_preset = 15
  139. anchor_right = 1.0
  140. anchor_bottom = 1.0
  141. grow_horizontal = 2
  142. grow_vertical = 2
  143. texture = ExtResource("5_niceh")
  144. region_rect = Rect2(0, 0, 56, 56)
  145. patch_margin_left = 24
  146. patch_margin_top = 24
  147. patch_margin_right = 24
  148. patch_margin_bottom = 24
  149.  
  150. [node name="PreviewImage" type="TextureRect" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer2/NinePatchRect/ScrollContainer/ObjectButton"]
  151. material = SubResource("ShaderMaterial_gm0bl")
  152. layout_mode = 1
  153. anchors_preset = 15
  154. anchor_right = 1.0
  155. anchor_bottom = 1.0
  156. offset_right = -150.0
  157. offset_bottom = -90.0
  158. grow_horizontal = 2
  159. grow_vertical = 2
  160. scale = Vector2(4, 4)
  161. mouse_filter = 2
  162. stretch_mode = 3
  163.  
  164. [node name="Select" type="NinePatchRect" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer2/NinePatchRect/ScrollContainer/ObjectButton"]
  165. layout_mode = 1
  166. anchors_preset = 15
  167. anchor_right = 1.0
  168. anchor_bottom = 1.0
  169. grow_horizontal = 2
  170. grow_vertical = 2
  171. texture = ExtResource("5_f0anf")
  172. region_rect = Rect2(0, 0, 16, 16)
  173. patch_margin_left = 4
  174. patch_margin_top = 4
  175. patch_margin_right = 4
  176. patch_margin_bottom = 4
  177.  
  178. [node name="VBoxContainer3" type="VBoxContainer" parent="NinePatchRect/MarginContainer/HBoxContainer"]
  179. custom_minimum_size = Vector2(452, 2.08165e-12)
  180. layout_mode = 2
  181.  
  182. [node name="NinePatchRect" type="NinePatchRect" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer3"]
  183. layout_mode = 2
  184. size_flags_vertical = 3
  185. texture = ExtResource("4_21546")
  186. patch_margin_left = 56
  187. patch_margin_top = 56
  188. patch_margin_right = 56
  189. patch_margin_bottom = 56
  190.  
  191. [node name="VBoxContainer" type="VBoxContainer" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer3/NinePatchRect"]
  192. layout_mode = 1
  193. anchors_preset = 15
  194. anchor_right = 1.0
  195. anchor_bottom = 1.0
  196. offset_left = 28.0
  197. offset_top = 28.0
  198. offset_right = -28.0
  199. offset_bottom = -28.0
  200. grow_horizontal = 2
  201. grow_vertical = 2
  202. theme_override_constants/separation = 16
  203.  
  204. [node name="ItemName" type="Label" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer3/NinePatchRect/VBoxContainer"]
  205. layout_mode = 2
  206. text = "名称"
  207. horizontal_alignment = 1
  208. vertical_alignment = 1
  209.  
  210. [node name="NinePatchRect" type="NinePatchRect" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer3/NinePatchRect/VBoxContainer"]
  211. custom_minimum_size = Vector2(396, 300)
  212. layout_mode = 2
  213. texture = ExtResource("4_21546")
  214. patch_margin_left = 56
  215. patch_margin_top = 56
  216. patch_margin_right = 56
  217. patch_margin_bottom = 56
  218.  
  219. [node name="ItemTexture" type="TextureRect" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer3/NinePatchRect/VBoxContainer/NinePatchRect"]
  220. material = ExtResource("7_yd5ks")
  221. layout_mode = 1
  222. anchors_preset = 15
  223. anchor_right = 1.0
  224. anchor_bottom = 1.0
  225. offset_left = 20.0
  226. offset_top = 20.0
  227. offset_right = -287.0
  228. offset_bottom = -215.0
  229. grow_horizontal = 2
  230. grow_vertical = 2
  231. scale = Vector2(4, 4)
  232. size_flags_vertical = 3
  233. stretch_mode = 3
  234.  
  235. [node name="ItemDes" type="RichTextLabel" parent="NinePatchRect/MarginContainer/HBoxContainer/VBoxContainer3/NinePatchRect/VBoxContainer"]
  236. layout_mode = 2
  237. size_flags_vertical = 3
  238. text = "文本描述"