diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-20 00:45:42 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-20 00:50:05 +0200 |
commit | 3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457 (patch) | |
tree | 9608ff402d95ea927fb3b0c9dbddd7a927f9bf87 /client/menu/settings/input | |
parent | 2b2b1957b80c0743b455e3decba56d0551e69162 (diff) | |
download | hurrycurry-3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457.tar hurrycurry-3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457.tar.bz2 hurrycurry-3b3c7b900d4eeccb57eb983ce5bc41efa4d5f457.tar.zst |
replace % operator with String.format()
Diffstat (limited to 'client/menu/settings/input')
-rw-r--r-- | client/menu/settings/input/input_manager.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/menu/settings/input/input_manager.gd b/client/menu/settings/input/input_manager.gd index 640410d0..b612bde3 100644 --- a/client/menu/settings/input/input_manager.gd +++ b/client/menu/settings/input/input_manager.gd @@ -93,12 +93,12 @@ func get_event_type(input_event: InputEvent) -> EventType: func display_input_event(input_event: InputEvent) -> String: if input_event is InputEventKey: - return tr("c.settings.input.keyboard") % OS.get_keycode_string(input_event.physical_keycode) + return tr("c.settings.input.keyboard").format([OS.get_keycode_string(input_event.physical_keycode)]) elif input_event is InputEventMouseButton: - return tr("c.settings.input.mouse_button") % input_event.button_index + return tr("c.settings.input.mouse_button").format([input_event.button_index]) elif input_event is InputEventJoypadButton: - return tr("c.settings.input.joypad") % input_event.button_index + return tr("c.settings.input.joypad").format([input_event.button_index]) elif input_event is InputEventJoypadMotion: - return tr("c.settings.input.joypad_axis") % [input_event.axis] + return tr("c.settings.input.joypad_axis").format([input_event.axis]) else: return tr("c.settings.input.other_event") |