This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
kornichen's profile picture

[V1.0] KAPI - All the API's you need in one API (Write your own programs for KREOS)

Started by kornichen, 09 December 2012 - 10:29 PM
kornichen #1
Posted 09 December 2012 - 11:29 PM
KAPI

KAPI 1.0 - © 2012 kornichen




What is KAPI?
Kapi is an API that have all API's you need in one API. Also you will need KAPI if you wan't to write an program that is 100% compatible with KREOS. But it is also beneficial for you because you can load files and images with it and you can create the mouse controlled GUI of your programm easily with KAPI.

What are the features of KAPI?
KAPI comes with many functions. In the spoiler below you can see a table of all functions with descriptions, parameters and return values.
Spoiler

[table]
[tr][td]Function[/td][td]Description[/td][/tr][td]Parameters[/td][/tr][td]Return Values[/td][/tr]
[tr][td]fileLineTableWrite[/td][td]Writes a Table into a File[/td][/tr][td]path, table[/td][/tr][td]-[/td][/tr]
[tr][td]fileTableGet[/td][td]Writes all lines from a File into a Table[/td][/tr][td]path[/td][/tr][td]table[/td][/tr]
[tr][td]fileTextWrite[/td][td]Writes a text into a file[/td][/tr][td]path, text[/td][/tr][td]-[/td][/tr]
[tr][td]fileLineReplace[/td][td]Replace a line in a File with a text[/td][/tr][td]path, line, text[/td][/tr][td]-[/td][/tr]
[/table]
The other functions are following soon!


Download is following soon!
kylergs #2
Posted 10 December 2012 - 08:39 AM
Looks cool, just a note though. Rather than:
if x == true then …
you can just do:
if x then…
theoriginalbit #3
Posted 15 December 2012 - 04:16 AM
Please click here for a screenshot because I'm not allowed to paste it directly into the topic:

you can embed from other websites such as imgur though using the image button on the toolbar.
bjornir90 #4
Posted 15 December 2012 - 05:02 AM
Love the window so far :)/>
kornichen #5
Posted 16 December 2012 - 11:51 AM
Love the window so far :)/>/>

Thank you!

Please look at this:
http://www.computercraft.info/forums2/index.php?/topic/7054-kreos-the-operating-system-with-full-mouse-support/page__hl__kreos__fromsearch__1