Raise Emote width and center chat text
This commit is contained in:
parent
b865638cb8
commit
a672bb6eb0
2 changed files with 3 additions and 3 deletions
|
|
@ -1491,7 +1491,7 @@ static void HU_drawMiniChat(void)
|
||||||
if (cv_chatbacktint.value) // on request of wolfy
|
if (cv_chatbacktint.value) // on request of wolfy
|
||||||
V_DrawFillConsoleMap(x + dx + 2, y+dy, charwidth, charheight, 159|V_SNAPTOBOTTOM|V_SNAPTOLEFT);
|
V_DrawFillConsoleMap(x + dx + 2, y+dy, charwidth, charheight, 159|V_SNAPTOBOTTOM|V_SNAPTOLEFT);
|
||||||
|
|
||||||
V_DrawChatCharacter(x + dx + 2, y+dy, msg[j++] |V_SNAPTOBOTTOM|V_SNAPTOLEFT|transflag, true, colormap);
|
V_DrawChatCharacter(x + dx + 2, y+dy+1, msg[j++] |V_SNAPTOBOTTOM|V_SNAPTOLEFT|transflag, true, colormap);
|
||||||
}
|
}
|
||||||
|
|
||||||
dx += charwidth;
|
dx += charwidth;
|
||||||
|
|
@ -1594,7 +1594,7 @@ static void HU_drawChatLog(INT32 offset)
|
||||||
{
|
{
|
||||||
if ((y+dy+2 >= chat_topy) && (y+dy < (chat_bottomy)))
|
if ((y+dy+2 >= chat_topy) && (y+dy < (chat_bottomy)))
|
||||||
{
|
{
|
||||||
HU_DrawEmote(x+dx+2, y+dy, emote, V_SNAPTOBOTTOM|V_SNAPTOLEFT);
|
HU_DrawEmote(x+dx+2, y+dy+1, emote, V_SNAPTOBOTTOM|V_SNAPTOLEFT);
|
||||||
dx += EMOTEWIDTH - charwidth;
|
dx += EMOTEWIDTH - charwidth;
|
||||||
}
|
}
|
||||||
j += emotelen;
|
j += emotelen;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ extern consvar_t cv_emotes;
|
||||||
|
|
||||||
#define MAXEMOTENAME 32
|
#define MAXEMOTENAME 32
|
||||||
#define MAXEMOTEFRAMES 32
|
#define MAXEMOTEFRAMES 32
|
||||||
#define EMOTEWIDTH 6
|
#define EMOTEWIDTH 8
|
||||||
|
|
||||||
typedef struct emote_s {
|
typedef struct emote_s {
|
||||||
char name[MAXEMOTENAME+1];
|
char name[MAXEMOTENAME+1];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue