Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Help with displaying text as it is typed

Author
Message
Crimson X
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: New Hampshire
Posted: 16th Jan 2009 08:16
Hello guys,

I am stuck and need help. In my game I am creating a debug mode so I can enter commands to manipulate variables and whatnot. Anyway I am coming out at a loss.

What I have is a transparent console that slides in when I hit control and displays its text using the following code:



Now I want to read what is typed in real time, and display it in real time. Same as windows cmd.exe works or terminal in linux. Whats the best way to do this? I have tried many ideas but they didn't work... Thanks in advance!
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 16th Jan 2009 10:52 Edited at: 16th Jan 2009 10:53
You can do something like this:

I use strings, but you maybe find another way to save the variables.
Crimson X
16
Years of Service
User Offline
Joined: 28th Nov 2007
Location: New Hampshire
Posted: 22nd Jan 2009 05:41
Thanks so much! It worked perfectly with some minor modifications

Login to post a reply

Server time is: 2024-11-25 11:46:50
Your offset time is: 2024-11-25 11:46:50