Posted 01 June 2015 - 09:49 PM
EDIT: I WILL BE MOVING THIS TO GOOGLE DOCS SOON!
This topic will teach you what you need to know to develop for OpenTerminal. It is a megathread that will contain everything you need to know.
For most applications all you will need to do is grab some information that will allow you to display things in the proper color and format. This is done for you with the API.
Notification Functions:
To warn a user, use OTOS.warn(string warnString).
Similarly, to error a user, use OTOS.error(string errorString)
Finally, to notify a user positively, use OTOS.notify(string notifyString)
Grabbing data as of S3 (coming soon)
In the event that you need to manually grab data (such as text color and background color) you can use OTOS.fetch(string fetchKey)
You can fetch anything in the OTOS api that you can find in the array dataArray (in the OTOS api).
You can find that here: http://pastebin.com/nRymdzYe
Grabbing data for S2 and below.
S2 and below do not include the OTOS.fetch() program. We recommend waiting to work on your programs until this has been implemented as it is a pain to fix.
If you insist on doing it the hard way and grabbing them instead of waiting for S3 to release, please simply grab them by setting your variable equal to the variables in OTOSapi.
DO NOT SET THE VARIABLES! THIS WILL MESS UP OTOS!
If there are any issues with the documentation let me know, otherwise all discussion goes on the forum thread here:http://www.computerc...review-edition/ or the subreddit here: http://reddit.com/r/otos.
This topic will teach you what you need to know to develop for OpenTerminal. It is a megathread that will contain everything you need to know.
Basics
The basics of OpenTerminalOS development are pretty simple.For most applications all you will need to do is grab some information that will allow you to display things in the proper color and format. This is done for you with the API.
Notification Functions:
To warn a user, use OTOS.warn(string warnString).
Similarly, to error a user, use OTOS.error(string errorString)
Finally, to notify a user positively, use OTOS.notify(string notifyString)
Grabbing data as of S3 (coming soon)
In the event that you need to manually grab data (such as text color and background color) you can use OTOS.fetch(string fetchKey)
You can fetch anything in the OTOS api that you can find in the array dataArray (in the OTOS api).
You can find that here: http://pastebin.com/nRymdzYe
Grabbing data for S2 and below.
S2 and below do not include the OTOS.fetch() program. We recommend waiting to work on your programs until this has been implemented as it is a pain to fix.
If you insist on doing it the hard way and grabbing them instead of waiting for S3 to release, please simply grab them by setting your variable equal to the variables in OTOSapi.
DO NOT SET THE VARIABLES! THIS WILL MESS UP OTOS!
If there are any issues with the documentation let me know, otherwise all discussion goes on the forum thread here:http://www.computerc...review-edition/ or the subreddit here: http://reddit.com/r/otos.
Edited on 26 June 2015 - 04:24 PM