From 16f2eaad529cd26e0bea60c06a02401c1dab1760 Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Tue, 25 Mar 2025 22:03:52 +0100 Subject: [PATCH] fixed Script ordering --- BauSystem/hotkeys.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/BauSystem/hotkeys.lua b/BauSystem/hotkeys.lua index 7d9df865..f1182e7a 100644 --- a/BauSystem/hotkeys.lua +++ b/BauSystem/hotkeys.lua @@ -19,16 +19,6 @@ --- This serves both as an example and a quick start to the Stewamwar Script Api --- -hotkey("ctrl+g", hotkeys_freeze) -hotkey("ctrl+c", hotkeys_rgc) -hotkey("ctrl+v", hotkeys_rgp) -hotkey("ctrl+x", hotkeys_tick_step) -hotkey("shift+x", hotkeys_cycle_trace_view) -hotkey("ctrl+y", hotkeys_tb) -hotkey("ctrl+alt", hotkeys_trace_delete) -hotkey("ctrl+h", hotkeys_trace_delete) - - function hotkeys_freeze(pressed) if pressed then exec("/freeze") @@ -86,4 +76,12 @@ function hotkeys_trace_delete(pressed) end end +hotkey("ctrl+g", hotkeys_freeze) +hotkey("ctrl+c", hotkeys_rgc) +hotkey("ctrl+v", hotkeys_rgp) +hotkey("ctrl+x", hotkeys_tick_step) +hotkey("shift+x", hotkeys_cycle_trace_view) +hotkey("ctrl+y", hotkeys_tb) +hotkey("ctrl+alt", hotkeys_trace_delete) +hotkey("ctrl+h", hotkeys_trace_delete)