mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
ok, now its REALLY done
This commit is contained in:
@@ -68,6 +68,8 @@ func load_inputs() -> void:
|
|||||||
if value == null:
|
if value == null:
|
||||||
continue
|
continue
|
||||||
if value is Array:
|
if value is Array:
|
||||||
|
if value.size() < 2:
|
||||||
|
value.append(null)
|
||||||
var idx := 0
|
var idx := 0
|
||||||
for x in value:
|
for x in value:
|
||||||
bind_value_to_event(i, x, idx)
|
bind_value_to_event(i, x, idx)
|
||||||
@@ -78,6 +80,8 @@ func load_inputs() -> void:
|
|||||||
|
|
||||||
func bind_value_to_event(input_node, value, idx := 0) -> void:
|
func bind_value_to_event(input_node, value, idx := 0) -> void:
|
||||||
var event: InputEvent = null
|
var event: InputEvent = null
|
||||||
|
if value == null:
|
||||||
|
return
|
||||||
if value is String:
|
if value is String:
|
||||||
if value == \"\":
|
if value == \"\":
|
||||||
input_node.map_event_to_action(null, idx)
|
input_node.map_event_to_action(null, idx)
|
||||||
@@ -853,7 +857,6 @@ type = 1
|
|||||||
[node name="Pause" parent="PanelContainer/MarginContainer/VBoxContainer/Controller" groups=["Options"] instance=ExtResource("9_ksnto")]
|
[node name="Pause" parent="PanelContainer/MarginContainer/VBoxContainer/Controller" groups=["Options"] instance=ExtResource("9_ksnto")]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
settings_category = "controller"
|
settings_category = "controller"
|
||||||
can_bind_escape = true
|
|
||||||
action_names = ["pause"]
|
action_names = ["pause"]
|
||||||
title = "PAUSE"
|
title = "PAUSE"
|
||||||
type = 1
|
type = 1
|
||||||
|
Reference in New Issue
Block a user