Menu programming

Monkey Forums/Monkey Programming/Menu programming

Raz(Posted 2011) [#1]
Every time I go about programming a menu interface (like a main menu, options menu, credits, the actual game), it goes one of two ways.

1) It's a case of trying to wrap it around a game that has no consideration for menus.
2) My intentions start well, but soon it ends up being quite a messy bodge of a system that isn't elegant at all.

Does anyone out there have any golden rules for handling this kind of thing? Or maybe a link that points to an article that does (i'm not entirely sure of the phrase I should be searching for!)?

Thanks
-CHris


Supertino(Posted 2011) [#2]
Used to trip me up but I made quite a swanky set of gui objects so I can add/remove/move/delete buttons and other menu-y stuff with ease and even define the properties in an xml doc.

Then when I am making a game I just drop in a buttons and stuff as I go and go position them and assign images later.


slenkar(Posted 2011) [#3]
a gui system is essential,

I have my own, I could post it here later when ive cleaned it up