Premium Only Content

No Game Engine Game Dev: Word Sleuth 029: Finish text clipping/wrapping, updating text edit cursor
Streamed on 2024-08-12 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Today we ported the text clipping from Text to MultiLineText. This was a fairly straightforward copy/paste operation. Then we simplified: I replaced Text with MultiColorText everywhere, removed Text, then renamed MultiColorText to Text. Now we only have one thing that renders text.
With clipping done, I did text wrapping. There are some caveats around very long words, however, that still need to be addressed. The trick is to maintain a "last good wrapping point" as you march through the string, then if you walk off the edge, move everything after the last-good-wrapping-point to your current character to the next line and shift it to the start of the line and do your usual new-line processing.
After all those updates, the TextEdit cursor was unusable so I started updating it. I found that there are a lot more caveats to finding a cursor position with all the new multi-line and word wrapping support. We'll wrap that up tomorrow.
-
LIVE
Wendy Bell Radio
5 hours agoNo One Is Above The Law
8,481 watching -
LIVE
LFA TV
12 hours agoLFA TV ALL DAY STREAM - THURSDAY 7/24/25
4,476 watching -
1:21:47
JULIE GREEN MINISTRIES
2 hours agoUNPRECEDENTED MOVES ARE BEING MADE TO BRING BACK THE GOLD STANDARD IN THIS NATION
43.4K105 -
DVR
Chicks On The Right
3 hours agoKohlberger gets BLASTED, Macrons sue Candace, Tulsi goes after Obama, and more on Epstein files
5.12K -
LIVE
Welcome to the Rebellion Podcast
12 hours agoI Feel Fine - WTTR Podcast Live 7/24
235 watching -
1:20:39
Game On!
16 hours ago $1.05 earnedCommanders Are Built To WIN NOW! 2025 Preview!
13K2 -
LIVE
The Bubba Army
23 hours agoGhislaine Maxwell to Testify! - Bubba the Love Sponge® Show | 7/24/25
1,970 watching -
16:50
Chris From The 740
2 hours agoI Didn’t Expect to Like This Fan So Much – Ogery F11 Review!
2.48K -
8:11
Millionaire Mentor
16 hours agoJohn James SHUTS DOWN AOC With One BRUTAL Sentence
13.2K19 -
31:34
Friday Beers
15 hours ago $2.61 earnedOur Horrifying Night Drunk Ghost Hunting the Manson Murders
42.4K7