Compare commits
No commits in common. "b149abc34ebffcd2878e1de9b92631cc4d764583" and "191e3665b012338f8f73eff5390b03271e46c1cf" have entirely different histories.
b149abc34e
...
191e3665b0
2 changed files with 3 additions and 18 deletions
|
@ -10,13 +10,7 @@
|
||||||
"arg7",
|
"arg7",
|
||||||
"arg8",
|
"arg8",
|
||||||
"arg9",
|
"arg9",
|
||||||
"event",
|
"event"
|
||||||
"SetBinding",
|
|
||||||
"SetCVar",
|
|
||||||
"MultiActionBar_Update",
|
|
||||||
"SetActionBarToggles",
|
|
||||||
"SaveBindings",
|
|
||||||
"SlashCmdList"
|
|
||||||
],
|
],
|
||||||
"runtime.version": "Lua 5.1",
|
"runtime.version": "Lua 5.1",
|
||||||
"type.inferParamType": true,
|
"type.inferParamType": true,
|
||||||
|
|
|
@ -140,25 +140,16 @@ 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 '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()
|
|
||||||
end
|
|
||||||
SaveBindings(1)
|
SaveBindings(1)
|
||||||
u.guards()
|
u.guards()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register the /binds command
|
-- Register the /hello command
|
||||||
SLASH_BINDS1 = '/binds'
|
SLASH_BINDS1 = '/binds'
|
||||||
SlashCmdList['BINDS'] = BindsHandler
|
SlashCmdList['BINDS'] = BindsHandler
|
||||||
|
|
Loading…
Add table
Reference in a new issue