From 61a3fbda5f0ec590081f7d676f1418601af8b25f Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Mon, 2 Mar 2020 21:21:30 -0500 Subject: [PATCH] VChat Improvements Hopefully, anyway. - Arbitrary font size setting - Line height setting - Multiple crush settings - Rewrote how tabs work hopefully for performance - Hidden messages are actually put elsewhere - Attempts to correct chat backlog restore on rejoin --- code/modules/vchat/css/ss13styles.css | 27 +--- code/modules/vchat/html/vchat.html | 97 +++++++------ code/modules/vchat/js/vchat.js | 189 +++++++++++++++++--------- code/modules/vchat/vchat_client.dm | 12 +- code/modules/vchat/vchat_db.dm | 2 - 5 files changed, 200 insertions(+), 127 deletions(-) diff --git a/code/modules/vchat/css/ss13styles.css b/code/modules/vchat/css/ss13styles.css index c0ded02b14..375ebb5d80 100644 --- a/code/modules/vchat/css/ss13styles.css +++ b/code/modules/vchat/css/ss13styles.css @@ -31,6 +31,11 @@ body.inverted { cursor: pointer; } +.inputbox { + width: 5em !important; + padding: 0.1em !important; +} + .icon-left-open-outline:hover, .icon-right-open-outline:hover, .icon-cancel-circled-outline:hover { color: red; } @@ -46,25 +51,6 @@ body.inverted { } } -/* The chat message display classes */ -#messagebox div { display: none; } /* Hide messages by default */ -#messagebox.vc_showall div { display: block; } /* Unless we have vc_showall */ - -#messagebox.vc_localchat .vc_localchat { display: block; } -#messagebox.vc_radio .vc_radio { display: block; } -#messagebox.vc_warnings .vc_warnings { display: block; } -#messagebox.vc_info .vc_info { display: block; } -#messagebox.vc_deadchat .vc_deadchat { display: block; } -#messagebox.vc_globalooc .vc_globalooc { display: block; } -#messagebox.vc_looc .vc_looc { display: block; } -#messagebox.vc_adminpm .vc_adminpm { display: block; } -#messagebox.vc_adminchat .vc_adminchat { display: block; } -#messagebox.vc_modchat .vc_modchat { display: block; } -#messagebox.vc_eventchat .vc_eventchat { display: block; } -#messagebox.vc_system .vc_system { display: block; } -#messagebox.vc_nif .vc_nif { display: block; } /* VOREStation Add */ - - /* SS13 Styles */ #messagebox {font-family: Verdana, sans-serif;} @@ -188,7 +174,7 @@ h1.alert, h2.alert {color: #000000;} img.icon {vertical-align: middle; max-height: 1em;} img.icon.bigicon {max-height: 32px;} -/* Zoom levels */ +/* Zoom levels - Replaced with arbitrary font sizes .zoom_normal { font-size: 0.9em; line-height: 1.35; @@ -201,6 +187,7 @@ img.icon.bigicon {max-height: 32px;} font-size: 0.8em; line-height: 1.2; } +*/ /* Debug Logs */ .debug_error {color:#FF0000; font-weight:bold} diff --git a/code/modules/vchat/html/vchat.html b/code/modules/vchat/html/vchat.html index 29cc115af8..6426defa57 100644 --- a/code/modules/vchat/html/vchat.html +++ b/code/modules/vchat/html/vchat.html @@ -21,11 +21,11 @@

VChat is still loading. If you see this for a very long time, try the OOC 'Reload VChat' verb, or reconnecting.

Sometimes if you're still caching resources, it will take longer than usual.

-