remove namespace
This commit is contained in:
		
							parent
							
								
									662814e302
								
							
						
					
					
						commit
						a1a80c4035
					
				
					 1 changed files with 11 additions and 11 deletions
				
			
		|  | @ -26,7 +26,7 @@ local function bprint(msg) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| -- Prints some separators | -- Prints some separators | ||||||
| function u.guards()  | function guards()  | ||||||
|     local accum = "" |     local accum = "" | ||||||
|     for _ = 1, 30 do |     for _ = 1, 30 do | ||||||
|         accum = accum .. "=" |         accum = accum .. "=" | ||||||
|  | @ -34,19 +34,19 @@ function u.guards() | ||||||
|     print(colorWrap(accum, COLOR.legendary)) |     print(colorWrap(accum, COLOR.legendary)) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| function u.info(msg) | function info(msg) | ||||||
|     bprint(colorWrap(msg, COLOR.heirloom)) |     bprint(colorWrap(msg, COLOR.heirloom)) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| function u.warn(msg) | function warn(msg) | ||||||
|     bprint(colorWrap(msg, COLOR.warning)) |     bprint(colorWrap(msg, COLOR.warning)) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| function u.error(msg) | function error(msg) | ||||||
|     bprint(colorWrap(msg, COLOR.red)) |     bprint(colorWrap(msg, COLOR.red)) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| function u.success(msg) | function success(msg) | ||||||
|     bprint(colorWrap(msg, COLOR.green)) |     bprint(colorWrap(msg, COLOR.green)) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | @ -155,9 +155,9 @@ end | ||||||
| local function setBindingRM(key, action) | local function setBindingRM(key, action) | ||||||
|     unsetBinding(action); |     unsetBinding(action); | ||||||
|     if SetBinding(key, action) then |     if SetBinding(key, action) then | ||||||
|         u.success(key .. " -> " .. action); |         success(key .. " -> " .. action); | ||||||
|     else |     else | ||||||
|         u.error("Failed to set binding " .. key .. " to " .. action); |         error("Failed to set binding " .. key .. " to " .. action); | ||||||
|     end |     end | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
|  | @ -165,8 +165,8 @@ local function applyBindingSet(set) | ||||||
|     for key, action in pairs(set) do |     for key, action in pairs(set) do | ||||||
|         setBindingRM(key, action) |         setBindingRM(key, action) | ||||||
|     end |     end | ||||||
|     u.info("Bindings set!") |     info("Bindings set!") | ||||||
|     u.warn("Dont forget to reload your UI.") |     warn("Dont forget to reload your UI.") | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| local function enableBars() | local function enableBars() | ||||||
|  | @ -188,7 +188,7 @@ local function enableBars() | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| local function BindsHandler(msg, editbox) | local function BindsHandler(msg, editbox) | ||||||
|     u.guards() |     guards() | ||||||
|     if msg == "" then |     if msg == "" then | ||||||
|         applyBindingSet(myBinds) |         applyBindingSet(myBinds) | ||||||
|         enableBars() |         enableBars() | ||||||
|  | @ -197,7 +197,7 @@ local function BindsHandler(msg, editbox) | ||||||
|         applyBindingSet(cameraBinds) |         applyBindingSet(cameraBinds) | ||||||
|     end |     end | ||||||
|     SaveBindings(1) |     SaveBindings(1) | ||||||
|     u.guards() |     guards() | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| -- Register the /hello command | -- Register the /hello command | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Imbus
						Imbus