mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
Setting to hide the tags in the chatbox
This commit is contained in:
parent
14742d22d3
commit
b8be122ee9
@ -41,6 +41,7 @@ local EC_HUD_TIMESTAMPS = get_cvar("easychat_hud_timestamps")
|
||||
local EC_TIMESTAMPS_COLOR = get_cvar("easychat_timestamps_color")
|
||||
|
||||
-- chatbox
|
||||
local EC_TAGS_IN_CHATBOX = get_cvar("easychat_tags_in_chatbox")
|
||||
local EC_USE_DERMASKIN = get_cvar("easychat_use_dermaskin")
|
||||
local EC_HISTORY = get_cvar("easychat_history")
|
||||
local EC_GLOBAL_ON_OPEN = get_cvar("easychat_global_on_open")
|
||||
@ -328,6 +329,7 @@ local function create_default_settings()
|
||||
settings:AddConvarSettingsSet(category_name, {
|
||||
[EC_GLOBAL_ON_OPEN] = "Open in the global tab",
|
||||
[EC_HISTORY] = "Enable history",
|
||||
[EC_TAGS_IN_CHATBOX] = "Shows tags in the chatbox",
|
||||
[EC_IMAGES] = "Display images",
|
||||
[EC_PEEK_COMPLETION] = "Peek at the possible chat completion",
|
||||
[EC_NON_QWERTY] = "Specify whether you have a QWERTY keyboard or not",
|
||||
|
@ -372,6 +372,7 @@ if CLIENT then
|
||||
local EC_TIMESTAMPS_COLOR = CreateConVar("easychat_timestamps_color", "255 255 255", FCVAR_ARCHIVE, "Color timestamps display in")
|
||||
|
||||
-- chatbox panel
|
||||
local EC_TAGS_IN_CHATBOX = CreateConVar("easychat_tags_in_chatbox", "1", FCVAR_ARCHIVE, "Display tags in the chatbox")
|
||||
local EC_GLOBAL_ON_OPEN = CreateConVar("easychat_global_on_open", "1", FCVAR_ARCHIVE, "Set the chat to always open global chat tab on open")
|
||||
local EC_FONT = CreateConVar("easychat_font", "Roboto", FCVAR_ARCHIVE, "Set the font to use for the chat")
|
||||
local EC_FONT_SIZE = CreateConVar("easychat_font_size", "17", FCVAR_ARCHIVE, "Set the font size for chatbox")
|
||||
@ -1134,6 +1135,11 @@ if CLIENT then
|
||||
end
|
||||
|
||||
local function append_text(richtext, text)
|
||||
if not EC_TAGS_IN_CHATBOX:GetBool() and ec_markup then
|
||||
-- expensive but its not a behavior we want to encourage, so too bad :v
|
||||
text = ec_markup.Parse(text):GetText()
|
||||
end
|
||||
|
||||
if richtext.HistoryName then
|
||||
richtext.Log = richtext.Log and richtext.Log .. text or text
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user