Scrolling Game Development Kit Forum
SGDK Version 2 => Help, Errors, FAQ => Topic started by: v6v on 2012-05-27, 02:15:27 PM
-
Would it be possible for me to simply slap an input textbox inside of the game window while the game is running?
I want to have the user input some form of data ingame, and the game is fullscreen. I don't want to use Window.Forms however, I want this to be in the same window, running with the game.
-
I assume you mean you don't want to use a separate windows form, seeing as how the text box and the window you are slapping it on are bothe in the windows.forms namespace. I'm not familiar with the inner workings of the OpenGL view, but I would say yes, you can just create a textbox and add it as a child to the root form. Just make sure you're doing so on the main UI thread, otherwise hilarity ensues. Or crashing. One or the other. Probably the other... It's the other.
-
I assume you mean you don't want to use a separate windows form, seeing as how the text box and the window you are slapping it on are bothe in the windows.forms namespace. I'm not familiar with the inner workings of the OpenGL view, but I would say yes, you can just create a textbox and add it as a child to the root form. Just make sure you're doing so on the main UI thread, otherwise hilarity ensues. Or crashing. One or the other. Probably the other... It's the other.
First.. lol
I'm gonna try it, but I also am unsure whether I should take your word for it... I'm gonna try it. Yeah. I'm gonna try it.