Posted 19 July 2012 - 08:03 PM
Hi there,
I've got here a simple api (probably simplest ever) for drawing text on Monitor
Little backstory
I just've installed this mod (as part of Tekkit), and first problem occurred was "omg how do i write text on monitor?!"
So i started to search forums, and i didn't find anything
so i tried to create an API as simple as possible for this purpose and voila
i made 2 versions, one that automatically finds monitor(mon), and another that needs specifying direction(dmon) (call dmon.setSide(str))
put them in mods/ComputerCraft/lua/rom/api
Notice: mon and dmon have all the functions that term has (write, scroll clear etc.)
EDIT: fixed nil pointer error in mon
I've got here a simple api (probably simplest ever) for drawing text on Monitor
Little backstory
I just've installed this mod (as part of Tekkit), and first problem occurred was "omg how do i write text on monitor?!"
So i started to search forums, and i didn't find anything
so i tried to create an API as simple as possible for this purpose and voila
i made 2 versions, one that automatically finds monitor(mon), and another that needs specifying direction(dmon) (call dmon.setSide(str))
put them in mods/ComputerCraft/lua/rom/api
Notice: mon and dmon have all the functions that term has (write, scroll clear etc.)
EDIT: fixed nil pointer error in mon