|
@@ -41,7 +41,7 @@ func _unhandled_input(event):
|
|
|
if event.is_action("ui_accept"):
|
|
|
if get_tree().get_nodes_in_group("players").size() > 0:
|
|
|
get_tree().set_input_as_handled()
|
|
|
-
|
|
|
+
|
|
|
_hub_enabled = false
|
|
|
emit_signal("hub_finished")
|
|
|
|
|
@@ -82,7 +82,10 @@ func _update_input_list_text():
|
|
|
|
|
|
|
|
|
func _get_label_from_action_name(action:String):
|
|
|
- var default_event = InputMap.get_action_list(action)[0]
|
|
|
- if default_event is InputEventMouseButton:
|
|
|
- return "Mouse button %s" % default_event.button_index
|
|
|
- return default_event.as_text()
|
|
|
+ var input_label_array = PoolStringArray()
|
|
|
+ for event in InputMap.get_action_list(action):
|
|
|
+ if event is InputEventMouseButton:
|
|
|
+ input_label_array.append("MB%s" % event.button_index)
|
|
|
+ else:
|
|
|
+ input_label_array.append(event.as_text())
|
|
|
+ return input_label_array.join(", ")
|