Original Post
Hi everyone, I just wanted to get some advice on the design of a scripted menu system. These are the ideas that I have so far. - From the LUA script you will be able to create different widgets for the menu: Clickable buttons, static text, and images. - When you click on a button, the lua script will figure out which button it is and from there will have a callback stored for the button and will call that callback function, which would call another menu, like the Options or something like that. - I also would like this same system to be used for in game pause menus and things like that, and perhaps the HUD as well. So you will be able to tell the system how big the menu area is and then you can place your buttons, text, images, whatever in that area. So how does that sound? What i'm having trouble grasping is how my c++ code should handle this in the best manner. My thoughts were when the project starts the program will load MainMenu.lua no matter what, so that file would have to be there. Then from there the MainMenu script would control the rest of the flow until the button that starts the game is called. Any suggestions or ideas would be very welcome and very useful! Thanks. Andrew