Game Development Community

Toggling through a gui menu list (like the stat screens on Final Fantasy)

by Dylan West · in Game Design and Creative Issues · 07/14/2009 (5:36 pm) · 4 replies

I am trying to make a menu screen for an RPG I'm making with a list of menu options that the player can toggle through using the up or down arrow keys, just like in Final Fantasy games where it uses the little white gloved hand icon to point at the currently selected menu item. I've scoured the forums and my torque books and tdn for a tutorial on how to do this and can't find any mention of it. Does anyone know if there's a built-in way to make these guis or will I have to modify the game engine?

Thanks.

#1
07/14/2009 (6:38 pm)
Yes - you'll want to use a GuiGameListMenuCtrl. (note: You'll need to add the little white hand yourself, but the advantage is that the keys/gamepad/mouse selection are all already done for you)

Note: I don't know if this object is on TGE, but it's on TGEA and T3D.
#2
07/14/2009 (10:21 pm)
It doesn't appear to be built into TGE 1.5.2. Does anyone know of a resource for that? Is it really only for TGEA? (I did a search for GuiGameListMenuCtrl on TDN and got no results)

Thanks, Jaimi for your quick response.
#3
07/17/2009 (10:15 pm)
You could always program your own system.

Basically, the idea is to create an array of items, and have a variable that stores the index of the currently selected item. For example, say I have three options stored in an array, (0 = New Game, 1 = Continue, 2 = Quit). I have another variable that stores which of those (0, 1, or 2). The hand object will render next to whichever item is currently selected, and when the accept button is pressed, it will act based upon that index variable.
#4
07/17/2009 (10:39 pm)
@Jamie

Is this working in T3D B4? I was looking to use that control, but I can't seem to do anything with it... drag/drop?