Paper QOL improvements (#32418)

* Don't add newlines (fixes #32357)

* Improve UI around max paper length (Fixes #32344)

* Display a "fill progress" indicator so users know how close they are to filling it
* Don't allow users to save a paper which went over the limit, to avoid them losing data they want to keep.

---------

Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
eoineoineoin
2024-09-24 00:36:05 +01:00
committed by GitHub
parent d0bb408678
commit 594aad0fa9
5 changed files with 63 additions and 7 deletions

View File

@@ -201,7 +201,7 @@ public sealed class PaperSystem : EntitySystem
public void SetContent(Entity<PaperComponent> entity, string content)
{
entity.Comp.Content = content + '\n';
entity.Comp.Content = content;
Dirty(entity);
UpdateUserInterface(entity);