Window GUI
#1
Posted 28 January 2015 - 06:34 PM
Thanks Grim
#2
Posted 28 January 2015 - 06:37 PM
#3
Posted 28 January 2015 - 10:57 PM
#4
Posted 29 January 2015 - 03:59 PM
Bomb Bloke, on 28 January 2015 - 10:57 PM, said:
Seems like the window API would work. Is it 1.6 and above or no?
#5
Posted 29 January 2015 - 04:05 PM
CCGrimHaxor, on 29 January 2015 - 03:59 PM, said:
I'd recommend doing something like this:
if not window then
printError("This program only runs on ComputerCraft 1.6 or newer.")
end
#6
Posted 30 January 2015 - 07:22 PM
Bomb Bloke, on 28 January 2015 - 10:57 PM, said:
How do you remove the window after the user gave the input?
#7
Posted 30 January 2015 - 07:33 PM
CCGrimHaxor, on 30 January 2015 - 07:22 PM, said:
Bomb Bloke, on 28 January 2015 - 10:57 PM, said:
How do you remove the window after the user gave the input?
Stop rendering it.
Generally, you'd clear the screen, then render all other windows you have.
#8
Posted 30 January 2015 - 08:18 PM
KingofGamesYami, on 30 January 2015 - 07:33 PM, said:
CCGrimHaxor, on 30 January 2015 - 07:22 PM, said:
Bomb Bloke, on 28 January 2015 - 10:57 PM, said:
How do you remove the window after the user gave the input?
Stop rendering it.
Generally, you'd clear the screen, then render all other windows you have.
Let me kind of explain this because this reall isn't where I am aiming by this.
Basicly I have 2 programs running 1 of the program is my application the other program is any program the user has chosen and what I want to do is when the program chosen by the user calls a function my programs redners a window that has 2 buttons. When 1 of the buttons is pressed the window dissappears and shows back the user open program without that user opened program having to redraw everything.
#9
Posted 30 January 2015 - 09:33 PM
#10
Posted 30 January 2015 - 10:51 PM
Both of these windows will be managed by your script, which'll also be managing the user program's co-routine. You'll likely want to open up a ComputerCraft mod archive and dig up the source for multishell.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











