Hi guys,
I made a menu, loaded in a background file for test purposes and assigned a few menu items
Start
Settings
Exit
When the program first starts a flag is set to 1 so the menu appears when the program has loaded
up.
Then it goes into a while loop, while the flag is = 1, then theirs a if block for the menu items.
this is where it gets funny.. I have assigned keys to the menu as well as mouse positions, if the mouse is in location and left button is pressed or the T key is pressed then re size the screen to full screen.
It works when you press the T key but when you click it, it re-sizes the screen but does not call the menu draw function again to re-size the menu background and text.
its wierd because it works if I don't put the menu draw in its own function but then it will not re-size the background or the menu text because it can not be called from the if bock..
I have attached the lua file.
App.rar