InputRemapMenu.tscn 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. [gd_scene load_steps=2 format=3 uid="uid://bjdgwg23lm1d4"]
  2. [ext_resource type="PackedScene" uid="uid://cy6kmby6mupvv" path="res://ActionRemapButton.tscn" id="1"]
  3. [node name="InputRemapMenu" type="Control"]
  4. layout_mode = 3
  5. anchors_preset = 15
  6. anchor_right = 1.0
  7. anchor_bottom = 1.0
  8. grow_horizontal = 2
  9. grow_vertical = 2
  10. [node name="Instructions" type="Label" parent="."]
  11. layout_mode = 0
  12. anchor_right = 1.0
  13. offset_top = 24.0
  14. offset_bottom = 55.0
  15. text = "Click on a button to reassign its action key."
  16. horizontal_alignment = 1
  17. vertical_alignment = 1
  18. [node name="RemapButtonGroup" type="Control" parent="."]
  19. anchors_preset = 0
  20. anchor_left = 0.5
  21. anchor_top = 0.5
  22. anchor_right = 0.5
  23. anchor_bottom = 0.5
  24. offset_left = -160.0
  25. offset_top = -144.0
  26. offset_right = 160.0
  27. offset_bottom = 144.0
  28. [node name="ActionsList" type="VBoxContainer" parent="RemapButtonGroup"]
  29. layout_mode = 0
  30. anchor_left = 0.5
  31. anchor_top = 0.5
  32. anchor_right = 0.5
  33. anchor_bottom = 0.5
  34. offset_left = -160.0
  35. offset_top = -140.0
  36. offset_right = 160.0
  37. offset_bottom = 140.0
  38. [node name="ActionRemapRow" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
  39. layout_mode = 2
  40. size_flags_horizontal = 3
  41. size_flags_vertical = 3
  42. [node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow"]
  43. layout_mode = 2
  44. size_flags_horizontal = 3
  45. size_flags_vertical = 3
  46. text = "Move Left"
  47. horizontal_alignment = 1
  48. vertical_alignment = 1
  49. [node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow" instance=ExtResource("1")]
  50. layout_mode = 2
  51. size_flags_horizontal = 3
  52. size_flags_vertical = 3
  53. action = "move_left"
  54. [node name="ActionRemapRow2" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
  55. layout_mode = 2
  56. size_flags_horizontal = 3
  57. size_flags_vertical = 3
  58. [node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow2"]
  59. layout_mode = 2
  60. size_flags_horizontal = 3
  61. size_flags_vertical = 3
  62. text = "Move Right"
  63. horizontal_alignment = 1
  64. vertical_alignment = 1
  65. [node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow2" instance=ExtResource("1")]
  66. layout_mode = 2
  67. size_flags_horizontal = 3
  68. size_flags_vertical = 3
  69. action = "move_right"
  70. [node name="ActionRemapRow3" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
  71. layout_mode = 2
  72. size_flags_horizontal = 3
  73. size_flags_vertical = 3
  74. [node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow3"]
  75. layout_mode = 2
  76. size_flags_horizontal = 3
  77. size_flags_vertical = 3
  78. text = "Look Up"
  79. horizontal_alignment = 1
  80. vertical_alignment = 1
  81. [node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow3" instance=ExtResource("1")]
  82. layout_mode = 2
  83. size_flags_horizontal = 3
  84. size_flags_vertical = 3
  85. action = "look_up"
  86. [node name="ActionRemapRow4" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
  87. layout_mode = 2
  88. size_flags_horizontal = 3
  89. size_flags_vertical = 3
  90. [node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow4"]
  91. layout_mode = 2
  92. size_flags_horizontal = 3
  93. size_flags_vertical = 3
  94. text = "Crouch"
  95. horizontal_alignment = 1
  96. vertical_alignment = 1
  97. [node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow4" instance=ExtResource("1")]
  98. layout_mode = 2
  99. size_flags_horizontal = 3
  100. size_flags_vertical = 3
  101. action = "crouch"
  102. [node name="ActionRemapRow5" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
  103. layout_mode = 2
  104. size_flags_horizontal = 3
  105. size_flags_vertical = 3
  106. [node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow5"]
  107. layout_mode = 2
  108. size_flags_horizontal = 3
  109. size_flags_vertical = 3
  110. text = "Dash"
  111. horizontal_alignment = 1
  112. vertical_alignment = 1
  113. [node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow5" instance=ExtResource("1")]
  114. layout_mode = 2
  115. size_flags_horizontal = 3
  116. size_flags_vertical = 3
  117. action = "dash"