mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:55:35 +00:00
Keymapping menu
This commit is contained in:
parent
9e8c2220b2
commit
b76427e3ca
14 changed files with 137 additions and 34 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://bnhcgsyh6wfo3"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://bnhcgsyh6wfo3"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="1_il8fq"]
|
||||
[ext_resource type="Script" uid="uid://c1874e6ryvd1g" path="res://Scripts/UI/OptionsMenu.cs" id="1_mpohc"]
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://cwhm3802fhdax" path="res://Scenes/HUD/Volume_Slider.tscn" id="6_x23el"]
|
||||
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="7_1neg2"]
|
||||
[ext_resource type="Script" uid="uid://nqkbxr8s5oqn" path="res://Scripts/UI/KeyRemapping.cs" id="7_mx1xt"]
|
||||
[ext_resource type="PackedScene" uid="uid://j5g536m85lr8" path="res://Scenes/HUD/UiElements/KeyRemappingItem.tscn" id="8_ijs0n"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_4kao5"]
|
||||
font = ExtResource("2_l5i2j")
|
||||
|
|
@ -132,12 +133,19 @@ text = "Sound Effects Volume"
|
|||
layout_mode = 2
|
||||
AudioBusName = &"Effects"
|
||||
|
||||
[node name="KeyRemapping" type="VBoxContainer" parent="ScrollContainer/VBoxContainer"]
|
||||
[node name="KeyRemapping" type="VBoxContainer" parent="ScrollContainer/VBoxContainer" node_paths=PackedStringArray("KeysContainer")]
|
||||
layout_mode = 2
|
||||
script = ExtResource("7_mx1xt")
|
||||
KeysDict = Dictionary[StringName, StringName]({
|
||||
&"ghg": &"hgdf"
|
||||
&"Use": &"Interact",
|
||||
&"inventory": &"Inventory",
|
||||
&"pause": &"Pause",
|
||||
&"scan": &"Scan",
|
||||
&"shoot": &"Shoot",
|
||||
&"strafe": &"Strafe"
|
||||
})
|
||||
KeysContainer = NodePath("VBoxContainer")
|
||||
ItemPrefab = ExtResource("8_ijs0n")
|
||||
|
||||
[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/KeyRemapping"]
|
||||
layout_mode = 2
|
||||
|
|
|
|||
27
Scenes/HUD/UiElements/KeyRemappingItem.tscn
Normal file
27
Scenes/HUD/UiElements/KeyRemappingItem.tscn
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://j5g536m85lr8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dn52llyqx84e0" path="res://Scripts/UI/KeyRemappingItem.cs" id="1_88k7i"]
|
||||
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="2_b0qgl"]
|
||||
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="3_b0qgl"]
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" node_paths=PackedStringArray("NameLabel", "InputLabel")]
|
||||
script = ExtResource("1_88k7i")
|
||||
NameLabel = NodePath("ActionName")
|
||||
InputLabel = NodePath("Key")
|
||||
|
||||
[node name="ActionName" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
text = "Asdf"
|
||||
label_settings = ExtResource("2_b0qgl")
|
||||
|
||||
[node name="Key" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
text = "A"
|
||||
label_settings = ExtResource("2_b0qgl")
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_b0qgl")
|
||||
text = "Remap"
|
||||
|
||||
[connection signal="pressed" from="Button" to="." method="StartRemap"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue