Files
godot-demo-projects/gui/input_mapping/InputRemapMenu.tscn
Voylin 85e7aeec99 Fixed GUI Input Mapping Demo Script Errors for 4.0-dev
Edited the project settings to match the new Godot 4 standard and fixed
the script errors which were making it impossible to run this demo.

Now everything works properly for the 4.0-dev version.

Changed to Vulkan Mobile + Changed argument name

Followed the suggestions of aaronfranke
Changed viewport size
2022-04-03 14:21:54 +09:00

154 lines
4.1 KiB
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://bjdgwg23lm1d4"]
[ext_resource type="PackedScene" path="res://ActionRemapButton.tscn" id="1"]
[node name="InputRemapMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Instructions" type="Label" parent="."]
anchor_right = 1.0
offset_top = 24.0
offset_bottom = 55.0
text = "Click on a button to reassign its action key."
__meta__ = {
"_edit_use_anchors_": false
}
[node name="RemapButtonGroup" type="Button" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -160.0
offset_top = -144.0
offset_right = 160.0
offset_bottom = 144.0
disabled = true
flat = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ActionsList" type="VBoxContainer" parent="RemapButtonGroup"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -160.0
offset_top = -140.0
offset_right = 160.0
offset_bottom = 140.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ActionRemapRow" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
offset_right = 320.0
offset_bottom = 52.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow"]
offset_right = 158.0
offset_bottom = 52.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Move Left"
[node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow" instance=ExtResource( "1" )]
offset_left = 162.0
offset_right = 320.0
offset_bottom = 52.0
size_flags_horizontal = 3
size_flags_vertical = 3
action = "move_left"
[node name="ActionRemapRow2" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
offset_top = 56.0
offset_right = 320.0
offset_bottom = 109.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow2"]
offset_right = 158.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Move Right"
[node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow2" instance=ExtResource( "1" )]
offset_left = 162.0
offset_right = 320.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
action = "move_right"
[node name="ActionRemapRow3" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
offset_top = 113.0
offset_right = 320.0
offset_bottom = 166.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow3"]
offset_right = 158.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Look Up"
[node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow3" instance=ExtResource( "1" )]
offset_left = 162.0
offset_right = 320.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
action = "look_up"
[node name="ActionRemapRow4" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
offset_top = 170.0
offset_right = 320.0
offset_bottom = 223.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow4"]
offset_right = 158.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Crouch"
[node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow4" instance=ExtResource( "1" )]
offset_left = 162.0
offset_right = 320.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
action = "crouch"
[node name="ActionRemapRow5" type="HBoxContainer" parent="RemapButtonGroup/ActionsList"]
offset_top = 227.0
offset_right = 320.0
offset_bottom = 280.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="ActionName" type="Label" parent="RemapButtonGroup/ActionsList/ActionRemapRow5"]
offset_right = 158.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Dash"
[node name="RemapButton" parent="RemapButtonGroup/ActionsList/ActionRemapRow5" instance=ExtResource( "1" )]
offset_left = 162.0
offset_right = 320.0
offset_bottom = 53.0
size_flags_horizontal = 3
size_flags_vertical = 3
action = "dash"