diff options
Diffstat (limited to 'client/menu/settings/input/input_manager.gd')
-rw-r--r-- | client/menu/settings/input/input_manager.gd | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/client/menu/settings/input/input_manager.gd b/client/menu/settings/input/input_manager.gd index 0123574d..9f79a398 100644 --- a/client/menu/settings/input/input_manager.gd +++ b/client/menu/settings/input/input_manager.gd @@ -15,6 +15,33 @@ # extends Node +var action_descriptions = { + "forwards": tr("Move forwards"), + "backwards": tr("Move backwards"), + "left": tr("Move left"), + "right": tr("Move right"), + "rotate_left": tr("Rotate camera to the left"), + "rotate_right": tr("Rotate camera to the right"), + "rotate_up": tr("Rotate camera upwards"), + "rotate_down": tr("Rotate camera downwards"), + "interact": tr("Interact", "Interacting with items, etc."), + "boost": tr("Boost movement"), + "zoom_in": tr("Zoom in"), + "zoom_out": tr("Zoom out"), + "chat": tr("Toggle chat", "Toggle chat on or off"), + "reset": tr("Reset camera view"), + "fullscreen": tr("Toggle fullscreen"), + "previous": tr("Previous"), + "next": tr("Next"), + "start_game": tr("Start game"), + "join_spectate": tr("Join / Spectate"), + "zoom_in_discrete": tr("Zoom in (discrete)"), + "zoom_out_discrete": tr("Zoom out (discrete)"), + "scroll_down": tr("Scroll down"), + "scroll_up": tr("Scroll up"), + +} + var default_input_map = {} var input_map @@ -34,7 +61,7 @@ func input_map_to_settings_dictionary(map: Dictionary) -> Dictionary: var settings_dict := {} for k in map.keys(): var events = map[k] - settings_dict[k] = InputSetting.new(k, events) + settings_dict[k] = InputSetting.new(action_descriptions[k] if action_descriptions.has(k) else k, events) return settings_dict func settings_dictionary_to_input_map(settings: Dictionary) -> Dictionary: |