Some help messages, default to no action
This commit is contained in:
parent
191e3665b0
commit
edb863e8fe
1 changed files with 11 additions and 2 deletions
|
@ -140,16 +140,25 @@ 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 /hello command
|
-- Register the /binds command
|
||||||
SLASH_BINDS1 = '/binds'
|
SLASH_BINDS1 = '/binds'
|
||||||
SlashCmdList['BINDS'] = BindsHandler
|
SlashCmdList['BINDS'] = BindsHandler
|
||||||
|
|
Loading…
Add table
Reference in a new issue