:3
This commit is contained in:
		
							parent
							
								
									09992e46e7
								
							
						
					
					
						commit
						24947c49a7
					
				
							
								
								
									
										14
									
								
								keypadOS.lua
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								keypadOS.lua
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -183,6 +183,13 @@ __BUNDLER_FILES["ui.lua"] = function ()
 | 
			
		|||
end -- FILE END: ui.lua --
 | 
			
		||||
 | 
			
		||||
__BUNDLER_FILES["utils.lua"] = function ()
 | 
			
		||||
    -- Type coersion for lsp
 | 
			
		||||
    ---@generic T
 | 
			
		||||
    ---@param object any
 | 
			
		||||
    ---@return T
 | 
			
		||||
    function Cast(object)
 | 
			
		||||
        return object
 | 
			
		||||
    end
 | 
			
		||||
    --- @type Monitor
 | 
			
		||||
    local MONITOR = Cast(peripheral.find("monitor"))
 | 
			
		||||
    local MONITOR_Y = 1
 | 
			
		||||
| 
						 | 
				
			
			@ -195,13 +202,6 @@ __BUNDLER_FILES["utils.lua"] = function ()
 | 
			
		|||
        MONITOR.clear()
 | 
			
		||||
        MONITOR.setTextScale(scale)
 | 
			
		||||
    end
 | 
			
		||||
    -- Type coersion for lsp
 | 
			
		||||
    ---@generic T
 | 
			
		||||
    ---@param object any
 | 
			
		||||
    ---@return T
 | 
			
		||||
    function Cast(object)
 | 
			
		||||
        return object
 | 
			
		||||
    end
 | 
			
		||||
    return {
 | 
			
		||||
        MonPrint,
 | 
			
		||||
        MonReset,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,12 @@
 | 
			
		|||
-- Type coersion for lsp
 | 
			
		||||
---@generic T
 | 
			
		||||
---@param object any
 | 
			
		||||
---@return T
 | 
			
		||||
function Cast(object)
 | 
			
		||||
    return object
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--- @type Monitor
 | 
			
		||||
local MONITOR = Cast(peripheral.find("monitor"))
 | 
			
		||||
local MONITOR_Y = 1
 | 
			
		||||
| 
						 | 
				
			
			@ -12,14 +21,6 @@ function MonReset(scale)
 | 
			
		|||
    MONITOR.setTextScale(scale)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
-- Type coersion for lsp
 | 
			
		||||
---@generic T
 | 
			
		||||
---@param object any
 | 
			
		||||
---@return T
 | 
			
		||||
function Cast(object)
 | 
			
		||||
    return object
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
return {
 | 
			
		||||
    MonPrint,
 | 
			
		||||
    MonReset,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user