Dialog box for entering name?
by Vern Jensen · in Torque Game Builder · 01/03/2007 (5:32 pm) · 4 replies
So I'm making a game for the Casual Game market, and a common feature is to have the player enter his/her name into a dialog box. So:
- Should I "roll my own" by displaying a sprite with some sort of text input object in it, and my own OK button? Or should I use Torque's built-in GUI dialog box code? If I use the built-in dialog, is it easy to replace the default graphics with my own? (I want the dialog box's visual appearance to match the rest of my game.)
If the latter, is there a place someone could refer me to that documents how to do this? (How to create a dialog box where you can enter your name, and *especially* how to use my own custom artwork.) I remember the last time I looked into doing GUI work with Torque, it was severely lacking in the documentation area... only one or two brief tutorials that didn't cover what I wanted to do...
BTW, is there some sort of text input object that I could display in any context, which allows the user to click inside it and type in text? Could be useful for things like a High Score page, where you enter your name directly in the line where it will end up...
- Should I "roll my own" by displaying a sprite with some sort of text input object in it, and my own OK button? Or should I use Torque's built-in GUI dialog box code? If I use the built-in dialog, is it easy to replace the default graphics with my own? (I want the dialog box's visual appearance to match the rest of my game.)
If the latter, is there a place someone could refer me to that documents how to do this? (How to create a dialog box where you can enter your name, and *especially* how to use my own custom artwork.) I remember the last time I looked into doing GUI work with Torque, it was severely lacking in the documentation area... only one or two brief tutorials that didn't cover what I wanted to do...
BTW, is there some sort of text input object that I could display in any context, which allows the user to click inside it and type in text? Could be useful for things like a High Score page, where you enter your name directly in the line where it will end up...
#2
01/04/2007 (8:21 am)
Yeah, unfortunately text entry still has to be done with the GUI builder.
#3
For instance, check out the "Once Upon a Time" demo (do a Google search). That's a Torque game, and it has a dialog where you enter your name, but it's totally customized graphically... doesn't look a thing like a standard Torque GUI dialog. So can you customize GUI dialogs, or did they roll their own here?
01/04/2007 (1:12 pm)
So, when using the GUI builder, can you customize the look of the dialog? For instance, check out the "Once Upon a Time" demo (do a Google search). That's a Torque game, and it has a dialog where you enter your name, but it's totally customized graphically... doesn't look a thing like a standard Torque GUI dialog. So can you customize GUI dialogs, or did they roll their own here?
#4
GUIs reference a "profile" and these profiles reference images that are used for them... look in your common/gui/images folder to see the existing ones and how you can set up your own.
01/04/2007 (2:52 pm)
The simple answer to your question is yes :)GUIs reference a "profile" and these profiles reference images that are used for them... look in your common/gui/images folder to see the existing ones and how you can set up your own.
Torque Owner Drew -Gaiiden- Sikora