Hi Lord of the Games,
If you dont want to (or cant) use classes in c++, then I suggest that you use 1 main loop for your menu, in which different functions are called depending which menu shall be drawn.
something like this:
menu = 0;
bool stay_in_menu = true;
while (stay_in_menu) {
if (menu = 0) {
//call function for menu 0
} else if (menu = 1) {
// call function for menu 1
} else if (menu = 2) {
// and so on...
}
dbSync();
}
Furthermore you should define a struct for each function, where all important values of the menu that the user entered are stored, so that you can get the information from an other menu (either passing it over, or make the struct global).
Or at least define some global variables for that.
Remember, do only one Sync-loop, as I showed, and in the functions dont loop but return immediatly after having computed the users input and drawn the output.
In the End actually there are a lot of ways to organize a menu, but the best structured way would be with classes probably...
so long, hope this helps.
greets,
Barnski.
-- I just started with DarkSDK, by translating DBP Projects. --