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