a game about throwing hammers made for the github game off
Diffstat (limited to 'ui/keybinds.tscn')
-rw-r--r--ui/keybinds.tscn196
1 files changed, 196 insertions, 0 deletions
diff --git a/ui/keybinds.tscn b/ui/keybinds.tscn
new file mode 100644
index 0000000..75e1a54
--- /dev/null
+++ b/ui/keybinds.tscn
@@ -0,0 +1,196 @@
+[gd_scene load_steps=9 format=3 uid="uid://ds7n3sd3bfnu8"]
+
+[ext_resource type="Theme" uid="uid://b5sr8elfovyw3" path="res://ui/main.theme.tres" id="1_cqlw2"]
+[ext_resource type="Script" path="res://ui/popup.gd" id="1_f036x"]
+[ext_resource type="StyleBox" uid="uid://dfisjyikb066o" path="res://ui/darkener_panel_bottom.tres" id="1_wrc13"]
+[ext_resource type="StyleBox" uid="uid://bt4oraf4hpx7b" path="res://ui/darkener_panel_top.tres" id="2_rkypo"]
+[ext_resource type="PackedScene" uid="uid://b7b1oujujfumh" path="res://ui/exitbutton.tscn" id="5_w2is5"]
+[ext_resource type="Script" path="res://addons/remap/RemapButton.gd" id="6_s2rfm"]
+
+[sub_resource type="GDScript" id="GDScript_gnxo1"]
+resource_name = "holder"
+script/source = "extends VBoxContainer
+
+const RemapButton := preload(\"res://addons/remap/RemapButton.gd\")
+
+@export var font_size: int
+
+func _ready() -> void:
+ for c in get_children():
+ if c is RemapButton:
+ c.button.add_theme_font_size_override(\"font_size\", font_size)
+
+func _on_reset_pressed() -> void:
+ for c in get_children():
+ if c is RemapButton:
+ c.save()
+ c.update()
+"
+
+[sub_resource type="GDScript" id="GDScript_dodrb"]
+resource_name = "reset"
+script/source = "extends Button
+
+func _pressed() -> void:
+ InputMap.load_from_project_settings()
+"
+
+[node name="keybinds" type="MarginContainer" node_paths=PackedStringArray("focus")]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+theme = ExtResource("1_cqlw2")
+theme_override_constants/margin_left = 10
+theme_override_constants/margin_top = 10
+theme_override_constants/margin_right = 10
+theme_override_constants/margin_bottom = 10
+script = ExtResource("1_f036x")
+focus = NodePath("Scroll/V/left")
+
+[node name="Panel" type="Panel" parent="."]
+layout_mode = 2
+offset_left = 10.0
+offset_top = 10.0
+offset_right = 310.0
+offset_bottom = 310.0
+mouse_filter = 2
+theme_override_styles/panel = ExtResource("1_wrc13")
+
+[node name="Scroll" type="ScrollContainer" parent="."]
+layout_mode = 2
+offset_left = 10.0
+offset_top = 10.0
+offset_right = 310.0
+offset_bottom = 310.0
+grow_horizontal = 2
+grow_vertical = 2
+theme_override_styles/panel = ExtResource("2_rkypo")
+follow_focus = true
+horizontal_scroll_mode = 3
+vertical_scroll_mode = 3
+
+[node name="V" type="VBoxContainer" parent="Scroll"]
+show_behind_parent = true
+layout_mode = 2
+offset_left = 15.0
+offset_top = 15.0
+offset_right = 285.0
+offset_bottom = 285.0
+grow_horizontal = 2
+grow_vertical = 2
+size_flags_horizontal = 3
+size_flags_vertical = 3
+script = SubResource("GDScript_gnxo1")
+font_size = 15
+
+[node name="bbar" type="HBoxContainer" parent="Scroll/V"]
+show_behind_parent = true
+layout_mode = 2
+offset_right = 270.0
+offset_bottom = 36.0
+
+[node name="space3" type="Control" parent="Scroll/V/bbar"]
+custom_minimum_size = Vector2(20, 0)
+layout_mode = 2
+anchors_preset = 0
+offset_right = 20.0
+offset_bottom = 36.0
+
+[node name="reset" type="Button" parent="Scroll/V/bbar"]
+show_behind_parent = true
+layout_mode = 2
+offset_left = 24.0
+offset_right = 79.0
+offset_bottom = 36.0
+size_flags_horizontal = 4
+focus_neighbor_left = NodePath("../exit")
+focus_neighbor_right = NodePath("../exit")
+theme_override_font_sizes/font_size = 12
+text = "reset"
+script = SubResource("GDScript_dodrb")
+
+[node name="space" type="Control" parent="Scroll/V/bbar"]
+layout_mode = 2
+anchors_preset = 0
+offset_left = 83.0
+offset_right = 190.0
+offset_bottom = 36.0
+size_flags_horizontal = 3
+
+[node name="exit" parent="Scroll/V/bbar" instance=ExtResource("5_w2is5")]
+layout_mode = 2
+focus_neighbor_left = NodePath("../reset")
+focus_neighbor_right = NodePath("../reset")
+
+[node name="space2" type="Control" parent="Scroll/V/bbar"]
+custom_minimum_size = Vector2(40, 0)
+layout_mode = 2
+anchors_preset = 0
+offset_left = 230.0
+offset_right = 270.0
+offset_bottom = 36.0
+
+[node name="left" type="HBoxContainer" parent="Scroll/V"]
+show_behind_parent = true
+custom_minimum_size = Vector2(42, 42)
+layout_mode = 2
+offset_top = 40.0
+offset_right = 270.0
+offset_bottom = 82.0
+script = ExtResource("6_s2rfm")
+prompt_text = "[push button]"
+_name = "left"
+action = "left"
+
+[node name="right" type="HBoxContainer" parent="Scroll/V"]
+show_behind_parent = true
+custom_minimum_size = Vector2(42, 42)
+layout_mode = 2
+offset_top = 86.0
+offset_right = 270.0
+offset_bottom = 128.0
+script = ExtResource("6_s2rfm")
+prompt_text = "[push button]"
+_name = "right"
+action = "right"
+
+[node name="up" type="HBoxContainer" parent="Scroll/V"]
+show_behind_parent = true
+custom_minimum_size = Vector2(42, 42)
+layout_mode = 2
+offset_top = 132.0
+offset_right = 270.0
+offset_bottom = 174.0
+script = ExtResource("6_s2rfm")
+prompt_text = "[push button]"
+_name = "jump"
+action = "jump"
+
+[node name="down" type="HBoxContainer" parent="Scroll/V"]
+show_behind_parent = true
+custom_minimum_size = Vector2(42, 42)
+layout_mode = 2
+offset_top = 178.0
+offset_right = 270.0
+offset_bottom = 220.0
+script = ExtResource("6_s2rfm")
+prompt_text = "[push button]"
+_name = "fall"
+action = "down"
+
+[node name="shoot" type="HBoxContainer" parent="Scroll/V"]
+show_behind_parent = true
+custom_minimum_size = Vector2(42, 42)
+layout_mode = 2
+offset_top = 224.0
+offset_right = 270.0
+offset_bottom = 266.0
+script = ExtResource("6_s2rfm")
+prompt_text = "[push button]"
+_name = "shoot"
+action = "shoot"
+
+[connection signal="pressed" from="Scroll/V/bbar/reset" to="Scroll/V" method="_on_reset_pressed"]
+[connection signal="pressed" from="Scroll/V/bbar/exit" to="." method="exit"]