Compare commits
	
		
			2 commits
		
	
	
		
			191e3665b0
			...
			b149abc34e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | b149abc34e | ||
|   | edb863e8fe | 
					 2 changed files with 18 additions and 3 deletions
				
			
		|  | @ -10,7 +10,13 @@ | |||
|       "arg7", | ||||
|       "arg8", | ||||
|       "arg9", | ||||
|       "event" | ||||
|       "event", | ||||
|         "SetBinding", | ||||
|         "SetCVar", | ||||
|         "MultiActionBar_Update", | ||||
|         "SetActionBarToggles", | ||||
|         "SaveBindings", | ||||
|         "SlashCmdList" | ||||
|    ], | ||||
|    "runtime.version": "Lua 5.1", | ||||
|    "type.inferParamType": true, | ||||
|  |  | |||
|  | @ -140,16 +140,25 @@ end | |||
| local function BindsHandler(msg, editbox) | ||||
|   u.guards() | ||||
|   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) | ||||
|     enableBars() | ||||
|   end | ||||
|   if msg == 'camera' then | ||||
|     applyBindingSet(cameraBinds) | ||||
|   end | ||||
|   if msg == 'bars' then | ||||
|     enableBars() | ||||
|   end | ||||
|   SaveBindings(1) | ||||
|   u.guards() | ||||
| end | ||||
| 
 | ||||
| -- Register the /hello command | ||||
| -- Register the /binds command | ||||
| SLASH_BINDS1 = '/binds' | ||||
| SlashCmdList['BINDS'] = BindsHandler | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue