Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes and improvement to Flavor Text #2952

Merged
merged 6 commits into from
Jun 2, 2024

Conversation

Hardly3D
Copy link
Contributor

@Hardly3D Hardly3D commented May 3, 2024

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

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

🆑 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:

@github-actions github-actions bot added the Code change Watch something violently break. label May 3, 2024
@Hlscientist
Copy link

Yippie!

@Skies-Of-Blue
Copy link
Contributor

Big if true

Hardly3D added 2 commits May 3, 2024 15:10
Chops flavor text down from 4096 to 1024
Brought back stripped multiline after I realized that I should just have checked what the proc actually did
And some less hardcoding to prevent issues
@thgvr thgvr enabled auto-merge May 13, 2024 00:22
@FalloutFalcon FalloutFalcon added the Test Merged They've done it for free. label May 31, 2024
@thgvr thgvr added this pull request to the merge queue May 31, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 31, 2024
@rye-rice rye-rice added this pull request to the merge queue Jun 2, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 2, 2024
@rye-rice rye-rice added this pull request to the merge queue Jun 2, 2024
Merged via the queue into shiptest-ss13:master with commit 5115912 Jun 2, 2024
14 checks passed
MrCat15352 pushed a commit to MrCat15352/MrCat that referenced this pull request Jun 22, 2024
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->

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.

<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

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.

: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:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->

---------

Co-authored-by: FalloutFalcon <[email protected]>
@Hardly3D Hardly3D deleted the flavortextoverhaul branch July 11, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code change Watch something violently break. Test Merged They've done it for free.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants