Posted 02 April 2014 - 11:10 PM
Okay so I have no idea how to use this new Window API from the pre-release of ComputerCraft 1.6! I took this off the actual computer using
Window API:
I don't understand the "parent" bit? what is this? I have tried a string, an integer, a boolean. Nothing works. It says it is expecting an object.. Now I have been using CC for about a year and a bit but I don't actually understand what it is asking for… a table? and if so how is the table supposed to be structured? It isn't explained anywhere (that I have searched) and not in the API's list.
Can someone please help me?
also do you use the following code to actually make a window?
I think that is the write syntax?:S
Also!! The mod has a few problems with it's file system, when I installed it, all my computers shared the same file system >.< so I couldn't use different startup programs… It has stopped now, but sometimes reverts to it.
Thanks guys!!
help window
in the shell.Window API:
window.create(parent, intX, intY, intWidth, intHeight, bolVisible)
I don't understand the "parent" bit? what is this? I have tried a string, an integer, a boolean. Nothing works. It says it is expecting an object.. Now I have been using CC for about a year and a bit but I don't actually understand what it is asking for… a table? and if so how is the table supposed to be structured? It isn't explained anywhere (that I have searched) and not in the API's list.
Can someone please help me?
also do you use the following code to actually make a window?
window1 = window.create(parent, intX, intY, intWidth, intHeight, bolVisible)
then use:
window1.write("Hello World!")
???I think that is the write syntax?:S
Also!! The mod has a few problems with it's file system, when I installed it, all my computers shared the same file system >.< so I couldn't use different startup programs… It has stopped now, but sometimes reverts to it.
Thanks guys!!