Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / ui / BottomTips.tscn
@小李xl 小李xl on 30 Jun 2023 2 KB 底部提示面板
  1. [gd_scene load_steps=4 format=3 uid="uid://dxmjm1pgctyid"]
  2.  
  3. [ext_resource type="Script" path="res://src/game/ui/bottomTips/BottomTipsPanel.cs" id="1_c63vs"]
  4. [ext_resource type="Texture2D" uid="uid://bls55gj8h3mgv" path="res://resource/sprite/prop/buff/Buff0001.png" id="2_gaykt"]
  5.  
  6. [sub_resource type="LabelSettings" id="LabelSettings_xtn1u"]
  7. font_size = 32
  8.  
  9. [node name="BottomTips" type="Control"]
  10. layout_mode = 3
  11. anchors_preset = 15
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. mouse_filter = 2
  15. script = ExtResource("1_c63vs")
  16.  
  17. [node name="Panel" type="PanelContainer" parent="."]
  18. layout_mode = 1
  19. anchors_preset = 7
  20. anchor_left = 0.5
  21. anchor_top = 1.0
  22. anchor_right = 0.5
  23. anchor_bottom = 1.0
  24. offset_left = -78.5
  25. offset_top = -93.0
  26. offset_right = 78.5
  27. offset_bottom = -9.0
  28. grow_horizontal = 2
  29. grow_vertical = 0
  30. mouse_filter = 2
  31.  
  32. [node name="MarginContainer" type="MarginContainer" parent="Panel"]
  33. layout_mode = 2
  34. size_flags_vertical = 8
  35. mouse_filter = 2
  36. theme_override_constants/margin_left = 30
  37. theme_override_constants/margin_top = 10
  38. theme_override_constants/margin_right = 30
  39. theme_override_constants/margin_bottom = 10
  40.  
  41. [node name="CenterContainer" type="CenterContainer" parent="Panel/MarginContainer"]
  42. layout_mode = 2
  43. mouse_filter = 2
  44.  
  45. [node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/CenterContainer"]
  46. layout_mode = 2
  47. size_flags_vertical = 4
  48. mouse_filter = 2
  49. theme_override_constants/separation = 9
  50.  
  51. [node name="AspectRatioContainer" type="AspectRatioContainer" parent="Panel/MarginContainer/CenterContainer/HBoxContainer"]
  52. custom_minimum_size = Vector2(64, 64)
  53. layout_mode = 2
  54.  
  55. [node name="TextureRect" type="TextureRect" parent="Panel/MarginContainer/CenterContainer/HBoxContainer/AspectRatioContainer"]
  56. custom_minimum_size = Vector2(16, 16)
  57. layout_mode = 2
  58. mouse_filter = 2
  59. texture = ExtResource("2_gaykt")
  60.  
  61. [node name="Label" type="Label" parent="Panel/MarginContainer/CenterContainer/HBoxContainer"]
  62. layout_mode = 2
  63. text = "0"
  64. label_settings = SubResource("LabelSettings_xtn1u")
  65. horizontal_alignment = 1
  66. vertical_alignment = 1