From a86dab33bff021c5ed65a9cc39ebae3e4165273c Mon Sep 17 00:00:00 2001 From: LeonardoTheMutant <70893504+LeonardoTheMutant@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:30:48 +0200 Subject: [PATCH] Fix bad coloring in the English text --- SRC/LUA/CCMD.LUA | 7 ++++--- SRC/LUA/TEXT.LUA | 2 +- TEMPLATES/customlang.lua | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/SRC/LUA/CCMD.LUA b/SRC/LUA/CCMD.LUA index 58945f8..6d29b80 100644 --- a/SRC/LUA/CCMD.LUA +++ b/SRC/LUA/CCMD.LUA @@ -54,11 +54,13 @@ COM_AddCommand("mmhelp", function(p, page) return end - CONS_Printf(p, "The text of the game manual is being rewritten and is currently unavaiable, sorry") --Prerelease/Debug + if (not MM.debug) + CONS_Printf(p, "The text of the game manual is being rewritten and is currently unavaiable, sorry") --Prerelease/Debug + return + end --MMHELP GUI --load HELP page - /* if (tonumber(page)) if (MM.text[p.mmlang]["MMHELP"][tonumber(page)]) p.mmhelp.page = tonumber(page) @@ -68,7 +70,6 @@ COM_AddCommand("mmhelp", function(p, page) --enable the UI p.mmhelp.active = true - */ end, COM_LOCAL) --MMLANG console command diff --git a/SRC/LUA/TEXT.LUA b/SRC/LUA/TEXT.LUA index 65e2f09..5dd1e33 100644 --- a/SRC/LUA/TEXT.LUA +++ b/SRC/LUA/TEXT.LUA @@ -76,7 +76,7 @@ MM.text={ --MMLANG command ["MMLANG"]={ - "Your current language in use is\x82 English\x80\nYou can change it with \x87MMLANG [language] command", + "Your current language in use is\x82 English\x80\nYou can change it with \x87MMLANG [language]\x80 command", "Personal language for Murder Mystery is set to\x82 English" }, --GAME.LUA diff --git a/TEMPLATES/customlang.lua b/TEMPLATES/customlang.lua index 8a05fda..a5f54ec 100644 --- a/TEMPLATES/customlang.lua +++ b/TEMPLATES/customlang.lua @@ -130,7 +130,7 @@ local language={ --Language must be a table variable, you can name the variable --MMLANG command ["MMLANG"]={ - "Your current language in use is\x82 English\x80\nYou can change it with \x87MMLANG [language] command", --when typed MMHELP with no argument + "Your current language in use is\x82 English\x80\nYou can change it with \x87MMLANG [language]\x80 command", --when typed MMHELP with no argument "Personal language for Murder Mystery is set to\x82 English" --when typed MMHELP with language argument (it sets the new language) }