diff --git a/doc/manual_DE.lua b/doc/manual_DE.lua index ac4f9e6..f6a3155 100644 --- a/doc/manual_DE.lua +++ b/doc/manual_DE.lua @@ -1686,6 +1686,7 @@ techage.manual_DE.aText = { "\n".. " - 'goto ' Zu einer Kommandozeile springen und damit den Sequenzer starten\n".. " - 'stop' Den Sequenzer anhalten\n".. + " - 'on' und 'off' als Alias für 'goto 1' bzw. 'stop'\n".. "\n".. "Das 'goto' Kommando wird nur angenommen\\, wenn der Sequenzer gestoppt ist.\n".. "\n".. diff --git a/doc/manual_EN.lua b/doc/manual_EN.lua index 06a3856..609a606 100644 --- a/doc/manual_EN.lua +++ b/doc/manual_EN.lua @@ -1682,6 +1682,7 @@ techage.manual_EN.aText = { "\n".. " - 'goto ' Jump to a command line and start the sequencer\n".. " - 'stop' Stop the sequencer\n".. + " - 'on' and 'off' as aliases for 'goto 1' resp. 'stop'\n".. "\n".. "The 'goto' command is only accepted when the sequencer is stopped.\n".. "\n".. diff --git a/logic/sequencer2.lua b/logic/sequencer2.lua index e051ab9..40ae341 100644 --- a/logic/sequencer2.lua +++ b/logic/sequencer2.lua @@ -290,18 +290,18 @@ minetest.register_craft({ }, }) -local INFO = [[Commands: 'goto ', 'stop']] +local INFO = [[Commands: 'goto ', 'stop', 'on', 'off']] techage.register_node({"techage:ta4_sequencer"}, { on_recv_message = function(pos, src, topic, payload) local nvm = techage.get_nvm(pos) - if topic == "goto" and not nvm.running then + if (topic == "goto" or topic == "on") and not nvm.running then local mem = techage.get_mem(pos) nvm.running = true mem.idx = tonumber(payload or 1) or 1 restart_timer(pos, 0.1) logic.infotext(M(pos), S("TA4 Sequencer"), S("running")) - elseif topic == "stop" then + elseif topic == "stop" or topic == "off" then nvm.running = false minetest.get_node_timer(pos):stop() logic.infotext(M(pos), S("TA4 Sequencer"), S("stopped")) diff --git a/manuals/manual_ta4_DE.md b/manuals/manual_ta4_DE.md index 15e33cf..2b5eafa 100644 --- a/manuals/manual_ta4_DE.md +++ b/manuals/manual_ta4_DE.md @@ -550,6 +550,7 @@ Der TA4 Sequenzer unterstützt folgende techage Kommandos: - `goto ` Zu einer Kommandozeile springen und damit den Sequenzer starten - `stop` Den Sequenzer anhalten +- `on` und `off` als Alias für `goto 1` bzw. `stop` Das `goto` Kommando wird nur angenommen, wenn der Sequenzer gestoppt ist. diff --git a/manuals/manual_ta4_EN.md b/manuals/manual_ta4_EN.md index d242b3c..d10cdf2 100644 --- a/manuals/manual_ta4_EN.md +++ b/manuals/manual_ta4_EN.md @@ -542,6 +542,7 @@ The TA4 sequencer supports the following techage commands: - `goto ` Jump to a command line and start the sequencer - `stop` Stop the sequencer +- `on` and `off` as aliases for `goto 1` resp. `stop` The `goto` command is only accepted when the sequencer is stopped.