Skip to content

gquarles/Computercraft-Screen-Renderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Computercraft Screen Renderer

Computercraft Screen Renderer is a basic implementation of an api in a Minecraft mod called Computercraft. This repo was for learning purposes and is now deprecated.

Installation

Clone the repo into a computer

pastebin get jjpRy3cc render

Usage

--Declare a new screen
screen = renderer:new{debug = 0}

--Declare a custom function
function helloWorld()
   print("Hello, World!")
end

--Add some options
screen:addOption("Exit", "break")-
screen:addOption("Call Func", "helloWorld()")
screen:addOption("Lua Shell", "shell.run('lua')")

--Set the screen header text and color
screen:setHeader("Please Select an Option")
screen:setHeaderColor(colors.green)

--Display the screen to the user
screen:render()

License

MIT

About

Create and render your own selection screens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages