From ebc45af727055265b06bb7f9b9c5555a9db2a99b Mon Sep 17 00:00:00 2001 From: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Date: Fri, 31 May 2024 03:38:18 -0300 Subject: [PATCH] Minor fixes and improvement to Flavor Text (#2952) ## About The Pull Request Improves and fixes issues where flavor text would sanitize certain characters and refuse new lines while also giving new looks to the flavor text page. Bits of codes for the popup was taken from MapleStation but I can't find the specific PR for it. Flavor text's length was also chopped from a whooping 4096 to 1024 for the sake of keeping it lag free, it should still allow you to make a pretty robust flavor text and it shouldn't really impact anyone as the average flavor text length I've seen on a round was around 362 characters, with the highest being 645 characters. ![dreamseeker_RBS1nF48VM](https://github.com/shiptest-ss13/Shiptest/assets/66234359/8b541cf1-c51f-4893-b388-fe01b6f413fc) Additionally changes the text a bit on the flavor text's edit popup so it leads to less confusion. I'm intending to do a full refactor for flavor text itself and hopefully make use of TGUI but this might take quite a bit and I can't really make any guarantees, so hopefully this helps for now. ## Why It's Good For The Game Flavor text has been buggy and limiting for quite a while, while this PR doesn't solve many code shenanigans it should at least help people describe how their characters a lot better and with less wall of texts. As for the text changes; I believe this might make more sense and hopefully lead to less confusion that I'd see some have when it comes to flavor text. ## Changelog :cl: Hardly add: Added some style to the flavor text popup fix: Fixed flavor text not accepting certain characters or new lines tweak: Changed up Flavor Text editing text a bit tweak: Flavor text's max length has been chopped from 4096 to 1024 /:cl: --------- Co-authored-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> --- check_regex.yaml | 2 +- code/__DEFINES/say.dm | 2 ++ code/modules/client/preferences.dm | 4 ++-- code/modules/mob/mob.dm | 6 ++++-- code/modules/mob/say_vr.dm | 6 +++--- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/check_regex.yaml b/check_regex.yaml index 538d570daea4f..e01c41995e8e3 100644 --- a/check_regex.yaml +++ b/check_regex.yaml @@ -38,7 +38,7 @@ standards: - exactly: [ - 269, + 268, "non-bitwise << uses", '(?