mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Make chat message colors brighter
This commit is contained in:
parent
25f4d0199d
commit
d6db83805d
3 changed files with 22 additions and 19 deletions
|
@ -152,6 +152,10 @@ static str scoreboard_menuname;
|
|||
static str ui_sCurrentLoadingMenu;
|
||||
static Container<Menu *> hudList;
|
||||
|
||||
const UColor UWhiteChatMessageColor(0.75, 0.75, 0.75);
|
||||
const UColor URedChatMessageColor(1.0, 0.25, 0.25);
|
||||
const UColor UGreenChatMessageColor(0.0, 1.0, 0.25, 1.0);
|
||||
|
||||
void UI_MultiplayerMenuWidgetsUpdate(void);
|
||||
void UI_MultiplayerMainMenuWidgetsUpdate(void);
|
||||
void UI_MainMenuWidgetsUpdate(void);
|
||||
|
@ -1303,11 +1307,11 @@ UI_PrintConsole
|
|||
*/
|
||||
void UI_PrintConsole(const char *msg)
|
||||
{
|
||||
UColor *pColor = NULL;
|
||||
const char *pszString;
|
||||
char szString[1024];
|
||||
char szBlah[1024];
|
||||
qboolean bPrintedDMBox = qfalse;
|
||||
const UColor *pColor = NULL;
|
||||
const char *pszString;
|
||||
char szString[1024];
|
||||
char szBlah[1024];
|
||||
qboolean bPrintedDMBox = qfalse;
|
||||
|
||||
pszString = msg;
|
||||
strncpy(szString, msg, 1024);
|
||||
|
@ -1325,7 +1329,7 @@ void UI_PrintConsole(const char *msg)
|
|||
break;
|
||||
case MESSAGE_CHAT_WHITE:
|
||||
bDMMessage = qtrue;
|
||||
pColor = &UGrey;
|
||||
pColor = &UWhiteChatMessageColor;
|
||||
break;
|
||||
case MESSAGE_WHITE:
|
||||
bBold = qtrue;
|
||||
|
@ -1333,11 +1337,11 @@ void UI_PrintConsole(const char *msg)
|
|||
break;
|
||||
case MESSAGE_CHAT_RED:
|
||||
bDeathMessage = MESSAGE_CHAT_RED;
|
||||
pColor = &ULightRed;
|
||||
pColor = &URedChatMessageColor;
|
||||
break;
|
||||
case MESSAGE_CHAT_GREEN:
|
||||
bDeathMessage = MESSAGE_CHAT_GREEN;
|
||||
pColor = &UGreen;
|
||||
pColor = &UGreenChatMessageColor;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,10 +47,13 @@ void CL_ShutdownUI(void);
|
|||
//
|
||||
// general ui stuff
|
||||
//
|
||||
extern inventory_t client_inv;
|
||||
extern bind_t client_bind;
|
||||
extern cvar_t *cl_greenfps;
|
||||
extern qboolean server_loading;
|
||||
extern inventory_t client_inv;
|
||||
extern bind_t client_bind;
|
||||
extern cvar_t *cl_greenfps;
|
||||
extern qboolean server_loading;
|
||||
extern const UColor UWhiteChatMessageColor;
|
||||
extern const UColor URedChatMessageColor;
|
||||
extern const UColor UGreenChatMessageColor;
|
||||
|
||||
const char *CvarGetForUI(const char *name, const char *defval);
|
||||
void UI_ClearState(void);
|
||||
|
|
|
@ -299,23 +299,19 @@ void UIDMBox::Print(const char *text)
|
|||
m_items[m_numitems].flags = 0;
|
||||
|
||||
if (*text == MESSAGE_CHAT_WHITE) {
|
||||
m_items[m_numitems].color = UGrey;
|
||||
m_items[m_numitems].color = UWhiteChatMessageColor;
|
||||
m_items[m_numitems].font = m_fontbold;
|
||||
m_items[m_numitems].flags |= DMBOX_ITEM_FLAG_BOLD;
|
||||
|
||||
text1 = text + 1;
|
||||
} else if (*text == MESSAGE_CHAT_RED) {
|
||||
m_items[m_numitems].color = ULightRed;
|
||||
m_items[m_numitems].color = URedChatMessageColor;
|
||||
m_items[m_numitems].font = m_fontbold;
|
||||
m_items[m_numitems].flags |= DMBOX_ITEM_FLAG_DEATH;
|
||||
|
||||
text1 = text + 1;
|
||||
} else if (*text == MESSAGE_CHAT_GREEN) {
|
||||
if (com_target_game->integer >= TG_MOHTA) {
|
||||
m_items[m_numitems].color = ULightGreen;
|
||||
} else {
|
||||
m_items[m_numitems].color = UGreen;
|
||||
}
|
||||
m_items[m_numitems].color = UGreenChatMessageColor;
|
||||
m_items[m_numitems].font = m_fontbold;
|
||||
m_items[m_numitems].flags |= DMBOX_ITEM_FLAG_DEATH;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue