summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire/autofire_menu.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autofire/autofire_menu.lua')
-rw-r--r--plugins/autofire/autofire_menu.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/autofire/autofire_menu.lua b/plugins/autofire/autofire_menu.lua
index 3536800767f..3742747d912 100644
--- a/plugins/autofire/autofire_menu.lua
+++ b/plugins/autofire/autofire_menu.lua
@@ -56,7 +56,7 @@ local function populate_main_menu(buttons)
local input = manager.machine.input
local menu = {}
menu[#menu + 1] = {_('Autofire buttons'), '', 'off'}
- menu[#menu + 1] = {string.format(_('Press %s to delete'), input:seq_name(ioport:type_seq(ioport:token_to_input_type("UI_CLEAR")))), '', 'off'}
+ menu[#menu + 1] = {string.format(_('Press %s to delete'), input:seq_name(ioport:type_seq(ioport:token_to_input_type('UI_CLEAR')))), '', 'off'}
menu[#menu + 1] = {'---', '', ''}
header_height = #menu
@@ -65,7 +65,7 @@ local function populate_main_menu(buttons)
local rate = 60 / (button.on_frames + button.off_frames)
-- Round to two decimal places
rate = math.floor(rate * 100) / 100
- local text = string.format(_('%s [%d Hz]'), _p("input-name", button.button.name), rate)
+ local text = string.format(_('%s [%d Hz]'), _p('input-name', button.button.name), rate)
local subtext = input:seq_name(button.key)
menu[#menu + 1] = {text, subtext, ''}
end
@@ -100,7 +100,7 @@ end
-- Add/edit menus (mostly identical)
local function populate_configure_menu(menu)
- local button_name = current_button.button and _p("input-name", current_button.button.name) or _('NOT SET')
+ local button_name = current_button.button and _p('input-name', current_button.button.name) or _('NOT SET')
local key_name = current_button.key and manager.machine.input:seq_name(current_button.key) or _('NOT SET')
menu[#menu + 1] = {_('Input'), button_name, ''}
menu[#menu + 1] = {_('Hotkey'), key_name, ''}
@@ -120,7 +120,7 @@ local function poll_for_hotkey()
while (not poller:poll()) and (poller.modified or (os.clock() < time + 1)) do
if poller.modified then
if not poller.valid then
- manager.machine:popmessage(_("Invalid sequence entered"))
+ manager.machine:popmessage(_('Invalid sequence entered'))
clearmsg = false
break
end
@@ -253,7 +253,7 @@ local function populate_button_menu()
end
-- TODO: group by device so we can sort table.sort(inputs, function(x, y) return x.ioport_field.name < y.ioport_field.name end)
for i, input in pairs(inputs) do
- menu[header_height + i] = { _p("input-name", input.ioport_field.name), '', '' }
+ menu[header_height + i] = { _p('input-name', input.ioport_field.name), '', '' }
end
content_height = #menu