Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / WeaponRoulette.tscn
@小李xl 小李xl on 21 Mar 2024 4 KB 测试特效
  1. [gd_scene load_steps=8 format=3 uid="uid://dbjpknb3d5gfw"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/weaponRoulette/WeaponRoulettePanel.cs" id="1_1uvbk"]
  4. [ext_resource type="Texture2D" uid="uid://e6krxgte01j3" path="res://resource/sprite/ui/roulette/RouletteBg.png" id="2_k6gjh"]
  5. [ext_resource type="Script" path="res://src/game/ui/weaponRoulette/WeaponSlot.cs" id="3_8v011"]
  6. [ext_resource type="Shader" path="res://resource/shader/Outline.gdshader" id="4_p348k"]
  7. [ext_resource type="Texture2D" uid="uid://dmm8jw06bhffh" path="res://resource/sprite/ui/commonIcon/Lock.png" id="6_7mog3"]
  8.  
  9.  
  10. [sub_resource type="ShaderMaterial" id="ShaderMaterial_i1wmw"]
  11. resource_local_to_scene = true
  12. shader = ExtResource("4_p348k")
  13. shader_parameter/outline_color = Color(0, 0, 0, 1)
  14.  
  15. [sub_resource type="CircleShape2D" id="CircleShape2D_snfa8"]
  16. radius = 2.0
  17.  
  18. [node name="WeaponRoulette" type="Control"]
  19. layout_mode = 3
  20. anchors_preset = 15
  21. anchor_right = 1.0
  22. anchor_bottom = 1.0
  23. grow_horizontal = 2
  24. grow_vertical = 2
  25. script = ExtResource("1_1uvbk")
  26.  
  27. [node name="Bg" type="ColorRect" parent="."]
  28. layout_mode = 1
  29. anchors_preset = 15
  30. anchor_right = 1.0
  31. anchor_bottom = 1.0
  32. grow_horizontal = 2
  33. grow_vertical = 2
  34. color = Color(0, 0, 0, 0.588235)
  35.  
  36. [node name="Root" type="Control" parent="."]
  37. layout_mode = 1
  38. anchors_preset = 8
  39. anchor_left = 0.5
  40. anchor_top = 0.5
  41. anchor_right = 0.5
  42. anchor_bottom = 0.5
  43. offset_left = -0.5
  44. offset_top = -20.0
  45. offset_right = 0.5
  46. offset_bottom = -19.0
  47. grow_horizontal = 2
  48. grow_vertical = 2
  49.  
  50. [node name="RouletteBg" type="Sprite2D" parent="Root"]
  51. scale = Vector2(4, 4)
  52. texture = ExtResource("2_k6gjh")
  53.  
  54. [node name="WeaponSlotNode" type="Node2D" parent="Root/RouletteBg"]
  55. script = ExtResource("3_8v011")
  56.  
  57. [node name="SlotUi" type="Control" parent="Root/RouletteBg/WeaponSlotNode"]
  58. layout_mode = 3
  59. anchors_preset = 0
  60. offset_left = 65.25
  61. offset_right = 66.25
  62. offset_bottom = 1.0
  63.  
  64. [node name="WeaponUi" type="Control" parent="Root/RouletteBg/WeaponSlotNode/SlotUi"]
  65. layout_mode = 1
  66. anchors_preset = 8
  67. anchor_left = 0.5
  68. anchor_top = 0.5
  69. anchor_right = 0.5
  70. anchor_bottom = 0.5
  71. offset_left = -0.5
  72. offset_top = -0.5
  73. offset_right = 0.5
  74. offset_bottom = 0.5
  75. grow_horizontal = 2
  76. grow_vertical = 2
  77.  
  78. [node name="WeaponIcon" type="Sprite2D" parent="Root/RouletteBg/WeaponSlotNode/SlotUi/WeaponUi"]
  79. material = SubResource("ShaderMaterial_i1wmw")
  80.  
  81. [node name="AmmoLabel" type="Label" parent="Root/RouletteBg/WeaponSlotNode/SlotUi/WeaponUi"]
  82. layout_mode = 1
  83. anchors_preset = 8
  84. anchor_left = 0.5
  85. anchor_top = 0.5
  86. anchor_right = 0.5
  87. anchor_bottom = 0.5
  88. offset_left = -15.375
  89. offset_top = 8.5
  90. offset_right = 104.625
  91. offset_bottom = 48.5
  92. grow_horizontal = 2
  93. grow_vertical = 2
  94. scale = Vector2(0.25, 0.25)
  95. text = "0/0"
  96. horizontal_alignment = 1
  97. vertical_alignment = 1
  98.  
  99. [node name="LockSprite" type="Sprite2D" parent="Root/RouletteBg/WeaponSlotNode/SlotUi"]
  100. scale = Vector2(0.25, 0.25)
  101. texture = ExtResource("6_7mog3")
  102.  
  103. [node name="SlotAreaNode" type="Area2D" parent="Root/RouletteBg/WeaponSlotNode"]
  104. collision_layer = 0
  105. collision_mask = 8192
  106. monitorable = false
  107.  
  108. [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Root/RouletteBg/WeaponSlotNode/SlotAreaNode"]
  109.  
  110. [node name="UpBar" type="ColorRect" parent="Root"]
  111. layout_mode = 0
  112. offset_left = -383.0
  113. offset_top = -480.0
  114. offset_right = 385.0
  115. offset_bottom = -424.0
  116. color = Color(0.184314, 0.184314, 0.184314, 0.784314)
  117.  
  118. [node name="Label" type="Label" parent="Root/UpBar"]
  119. layout_mode = 1
  120. anchors_preset = 4
  121. anchor_top = 0.5
  122. anchor_bottom = 0.5
  123. offset_left = 10.5
  124. offset_top = -20.0
  125. offset_right = 162.5
  126. offset_bottom = 20.0
  127. grow_vertical = 2
  128. text = "按Q上一页"
  129.  
  130. [node name="Label2" type="Label" parent="Root/UpBar"]
  131. layout_mode = 1
  132. anchors_preset = 6
  133. anchor_left = 1.0
  134. anchor_top = 0.5
  135. anchor_right = 1.0
  136. anchor_bottom = 0.5
  137. offset_left = -162.5
  138. offset_top = -20.0
  139. offset_right = -10.5
  140. offset_bottom = 20.0
  141. grow_horizontal = 0
  142. grow_vertical = 2
  143. text = "按E下一页"
  144.  
  145. [node name="PageLabel" type="Label" parent="Root/UpBar"]
  146. layout_mode = 1
  147. anchors_preset = 8
  148. anchor_left = 0.5
  149. anchor_top = 0.5
  150. anchor_right = 0.5
  151. anchor_bottom = 0.5
  152. offset_left = -4.5
  153. offset_top = -20.0
  154. offset_right = 4.5
  155. offset_bottom = 20.0
  156. grow_horizontal = 2
  157. grow_vertical = 2
  158. text = "1/1"
  159.  
  160. [node name="DownBar" type="ColorRect" parent="Root"]
  161. layout_mode = 0
  162. offset_left = -96.0
  163. offset_top = 435.0
  164. offset_right = 100.0
  165. offset_bottom = 491.0
  166. color = Color(0.184314, 0.184314, 0.184314, 0.784314)
  167.  
  168. [node name="Label" type="Label" parent="Root/DownBar"]
  169. layout_mode = 1
  170. anchors_preset = 8
  171. anchor_left = 0.5
  172. anchor_top = 0.5
  173. anchor_right = 0.5
  174. anchor_bottom = 0.5
  175. offset_left = -84.0
  176. offset_top = -20.0
  177. offset_right = 84.0
  178. offset_bottom = 20.0
  179. grow_horizontal = 2
  180. grow_vertical = 2
  181. text = "按空格丢弃"
  182.  
  183. [node name="MouseArea" type="Area2D" parent="."]
  184. collision_layer = 8192
  185. collision_mask = 0
  186. monitoring = false
  187.  
  188. [node name="CollisionShape2D" type="CollisionShape2D" parent="MouseArea"]
  189. shape = SubResource("CircleShape2D_snfa8")