mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Only show ingame hint in Game tab
Since it looks ugly overlaid over the other tabs
This commit is contained in:
parent
d1463c62d1
commit
c4463a3848
|
@ -1377,20 +1377,34 @@ int CMenus::Render()
|
||||||
if(Client()->State() != IClient::STATE_OFFLINE)
|
if(Client()->State() != IClient::STATE_OFFLINE)
|
||||||
{
|
{
|
||||||
if(m_GamePage == PAGE_GAME)
|
if(m_GamePage == PAGE_GAME)
|
||||||
|
{
|
||||||
RenderGame(MainView);
|
RenderGame(MainView);
|
||||||
|
RenderIngameHint();
|
||||||
|
}
|
||||||
else if(m_GamePage == PAGE_PLAYERS)
|
else if(m_GamePage == PAGE_PLAYERS)
|
||||||
|
{
|
||||||
RenderPlayers(MainView);
|
RenderPlayers(MainView);
|
||||||
|
}
|
||||||
else if(m_GamePage == PAGE_SERVER_INFO)
|
else if(m_GamePage == PAGE_SERVER_INFO)
|
||||||
|
{
|
||||||
RenderServerInfo(MainView);
|
RenderServerInfo(MainView);
|
||||||
|
}
|
||||||
else if(m_GamePage == PAGE_NETWORK)
|
else if(m_GamePage == PAGE_NETWORK)
|
||||||
|
{
|
||||||
RenderInGameNetwork(MainView);
|
RenderInGameNetwork(MainView);
|
||||||
|
}
|
||||||
else if(m_GamePage == PAGE_GHOST)
|
else if(m_GamePage == PAGE_GHOST)
|
||||||
|
{
|
||||||
RenderGhost(MainView);
|
RenderGhost(MainView);
|
||||||
|
}
|
||||||
else if(m_GamePage == PAGE_CALLVOTE)
|
else if(m_GamePage == PAGE_CALLVOTE)
|
||||||
|
{
|
||||||
RenderServerControl(MainView);
|
RenderServerControl(MainView);
|
||||||
|
}
|
||||||
else if(m_GamePage == PAGE_SETTINGS)
|
else if(m_GamePage == PAGE_SETTINGS)
|
||||||
|
{
|
||||||
RenderSettings(MainView);
|
RenderSettings(MainView);
|
||||||
RenderIngameHint();
|
}
|
||||||
}
|
}
|
||||||
else if(m_MenuPage == PAGE_NEWS)
|
else if(m_MenuPage == PAGE_NEWS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue