From 855b39b396e56dc8489e546355bf64e8a9d4b4bb Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 28 Jun 2026 18:59:21 +0200 Subject: [PATCH] forgor cv_chat_showlimit :chaosleep: --- src/m_menu.c | 10 ++++++---- src/m_menudefs.c | 13 ++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 217937e1f..57e985d1c 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -1604,9 +1604,11 @@ static boolean ShouldDrawMenuBG(void) // camera options stuff, only do when in level if (gamestate == GS_LEVEL && - (currentMenu == &OP_CamOptionsDef || currentMenu == &OP_Player1CamOptionsDef - || currentMenu == &OP_Player2CamOptionsDef || currentMenu == &OP_Player3CamOptionsDef - || currentMenu == &OP_Player4CamOptionsDef)) + (currentMenu == &OP_CamOptionsDef || + currentMenu == &OP_Player1CamOptionsDef || + currentMenu == &OP_Player2CamOptionsDef || + currentMenu == &OP_Player3CamOptionsDef || + currentMenu == &OP_Player4CamOptionsDef)) return false; return true; @@ -1624,7 +1626,7 @@ void M_Drawer(void) // pain and suffering forceshowhud = (gamestate == GS_LEVEL && menuactive && (currentMenu == &OP_SaturnHudDef || currentMenu == &OP_HudOffsetDef || currentMenu == &OP_NametagDef || currentMenu == &OP_DriftGaugeDef)); // holy fuick - forceshowchat = (gamestate == GS_LEVEL && menuactive && currentMenu == &OP_ChatOptionsDef && (!OLDCHAT) && (itemOn == op_chat_boxwidth || itemOn == op_chat_boxheight || itemOn == op_chat_xoffs || itemOn == op_chat_yoffs)); // man i dont gaf anymore lmao + forceshowchat = (gamestate == GS_LEVEL && menuactive && currentMenu == &OP_ChatOptionsDef && (!OLDCHAT) && (itemOn == op_chat_boxwidth || itemOn == op_chat_boxheight || itemOn == op_chat_xoffs || itemOn == op_chat_yoffs || itemOn == op_chat_charlmt)); // man i dont gaf anymore lmao if (menuactive) { diff --git a/src/m_menudefs.c b/src/m_menudefs.c index ffb47ded4..7eecdb0f6 100644 --- a/src/m_menudefs.c +++ b/src/m_menudefs.c @@ -1419,13 +1419,14 @@ static menuitem_t OP_ChatOptionsMenu[] = {IT_STRING | IT_CVAR, NULL, "Message Fadeout Time", &cv_chattime, 90}, {IT_STRING | IT_CVAR, NULL, "Spam Protection", &cv_chatspamprotection, 100}, {IT_STRING | IT_CVAR, NULL, "Max Chat Messages", &cv_chatlogsize, 110}, + {IT_STRING | IT_CVAR, NULL, "Display Character Limit", &cv_chat_showlimit, 120}, - {IT_STRING | IT_CVAR, NULL, "Local ping display", &cv_showping, 130}, // shows ping above the framerate if we want to. - {IT_STRING | IT_CVAR, NULL, "Ping display style", &cv_pingstyle, 140}, - {IT_STRING | IT_CVAR, NULL, "Ping measurement", &cv_pingmeasurement, 150}, - {IT_STRING | IT_CVAR, NULL, "Ping icon", &cv_pingicon, 160}, + {IT_STRING | IT_CVAR, NULL, "Local ping display", &cv_showping, 140}, // shows ping above the framerate if we want to. + {IT_STRING | IT_CVAR, NULL, "Ping display style", &cv_pingstyle, 150}, + {IT_STRING | IT_CVAR, NULL, "Ping measurement", &cv_pingmeasurement, 160}, + {IT_STRING | IT_CVAR, NULL, "Ping icon", &cv_pingicon, 170}, - {IT_STRING | IT_CVAR, NULL, "Show IP address in playerlist", &cv_shownodeip, 170}, + {IT_STRING | IT_CVAR, NULL, "Show IP address in playerlist", &cv_shownodeip, 180}, }; static const char* OP_ChatOptionsTooltips[] = @@ -1440,6 +1441,7 @@ static const char* OP_ChatOptionsTooltips[] = "Fadeout time for new chat message.", "Spam protection for in-game chat.", "Maxiumum amount of chat messages to look back at.", + "Show how many characters you have left to type in the chat.", "Show player ping.", "Choose the style of the ping display.", "Measurement used for ping.", @@ -1459,6 +1461,7 @@ enum op_chat_fadetime, op_chat_spamprotect, op_chat_maxmsg, + op_chat_charlmt, op_chat_showping, op_chat_pingstyle, op_chat_pingmeasr,