mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- use the new console font for the chat input.
This commit is contained in:
parent
414a38c19d
commit
e2d3c6feea
1 changed files with 6 additions and 5 deletions
|
@ -40,6 +40,7 @@
|
||||||
#include "sbar.h"
|
#include "sbar.h"
|
||||||
#include "v_video.h"
|
#include "v_video.h"
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
|
#include "gstrings.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -233,16 +234,16 @@ void CT_PasteChat(const char *clip)
|
||||||
|
|
||||||
void CT_Drawer (void)
|
void CT_Drawer (void)
|
||||||
{
|
{
|
||||||
FFont *displayfont = ConFont;
|
FFont *displayfont = NewConsoleFont;
|
||||||
if (chatmodeon)
|
if (chatmodeon)
|
||||||
{
|
{
|
||||||
static const char *prompt = "Say: ";
|
FStringf prompt("%s ", GStrings("TXT_SAY"));
|
||||||
int x, scalex, y, promptwidth;
|
int x, scalex, y, promptwidth;
|
||||||
|
|
||||||
y = (viewactive || gamestate != GS_LEVEL) ? -10 : -30;
|
y = (viewactive || gamestate != GS_LEVEL) ? -displayfont->GetHeight()-2 : -displayfont->GetHeight() - 22;
|
||||||
|
|
||||||
scalex = 1;
|
scalex = 1;
|
||||||
int scale = active_con_scaletext();
|
int scale = active_con_scale();
|
||||||
int screen_width = SCREENWIDTH / scale;
|
int screen_width = SCREENWIDTH / scale;
|
||||||
int screen_height= SCREENHEIGHT / scale;
|
int screen_height= SCREENHEIGHT / scale;
|
||||||
int st_y = StatusBar->GetTopOfStatusbar() / scale;
|
int st_y = StatusBar->GetTopOfStatusbar() / scale;
|
||||||
|
@ -264,7 +265,7 @@ void CT_Drawer (void)
|
||||||
}
|
}
|
||||||
printstr += displayfont->GetCursor();
|
printstr += displayfont->GetCursor();
|
||||||
|
|
||||||
screen->DrawText (displayfont, CR_GREEN, 0, y, prompt,
|
screen->DrawText (displayfont, CR_GREEN, 0, y, prompt.GetChars(),
|
||||||
DTA_VirtualWidth, screen_width, DTA_VirtualHeight, screen_height, DTA_KeepRatio, true, TAG_DONE);
|
DTA_VirtualWidth, screen_width, DTA_VirtualHeight, screen_height, DTA_KeepRatio, true, TAG_DONE);
|
||||||
screen->DrawText (displayfont, CR_GREY, promptwidth, y, printstr,
|
screen->DrawText (displayfont, CR_GREY, promptwidth, y, printstr,
|
||||||
DTA_VirtualWidth, screen_width, DTA_VirtualHeight, screen_height, DTA_KeepRatio, true, TAG_DONE);
|
DTA_VirtualWidth, screen_width, DTA_VirtualHeight, screen_height, DTA_KeepRatio, true, TAG_DONE);
|
||||||
|
|
Loading…
Reference in a new issue