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", |     ["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 BindsHandler(msg, editbox) | local function enableBars() | ||||||
|     if msg == "permanent" then |         SetActionBarToggles(1, 1, 1, 1, 1); | ||||||
|         SaveBindings(1) |         SHOW_MULTI_ACTIONBAR_1 = 1 --Bottom Left Bar | ||||||
|         print("Bindings saved permanently. Enjoy!") |         SHOW_MULTI_ACTIONBAR_2 = 1 --Bottom Right Bar | ||||||
|         return |         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 | end | ||||||
|  | 
 | ||||||
|  | local function BindsHandler(msg, editbox) | ||||||
|     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,16 +132,9 @@ 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 | ||||||
|  |  | ||||||
							
								
								
									
										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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus