diff --git a/.luarc.json b/.luarc.json index 362cb0e..e97b3af 100644 --- a/.luarc.json +++ b/.luarc.json @@ -10,14 +10,7 @@ "arg7", "arg8", "arg9", - "event", - "SetBinding", - "SetCVar", - "MultiActionBar_Update", - "SetActionBarToggles", - "SaveBindings", - "SlashCmdList", - "GetAddOnMetadata" + "event" ], "runtime.version": "Lua 5.1", "type.inferParamType": true, diff --git a/ImbusBinds.lua b/ImbusBinds.lua old mode 100644 new mode 100755 index 3e04252..e66197c --- a/ImbusBinds.lua +++ b/ImbusBinds.lua @@ -1,5 +1,4 @@ local _, u = ... -u.version = GetAddOnMetadata("ImbusBinds", "Version") -- https://wowpedia.fandom.com/wiki/BindingID local myBinds = { @@ -12,18 +11,18 @@ local myBinds = { ['F2'] = 'TOGGLECHARACTER0', -- Action Bar 1 - ['BUTTON5'] = 'ACTIONBUTTON1', - ['BUTTON4'] = 'ACTIONBUTTON2', - ['SHIFT-BUTTON5'] = 'ACTIONBUTTON3', - ['SHIFT-BUTTON4'] = 'ACTIONBUTTON4', - ['CTRL-BUTTON5'] = 'ACTIONBUTTON5', - ['CTRL-BUTTON4'] = 'ACTIONBUTTON6', - ['BUTTON3'] = 'ACTIONBUTTON7', - ['SHIFT-BUTTON3'] = 'ACTIONBUTTON8', - ['CTRL-BUTTON3'] = 'ACTIONBUTTON9', - ['§'] = 'ACTIONBUTTON10', - ['SHIFT-§'] = 'ACTIONBUTTON11', - ['CTRL-§'] = 'ACTIONBUTTON12', + ['BUTTON5'] = 'BUTTON1', + ['BUTTON4'] = 'BUTTON2', + ['SHIFT-BUTTON5'] = 'BUTTON3', + ['SHIFT-BUTTON4'] = 'BUTTON4', + ['CTRL-BUTTON5'] = 'BUTTON5', + ['CTRL-BUTTON4'] = 'BUTTON6', + ['BUTTON3'] = 'BUTTON7', + ['SHIFT-BUTTON3'] = 'BUTTON8', + ['CTRL-BUTTON3'] = 'BUTTON9', + ['§'] = 'BUTTON10', + ['SHIFT-§'] = 'BUTTON11', + ['CTRL-§'] = 'BUTTON12', -- Action Bar 2 ['1'] = 'MULTIACTIONBAR1BUTTON1', @@ -141,27 +140,16 @@ end local function BindsHandler(msg, editbox) u.guards() if msg == '' then - u.info 'Welcome to the ImbusBinds keybinding script' - u.info('Version: ' .. u.version) - u.info 'Usage:' - u.info ' /binds set - To set general bindings' - u.info ' /binds camera - To set camera binds to +/-' - u.info ' /binds bars - Enable all action bars' - end - if msg == 'set' then applyBindingSet(myBinds) + enableBars() end if msg == 'camera' then applyBindingSet(cameraBinds) end - if msg == 'bars' then - enableBars() - u.info 'Bars set!' - end SaveBindings(1) u.guards() end --- Register the /binds command +-- Register the /hello command SLASH_BINDS1 = '/binds' SlashCmdList['BINDS'] = BindsHandler diff --git a/ImbusBinds.toc b/ImbusBinds.toc index 147694f..596dc73 100644 --- a/ImbusBinds.toc +++ b/ImbusBinds.toc @@ -1,7 +1,7 @@ ## Interface: 30300 ## Title: ImbusBinds ## Author: Imbus -## Version: v0.1.5 +## Version: 0.1.2 ## Notes: Simple addon for a sane default keybind setup ## URL: https://git.silversoft.se/Imbus/ImbusBinds ## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed diff --git a/ImbusBinds_Mainline.toc b/ImbusBinds_Mainline.toc old mode 100644 new mode 100755 index 39037e4..76636f0 --- a/ImbusBinds_Mainline.toc +++ b/ImbusBinds_Mainline.toc @@ -1,7 +1,7 @@ ## Interface: 100107 ## Title: ImbusBinds ## Author: Imbus -## Version: v0.1.5 +## Version: 0.1.2 ## Notes: Simple addon for a sane default keybind setup ## URL: https://git.silversoft.se/Imbus/ImbusBinds ## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed diff --git a/ImbusBinds_Turtle.toc b/ImbusBinds_Turtle.toc index 301b869..37cef83 100644 --- a/ImbusBinds_Turtle.toc +++ b/ImbusBinds_Turtle.toc @@ -1,7 +1,7 @@ ## Interface: 11200 ## Title: ImbusBinds ## Author: Imbus -## Version: v0.1.5 +## Version: 0.1.2 ## Notes: Simple addon for a sane default keybind setup ## URL: https://git.silversoft.se/Imbus/ImbusBinds ## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed diff --git a/ImbusBinds_Warmane.toc b/ImbusBinds_Warmane.toc index 147694f..596dc73 100644 --- a/ImbusBinds_Warmane.toc +++ b/ImbusBinds_Warmane.toc @@ -1,7 +1,7 @@ ## Interface: 30300 ## Title: ImbusBinds ## Author: Imbus -## Version: v0.1.5 +## Version: 0.1.2 ## Notes: Simple addon for a sane default keybind setup ## URL: https://git.silversoft.se/Imbus/ImbusBinds ## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed diff --git a/ImbusBinds_Wrath.toc b/ImbusBinds_Wrath.toc old mode 100644 new mode 100755 index 11bfa00..66186cb --- a/ImbusBinds_Wrath.toc +++ b/ImbusBinds_Wrath.toc @@ -1,7 +1,7 @@ ## Interface: 30403 ## Title: ImbusBinds ## Author: Imbus -## Version: v0.1.5 +## Version: 0.1.2 ## Notes: Simple addon for a sane default keybind setup ## URL: https://git.silversoft.se/Imbus/ImbusBinds ## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed diff --git a/set_version.sh b/set_version.sh deleted file mode 100644 index 3ecb147..0000000 --- a/set_version.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -if [[ $# -ne 1 ]]; then - echo "Usage: $0 " - exit 1 -fi - -SEMVER="$1" - -# Update all *.toc files -sed -i -E "s/^(## Version: ).*/\1$SEMVER/" ./*.toc - -echo "Updated all .toc files with version $SEMVER"