mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- fixed: SBARINFO based status bars got the wrong color for automap HUD highlights when playing Doom.
This commit is contained in:
parent
99a61e74c7
commit
5bbf173b4e
2 changed files with 2 additions and 7 deletions
|
@ -20,12 +20,6 @@ class DoomStatusBar : BaseStatusBar
|
||||||
diparms = InventoryBarState.Create();
|
diparms = InventoryBarState.Create();
|
||||||
}
|
}
|
||||||
|
|
||||||
override void DrawAutomapHUD(double ticFrac)
|
|
||||||
{
|
|
||||||
// This uses the normal automap HUD but just changes the highlight color.
|
|
||||||
DoDrawAutomapHUD(Font.CR_GREY, Font.CR_UNTRANSLATED);
|
|
||||||
}
|
|
||||||
|
|
||||||
override void Draw (int state, double TicFrac)
|
override void Draw (int state, double TicFrac)
|
||||||
{
|
{
|
||||||
Super.Draw (state, TicFrac);
|
Super.Draw (state, TicFrac);
|
||||||
|
|
|
@ -798,7 +798,8 @@ class BaseStatusBar native ui
|
||||||
|
|
||||||
virtual void DrawAutomapHUD(double ticFrac)
|
virtual void DrawAutomapHUD(double ticFrac)
|
||||||
{
|
{
|
||||||
DoDrawAutomapHUD(Font.CR_GREY, Font.CR_YELLOW);
|
// game needs to be checked here, so that SBARINFO also gets the correct colors.
|
||||||
|
DoDrawAutomapHUD(Font.CR_GREY, gameinfo.gametype & GAME_DoomChex? Font.CR_UNTRANSLATED : Font.CR_YELLOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue