[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="."]
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="."]
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
offset_left = 15.0
offset_top = 15.0
offset_right = 285.0
offset_bottom = 419.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
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 = 3
anchors_preset = 0
offset_right = 20.0
offset_bottom = 36.0
[node name="reset" type="Button" parent="Scroll/V/bbar" groups=["button"]]
show_behind_parent = true
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 = 3
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" groups=["button"] instance=ExtResource("5_w2is5")]
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 = 3
anchors_preset = 0
offset_left = 230.0
offset_right = 270.0
offset_bottom = 36.0
[node name="left" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 40.0
offset_right = 270.0
offset_bottom = 82.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "left"
action = "left"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[node name="right" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 86.0
offset_right = 270.0
offset_bottom = 128.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "right"
action = "right"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[node name="up" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 132.0
offset_right = 270.0
offset_bottom = 174.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "up"
action = "up"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[node name="down" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 178.0
offset_right = 270.0
offset_bottom = 220.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "down"
action = "down"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[node name="jump" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 224.0
offset_right = 270.0
offset_bottom = 266.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "jump"
action = "jump"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[node name="fall" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 270.0
offset_right = 270.0
offset_bottom = 312.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "fall"
action = "fall"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[node name="throw" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 316.0
offset_right = 270.0
offset_bottom = 358.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "throw"
action = "throw"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[node name="pickup" type="HBoxContainer" parent="Scroll/V" groups=["button"]]
show_behind_parent = true
custom_minimum_size = Vector2(42, 42)
offset_top = 362.0
offset_right = 270.0
offset_bottom = 404.0
script = ExtResource("6_s2rfm")
prompt_text = "[push button]"
_name = "grab"
action = "pickup"
icon_size = Vector2(35, 35)
font_size = 22
device = -1
[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"]