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.
-
2:29:52
Badlands Media
11 hours agoDevolution Power Hour Ep. 372: Trump’s “I Told You So” Arc and the Collapse They Can’t Hide
67.8K14 -
9:34:31
RalliedLIVE
11 hours ago $2.91 earned10 WINS WITH THE SHOTTY BOYS
79.1K2 -
8:14
MattMorseTV
10 hours ago $1.47 earnedBrazil just FOUND OUT.
20K28 -
5:48:05
SpartakusLIVE
7 hours agoWZ Solos || GCX St. Jude Charity Marathon @ 8PM EST
24.7K -
4:27:47
elwolfpr
6 hours agoThe Reaper Returns: I’m Back, Baby!
15.3K1 -
3:02:07
TinyPandaface
4 hours agoYour FACE is a Gaming Channel! | BIRTH - Part 1
15K -
1:49:18
FreshandFit
7 hours agoLauren Southern Accuses Tate Of Abuse!
50.9K67 -
LIVE
Toolman Tim
3 hours agoDOOM: Dark Ages - First Runthrough | Gaming Thinktank
262 watching -
2:52:05
TimcastIRL
6 hours agoBREAKING: Trump DOJ FIRES Epstein Prosecutor, James Comey's Daughter Amid Controversy | Timcast IRL
237K106 -
3:23:07
Barry Cunningham
7 hours agoPRESIDENT TRUMP IS BUILDING A NEW MAGA! ARE YOU READY FOR THE NEXT ACT?
65.9K98