In GM's show_menu function, I want it to return x if nothing is selected. Here's an example:
{
exmenu = show_menu('Item0|Item1|Item2','5')
{
switch(exmenu)
{
case 0: show_message('You picked item 0!'); break;
case 1: show_message('You picked item 1!'); break;
case 2: show_message('You picked item 2!'); break;
case 5: break;
}
}
}
Ok, so for each of the menu items, a number is returned. In this case, 0, 1, and 2 are returned. Since the default return is set to 5, I figured that making a case 5 and causing it to break would make it to where 0 would not be returned and case 0 will not initiate, thus causing the menu to close without selecting anything. Unfortunately, this isn't the case, as 0 is returned anyway. Anyone know how to make it so 5 is returned instead? Thanks!