Multiple versions
This commit is contained in:
parent
1476754b82
commit
50f2fc7b22
3 changed files with 25 additions and 17 deletions
34
binds.lua
34
binds.lua
|
@ -27,6 +27,7 @@ local myBinds = {
|
||||||
["F1"] = "TOGGLEBACKPACK",
|
["F1"] = "TOGGLEBACKPACK",
|
||||||
["F2"] = "TOGGLECHARACTER0",
|
["F2"] = "TOGGLECHARACTER0",
|
||||||
|
|
||||||
|
-- Remove zoom from mousewheel
|
||||||
["-"] = "CAMERAZOOMOUT",
|
["-"] = "CAMERAZOOMOUT",
|
||||||
["+"] = "CAMERAZOOMIN",
|
["+"] = "CAMERAZOOMIN",
|
||||||
|
|
||||||
|
@ -108,12 +109,20 @@ local function setAllBinds()
|
||||||
print("Bindings set. Run /binds permanent to save them permanently.")
|
print("Bindings set. Run /binds permanent to save them permanently.")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function enableBars()
|
||||||
|
SetActionBarToggles(1, 1, 1, 1, 1);
|
||||||
|
SHOW_MULTI_ACTIONBAR_1 = 1 --Bottom Left Bar
|
||||||
|
SHOW_MULTI_ACTIONBAR_2 = 1 --Bottom Right Bar
|
||||||
|
SHOW_MULTI_ACTIONBAR_3 = 1 --Right Bar
|
||||||
|
SHOW_MULTI_ACTIONBAR_4 = 1 --Right Bar 2
|
||||||
|
MultiActionBar_Update();
|
||||||
|
InterfaceOptions_UpdateMultiActionBars();
|
||||||
|
SetCVar("alwaysShowActionBars", 1);
|
||||||
|
SetCVar("lockActionBars", 1);
|
||||||
|
SetCVar("countdownForCooldowns", 1 );
|
||||||
|
end
|
||||||
|
|
||||||
local function BindsHandler(msg, editbox)
|
local function BindsHandler(msg, editbox)
|
||||||
if msg == "permanent" then
|
|
||||||
SaveBindings(1)
|
|
||||||
print("Bindings saved permanently. Enjoy!")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
if msg == "reset" then
|
if msg == "reset" then
|
||||||
for key, action in pairs(myBinds) do
|
for key, action in pairs(myBinds) do
|
||||||
unsetBinding(action)
|
unsetBinding(action)
|
||||||
|
@ -123,20 +132,13 @@ local function BindsHandler(msg, editbox)
|
||||||
end
|
end
|
||||||
if msg == "" then
|
if msg == "" then
|
||||||
setAllBinds()
|
setAllBinds()
|
||||||
return
|
enableBars()
|
||||||
end
|
SaveBindings(1)
|
||||||
if msg == "help" then
|
ReloadUI()
|
||||||
print("Usage: /binds [ permanent | bars | reset | help ]")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
if msg == "bars" then
|
|
||||||
print("\124cFFFF0000THIS DOESENT WORK YET\124r")
|
|
||||||
SetActionBarToggles(1, 1, 1, 1);
|
|
||||||
MultiActionBar_Update();
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Register the /hello command
|
-- Register the /hello command
|
||||||
SLASH_BINDS1 = "/binds"
|
SLASH_BINDS1 = "/binds"
|
||||||
SlashCmdList["BINDS"] = BindsHandler
|
SlashCmdList["BINDS"] = BindsHandler
|
||||||
|
|
6
binds_Mainline.toc
Executable file
6
binds_Mainline.toc
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
## Interface: 100107
|
||||||
|
## Title: ImbusBindings
|
||||||
|
## Author: Imbus
|
||||||
|
## Version: 0.1.1
|
||||||
|
|
||||||
|
binds.lua
|
|
@ -1,6 +1,6 @@
|
||||||
## Interface: 30403
|
## Interface: 30403
|
||||||
## Title: ImbusBindings
|
## Title: ImbusBindings
|
||||||
## Author: Imbus
|
## Author: Imbus
|
||||||
## Version: 0.1
|
## Version: 0.1.1
|
||||||
|
|
||||||
binds.lua
|
binds.lua
|
Loading…
Reference in a new issue