Multiple versions
This commit is contained in:
		
							parent
							
								
									1476754b82
								
							
						
					
					
						commit
						50f2fc7b22
					
				
					 3 changed files with 25 additions and 17 deletions
				
			
		
							
								
								
									
										32
									
								
								binds.lua
									
										
									
									
									
								
							
							
						
						
									
										32
									
								
								binds.lua
									
										
									
									
									
								
							|  | @ -27,6 +27,7 @@ local myBinds = { | |||
|     ["F1"] = "TOGGLEBACKPACK", | ||||
|     ["F2"] = "TOGGLECHARACTER0", | ||||
| 
 | ||||
|     -- Remove zoom from mousewheel | ||||
|     ["-"] = "CAMERAZOOMOUT", | ||||
|     ["+"] = "CAMERAZOOMIN", | ||||
| 
 | ||||
|  | @ -108,12 +109,20 @@ local function setAllBinds() | |||
|     print("Bindings set. Run /binds permanent to save them permanently.") | ||||
| 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) | ||||
|     if msg == "permanent" then | ||||
|         SaveBindings(1) | ||||
|         print("Bindings saved permanently. Enjoy!") | ||||
|         return | ||||
|     end | ||||
|     if msg == "reset" then | ||||
|         for key, action in pairs(myBinds) do | ||||
|             unsetBinding(action) | ||||
|  | @ -123,16 +132,9 @@ local function BindsHandler(msg, editbox) | |||
|     end | ||||
|     if msg == "" then | ||||
|         setAllBinds() | ||||
|         return | ||||
|     end | ||||
|     if msg == "help" then | ||||
|         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(); | ||||
|         enableBars() | ||||
|         SaveBindings(1) | ||||
|         ReloadUI() | ||||
|         return | ||||
|     end | ||||
| end | ||||
|  |  | |||
							
								
								
									
										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 | ||||
| ## Title: ImbusBindings | ||||
| ## Author: Imbus | ||||
| ## Version: 0.1 | ||||
| ## Version: 0.1.1 | ||||
| 
 | ||||
| binds.lua | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus