mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- fixed some menu issues.
The submenus still do not work. Something's off here.
This commit is contained in:
parent
cc81b95570
commit
28cbecea67
2 changed files with 7 additions and 7 deletions
|
@ -385,8 +385,6 @@ void M_StartControlPanel (bool makeSound)
|
|||
BackbuttonTime = 0;
|
||||
BackbuttonAlpha = 0;
|
||||
DrawBackground = -1;
|
||||
DMenu::MenuTime = -1;
|
||||
M_Ticker(); // This needs to be called once here to make sure that the menu actually has ticked before it gets drawn for the first time.
|
||||
}
|
||||
|
||||
void Menu_Open(int playerid)
|
||||
|
@ -410,6 +408,8 @@ void M_ActivateMenu(DMenu *menu)
|
|||
transition.StartTransition(DMenu::CurrentMenu, menu, MA_Advance);
|
||||
}
|
||||
DMenu::CurrentMenu = menu;
|
||||
DMenu::MenuTime = -1;
|
||||
M_Ticker(); // This needs to be called once here to make sure that the menu actually has ticked before it gets drawn for the first time.
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
@ -420,7 +420,7 @@ void M_ActivateMenu(DMenu *menu)
|
|||
|
||||
bool M_SetMenu(FName menu, int param, FName caller)
|
||||
{
|
||||
if (DrawBackground == -1)
|
||||
if (DrawBackground == -1)
|
||||
{
|
||||
if (menu == NAME_MainMenu) DrawBackground = 1;
|
||||
else DrawBackground = 0;
|
||||
|
|
|
@ -84,9 +84,9 @@ LISTMENU "MainMenu"
|
|||
centermenu
|
||||
class "Exhumed.MainMenu"
|
||||
linespacing 22
|
||||
NativeTextItem "3460", "n", "StartGame 1"
|
||||
NativeTextItem "3460", "n", "StartGame", 1
|
||||
NativeTextItem "3461", "l", "LoadGameMenu"
|
||||
NativeTextItem "3462", "m", "StartGame 3"
|
||||
NativeTextItem "3462", "m", "StartGame", 3
|
||||
NativeTextItem "3463", "v", "OptionsMenu"
|
||||
NativeTextItem "3464", "q", "QuitMenu"
|
||||
}
|
||||
|
@ -171,9 +171,9 @@ LISTMENU "IngameMenu"
|
|||
centermenu
|
||||
class "Exhumed.MainMenu"
|
||||
linespacing 22
|
||||
NativeTextItem "3460", "n", "StartGame 1"
|
||||
NativeTextItem "3460", "n", "StartGame", 1
|
||||
NativeTextItem "3461", "l", "LoadGameMenu"
|
||||
NativeTextItem "3462", "m", "StartGame 3"
|
||||
NativeTextItem "3462", "m", "StartGame", 3
|
||||
NativeTextItem "3463", "v", "OptionsMenu"
|
||||
NativeTextItem "3464", "q", "QuitMenu"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue