HUD fixes that I forgot about.
This commit is contained in:
parent
9e43bf8b8b
commit
098bc1613e
1 changed files with 23 additions and 3 deletions
|
|
@ -910,18 +910,21 @@ Class UTHud : BaseStatusBar
|
||||||
override bool ProcessNotify( EPrintLevel printlevel, String outline )
|
override bool ProcessNotify( EPrintLevel printlevel, String outline )
|
||||||
{
|
{
|
||||||
if ( gamestate != GS_LEVEL ) return false; // not during intermissions
|
if ( gamestate != GS_LEVEL ) return false; // not during intermissions
|
||||||
if ( printlevel == PRINT_LOW ) // pickups
|
int rprintlevel = printlevel&PRINT_TYPES;
|
||||||
|
if ( (rprintlevel < PRINT_LOW) || (rprintlevel > PRINT_TEAMCHAT) ) rprintlevel = PRINT_HIGH;
|
||||||
|
outline.DeleteLastCharacter();
|
||||||
|
if ( rprintlevel == PRINT_LOW ) // pickups
|
||||||
{
|
{
|
||||||
PickupMsg = outline;
|
PickupMsg = outline;
|
||||||
PickupMsgTic = gametic+50;
|
PickupMsgTic = gametic+50;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if ( printlevel == PRINT_MEDIUM ) // obituaries
|
else if ( rprintlevel == PRINT_MEDIUM ) // obituaries
|
||||||
{
|
{
|
||||||
AppendMessage(outline,Font.CR_RED);
|
AppendMessage(outline,Font.CR_RED);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if ( (printlevel == PRINT_CHAT) || (printlevel == PRINT_TEAMCHAT) ) // chat
|
else if ( (rprintlevel == PRINT_CHAT) || (rprintlevel == PRINT_TEAMCHAT) ) // chat
|
||||||
{
|
{
|
||||||
AppendMessage(outline,Font.CR_GREEN);
|
AppendMessage(outline,Font.CR_GREEN);
|
||||||
SetChatFace(outline);
|
SetChatFace(outline);
|
||||||
|
|
@ -1008,6 +1011,23 @@ Class UTHud : BaseStatusBar
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override bool DrawPaused( int player )
|
||||||
|
{
|
||||||
|
Screen.Dim(Color(0,24,64),.4,0,0,Screen.GetWidth(),Screen.GetHeight(),STYLE_Add);
|
||||||
|
String str = "PAUSED";
|
||||||
|
double xx = (Screen.GetWidth()-mUTFont40.mFont.StringWidth(str))/2;
|
||||||
|
double yy = (Screen.GetHeight()-mUTFont40.mFont.GetHeight())/2;
|
||||||
|
Screen.DrawText(mUTFont40.mFont,Font.CR_BLUE,xx,yy,str);
|
||||||
|
if ( multiplayer && (player != -1) )
|
||||||
|
{
|
||||||
|
str = "by "..players[player].GetUserName();
|
||||||
|
xx = (Screen.GetWidth()-mUTFont12.mFont.StringWidth(str))/2;
|
||||||
|
yy += mUTFont40.mFont.GetHeight();
|
||||||
|
Screen.DrawText(mUTFont12.mFont,Font.CR_WHITE,xx,yy,str);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
private void DrawTalkFace()
|
private void DrawTalkFace()
|
||||||
{
|
{
|
||||||
// this doesn't even get close to how it's supposed to look but whatever
|
// this doesn't even get close to how it's supposed to look but whatever
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue