Commit Graph

11 Commits

Author SHA1 Message Date
CraftBukkit/Spigot
2a57bac117 Bulk pending cleanup.
By: Wesley Wolfe <weswolf@aol.com>
2012-09-09 23:19:28 -05:00
CraftBukkit/Spigot
66cb03e41a Replace TextWrapper with simple newline splitting. Fixes BUKKIT-1662
TextWrapper used to try to ensure a message would wrap correctly on the
client by counting the width of the characters in pixels and wrapping
before hitting that limit. This was needed because the client would lose
color information when wrapping and could not handle long lines of text.

Now that both of these problems are solved in the client we can replace
TextWrapper with simple code to split the message into multiple packets on
newlines and ensure chat colors carry across to the new packet.

By: Travis Watkins <amaranth@ubuntu.com>
2012-05-16 18:09:33 -05:00
CraftBukkit/Spigot
6b217d17c4 Reverted to original TextWrapper. Might re-investigate after the RB. Fixes BUKKIT-1275
By: EvilSeph <evilseph@gmail.com>
2012-03-22 19:22:35 -04:00
CraftBukkit/Spigot
9aba8f4210 Re-added TextWrapper, and fixed chat length issues (at cost of it looking not so nice sometimes!) This fixes BUKKIT-1275
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-22 23:02:29 +00:00
CraftBukkit/Spigot
51b68f06be Nuked TextWrapper. We don't need you anymore, old friend :(
By: Nathan Adams <dinnerbone@dinnerbone.com>
2012-03-22 20:49:05 +00:00
CraftBukkit/Spigot
0939b7a7f9 Updated to use mc-dev rename revision 1
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-29 23:17:43 +00:00
CraftBukkit/Spigot
e3dabafd4b Allow colorchar to be uppercase
By: Erik Broes <erikbroes@grum.nl>
2011-07-17 15:34:11 +02:00
CraftBukkit/Spigot
85e8cedcff Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around.

By: Erik Broes <erikbroes@grum.nl>
2011-06-27 00:25:01 +02:00
CraftBukkit/Spigot
e5a4f1c9cc Fix TextWrapping issues; Now limits the packets send to the client to either: 119 chars or 320 width. This will strip disallowed characters, propagate colors properly to the next line and not 'eat' multiple color-codes.
By: Erik Broes <erikbroes@grum.nl>
2011-04-25 18:14:06 +02:00
CraftBukkit/Spigot
abe3dff1e1 TextWrapper now wraps text at the proper width and also prevent splitting unless it is needed
By: Erik Broes <erikbroes@grum.nl>
2011-03-12 16:58:05 +01:00
CraftBukkit/Spigot
a6afd3e020 Fixed issue with color markers in messages sent to the client.
This fix eliminates crashes related to color markers being at end-of-line, and also makes colors persist across line breaks.

- The broadcast message is split up in multiple packets, one per line
- Color markers are reorganized, so that color 'sticks across lines'
- The wrapping method calculates the *rendered* line length. Thus, if the user has a weird font, it might look weird.

By: David Flemström <david.flemstrom@gmail.com>
2011-02-20 13:38:27 +01:00