Compare commits
9 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
295dc15844 | ||
![]() |
e4fdafb12b | ||
![]() |
c05d0f9ddd | ||
![]() |
56162b82c9 | ||
![]() |
7eb4efd423 | ||
![]() |
7e06bbb11b | ||
![]() |
b149abc34e | ||
![]() |
edb863e8fe | ||
![]() |
191e3665b0 |
8 changed files with 52 additions and 20 deletions
|
@ -10,7 +10,14 @@
|
||||||
"arg7",
|
"arg7",
|
||||||
"arg8",
|
"arg8",
|
||||||
"arg9",
|
"arg9",
|
||||||
"event"
|
"event",
|
||||||
|
"SetBinding",
|
||||||
|
"SetCVar",
|
||||||
|
"MultiActionBar_Update",
|
||||||
|
"SetActionBarToggles",
|
||||||
|
"SaveBindings",
|
||||||
|
"SlashCmdList",
|
||||||
|
"GetAddOnMetadata"
|
||||||
],
|
],
|
||||||
"runtime.version": "Lua 5.1",
|
"runtime.version": "Lua 5.1",
|
||||||
"type.inferParamType": true,
|
"type.inferParamType": true,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
local _, u = ...
|
local _, u = ...
|
||||||
|
u.version = GetAddOnMetadata("ImbusBinds", "Version")
|
||||||
|
|
||||||
-- https://wowpedia.fandom.com/wiki/BindingID
|
-- https://wowpedia.fandom.com/wiki/BindingID
|
||||||
local myBinds = {
|
local myBinds = {
|
||||||
|
@ -11,18 +12,18 @@ local myBinds = {
|
||||||
['F2'] = 'TOGGLECHARACTER0',
|
['F2'] = 'TOGGLECHARACTER0',
|
||||||
|
|
||||||
-- Action Bar 1
|
-- Action Bar 1
|
||||||
['BUTTON5'] = 'BUTTON1',
|
['BUTTON5'] = 'ACTIONBUTTON1',
|
||||||
['BUTTON4'] = 'BUTTON2',
|
['BUTTON4'] = 'ACTIONBUTTON2',
|
||||||
['SHIFT-BUTTON5'] = 'BUTTON3',
|
['SHIFT-BUTTON5'] = 'ACTIONBUTTON3',
|
||||||
['SHIFT-BUTTON4'] = 'BUTTON4',
|
['SHIFT-BUTTON4'] = 'ACTIONBUTTON4',
|
||||||
['CTRL-BUTTON5'] = 'BUTTON5',
|
['CTRL-BUTTON5'] = 'ACTIONBUTTON5',
|
||||||
['CTRL-BUTTON4'] = 'BUTTON6',
|
['CTRL-BUTTON4'] = 'ACTIONBUTTON6',
|
||||||
['BUTTON3'] = 'BUTTON7',
|
['BUTTON3'] = 'ACTIONBUTTON7',
|
||||||
['SHIFT-BUTTON3'] = 'BUTTON8',
|
['SHIFT-BUTTON3'] = 'ACTIONBUTTON8',
|
||||||
['CTRL-BUTTON3'] = 'BUTTON9',
|
['CTRL-BUTTON3'] = 'ACTIONBUTTON9',
|
||||||
['§'] = 'BUTTON10',
|
['§'] = 'ACTIONBUTTON10',
|
||||||
['SHIFT-§'] = 'BUTTON11',
|
['SHIFT-§'] = 'ACTIONBUTTON11',
|
||||||
['CTRL-§'] = 'BUTTON12',
|
['CTRL-§'] = 'ACTIONBUTTON12',
|
||||||
|
|
||||||
-- Action Bar 2
|
-- Action Bar 2
|
||||||
['1'] = 'MULTIACTIONBAR1BUTTON1',
|
['1'] = 'MULTIACTIONBAR1BUTTON1',
|
||||||
|
@ -140,16 +141,27 @@ end
|
||||||
local function BindsHandler(msg, editbox)
|
local function BindsHandler(msg, editbox)
|
||||||
u.guards()
|
u.guards()
|
||||||
if msg == '' then
|
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)
|
applyBindingSet(myBinds)
|
||||||
enableBars()
|
|
||||||
end
|
end
|
||||||
if msg == 'camera' then
|
if msg == 'camera' then
|
||||||
applyBindingSet(cameraBinds)
|
applyBindingSet(cameraBinds)
|
||||||
end
|
end
|
||||||
|
if msg == 'bars' then
|
||||||
|
enableBars()
|
||||||
|
u.info 'Bars set!'
|
||||||
|
end
|
||||||
SaveBindings(1)
|
SaveBindings(1)
|
||||||
u.guards()
|
u.guards()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register the /hello command
|
-- Register the /binds command
|
||||||
SLASH_BINDS1 = '/binds'
|
SLASH_BINDS1 = '/binds'
|
||||||
SlashCmdList['BINDS'] = BindsHandler
|
SlashCmdList['BINDS'] = BindsHandler
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Interface: 30300
|
## Interface: 30300
|
||||||
## Title: ImbusBinds
|
## Title: ImbusBinds
|
||||||
## Author: Imbus
|
## Author: Imbus
|
||||||
## Version: 0.1.2
|
## Version: v0.1.5
|
||||||
## Notes: Simple addon for a sane default keybind setup
|
## Notes: Simple addon for a sane default keybind setup
|
||||||
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
||||||
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Interface: 100107
|
## Interface: 100107
|
||||||
## Title: ImbusBinds
|
## Title: ImbusBinds
|
||||||
## Author: Imbus
|
## Author: Imbus
|
||||||
## Version: 0.1.2
|
## Version: v0.1.5
|
||||||
## Notes: Simple addon for a sane default keybind setup
|
## Notes: Simple addon for a sane default keybind setup
|
||||||
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
||||||
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Interface: 11200
|
## Interface: 11200
|
||||||
## Title: ImbusBinds
|
## Title: ImbusBinds
|
||||||
## Author: Imbus
|
## Author: Imbus
|
||||||
## Version: 0.1.2
|
## Version: v0.1.5
|
||||||
## Notes: Simple addon for a sane default keybind setup
|
## Notes: Simple addon for a sane default keybind setup
|
||||||
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
||||||
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Interface: 30300
|
## Interface: 30300
|
||||||
## Title: ImbusBinds
|
## Title: ImbusBinds
|
||||||
## Author: Imbus
|
## Author: Imbus
|
||||||
## Version: 0.1.2
|
## Version: v0.1.5
|
||||||
## Notes: Simple addon for a sane default keybind setup
|
## Notes: Simple addon for a sane default keybind setup
|
||||||
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
||||||
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
## Interface: 30403
|
## Interface: 30403
|
||||||
## Title: ImbusBinds
|
## Title: ImbusBinds
|
||||||
## Author: Imbus
|
## Author: Imbus
|
||||||
## Version: 0.1.2
|
## Version: v0.1.5
|
||||||
## Notes: Simple addon for a sane default keybind setup
|
## Notes: Simple addon for a sane default keybind setup
|
||||||
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
## URL: https://git.silversoft.se/Imbus/ImbusBinds
|
||||||
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
## IconTexture: Interface\Icons\Inv_qiraj_jewelglyphed
|
||||||
|
|
13
set_version.sh
Normal file
13
set_version.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ $# -ne 1 ]]; then
|
||||||
|
echo "Usage: $0 <semver>"
|
||||||
|
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"
|
Loading…
Add table
Reference in a new issue