Reader small image

You're reading from  Torque 3D Game Development Cookbook

Product typeBook
Published inJan 2013
Reading LevelIntermediate
PublisherPackt
ISBN-139781849693547
Edition1st Edition
Languages
Right arrow
Author (1)
DAVID WYAND
DAVID WYAND
author image
DAVID WYAND

David Wyand has been using GarageGames' Torque Game Engine for the past 10 years. Among his other interestes are 3D graphics applications, computer networking and Artificial Intelligence for computer games.
Read more about DAVID WYAND

Right arrow

Using pushDialog() and popDialog() and setting up the UI file to work with them


There are times when we want to present to the user additional information that is overlaid on the current screen. This could take, for example, the form of a window with a Yes or No question that the user needs to answer for the game. In this recipe, we will create a new GuiWindowCtrl control that we will present to the user over the top of the current screen content, and have this window dismissed when the user clicks on a button.

Getting ready

For this recipe we will be working with the GUI Editor. We begin by starting up our game (such as the one built using the Full template) and at the Main Menu section, pressing F10 to launch the GUI Editor.

How to do it...

In the following steps we will create a new dialog window and display it to the user:

  1. From the File menu, choose New Gui. This will open the Create new GUI dialog box.

  2. Within the GUI Name field enter a name as DialogTest.

  3. Make sure that the GUI Class drop...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Torque 3D Game Development Cookbook
Published in: Jan 2013Publisher: PacktISBN-13: 9781849693547

Author (1)

author image
DAVID WYAND

David Wyand has been using GarageGames' Torque Game Engine for the past 10 years. Among his other interestes are 3D graphics applications, computer networking and Artificial Intelligence for computer games.
Read more about DAVID WYAND