OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

terminal glasses question #56

Closed TOLoneWolf closed 9 years ago

TOLoneWolf commented 9 years ago

I have searched all over and haven't been able to find a list of the methods and the arguments for the terminal glasses. I looked at the information on the FTB wiki but it's out of date as to how and trigger the glasses. I was lucky enough to come across the issue on here issues#51 saying the sync() method. Is there a place to find more update date information on how they are used? And is there a way in computercraft to see what the parameters are that a method can except? It would be a great deal of help. Thank you for any help you can provide.

applejag commented 9 years ago

If you wrap the terminal bridge and then do bridge.listMethods() you will get a nice list of methods you can use. For example: image It can be hard to see but some functions are next to each other on the same line, like after addFluid there's actually addGradientBox as well on the same line.

Now if you want more in depth info about the arguments you can always do bridge.doc(method) like so: image

And you can also use the listMethods and doc methods inside a text object, ex: image

boq commented 9 years ago

Thanks, nice explanation.

Anyway, all methods (including this one) for getting documentation (including exporting to HTML file) are described in our FAQ.