controls.tscn 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://controls.gd" type="Script" id=1]
  3. [ext_resource path="res://flag_uk.png" type="Texture" id=2]
  4. [node name="Panel" type="Panel"]
  5. anchor_left = 0.0
  6. anchor_top = 0.0
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. rect_pivot_offset = Vector2( 0, 0 )
  10. rect_clip_content = false
  11. mouse_filter = 0
  12. size_flags_horizontal = 2
  13. size_flags_vertical = 2
  14. script = ExtResource( 1 )
  15. __meta__ = {
  16. "__editor_plugin_screen__": "2D"
  17. }
  18. [node name="Label" type="Label" parent="."]
  19. anchor_left = 0.0
  20. anchor_top = 0.0
  21. anchor_right = 0.0
  22. anchor_bottom = 0.0
  23. margin_left = 175.0
  24. margin_top = 118.0
  25. margin_right = 328.0
  26. margin_bottom = 132.0
  27. rect_pivot_offset = Vector2( 0, 0 )
  28. rect_clip_content = false
  29. mouse_filter = 2
  30. size_flags_horizontal = 2
  31. size_flags_vertical = 0
  32. text = "KEY_HELLO"
  33. align = 1
  34. percent_visible = 1.0
  35. lines_skipped = 0
  36. max_lines_visible = -1
  37. [node name="Button" type="Button" parent="."]
  38. anchor_left = 0.0
  39. anchor_top = 0.0
  40. anchor_right = 0.0
  41. anchor_bottom = 0.0
  42. margin_left = 166.0
  43. margin_top = 178.0
  44. margin_right = 335.0
  45. margin_bottom = 199.0
  46. rect_pivot_offset = Vector2( 0, 0 )
  47. rect_clip_content = false
  48. mouse_filter = 0
  49. size_flags_horizontal = 2
  50. size_flags_vertical = 2
  51. toggle_mode = false
  52. enabled_focus_mode = 2
  53. shortcut = null
  54. group = null
  55. text = "KEY_PUSH"
  56. flat = false
  57. [node name="TextureFrame" type="TextureRect" parent="."]
  58. anchor_left = 0.0
  59. anchor_top = 0.0
  60. anchor_right = 0.0
  61. anchor_bottom = 0.0
  62. margin_left = 377.0
  63. margin_top = 118.0
  64. margin_right = 505.0
  65. margin_bottom = 203.0
  66. rect_pivot_offset = Vector2( 0, 0 )
  67. rect_clip_content = false
  68. mouse_filter = 1
  69. size_flags_horizontal = 2
  70. size_flags_vertical = 2
  71. texture = ExtResource( 2 )
  72. stretch_mode = 0
  73. [node name="back" type="Button" parent="."]
  74. anchor_left = 0.0
  75. anchor_top = 0.0
  76. anchor_right = 0.0
  77. anchor_bottom = 0.0
  78. margin_left = 26.0
  79. margin_top = 20.0
  80. margin_right = 150.0
  81. margin_bottom = 44.0
  82. rect_pivot_offset = Vector2( 0, 0 )
  83. rect_clip_content = false
  84. mouse_filter = 0
  85. size_flags_horizontal = 2
  86. size_flags_vertical = 2
  87. toggle_mode = false
  88. enabled_focus_mode = 2
  89. shortcut = null
  90. group = null
  91. text = "<- back"
  92. flat = false
  93. [connection signal="pressed" from="back" to="." method="_on_back_pressed"]