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.
-
1:07:49
Man in America
9 hours agoTumors Vanish in 30 Minutes? Here's Why They BANNED Sound Healing w/ Linda Olsen
66K21 -
5:32:45
SpartakusLIVE
9 hours agoLIVE from $2 MILLION Ocean-front MANSION
22.8K -
2:11:39
Tundra Tactical
5 hours ago $3.15 earnedLive At 9 pm What Do We Do About This DOJ? Gun Mad Libs, AND MORE On The Worlds Okayest Guns Show
21.4K2 -
1:31:34
RealLunaLopez
5 hours ago $4.62 earnedTTN: E36
21.3K6 -
2:11:19
BlackDiamondGunsandGear
7 hours agoThe DOJ Has abandoned us! / After Hours Armory
29.3K1 -
2:17:46
The Connect: With Johnny Mitchell
10 hours ago $6.18 earnedA Sitdown With The Real Walter White: How An Honest Citizen Became A Synthetic Drug Kingpin
32K -
2:11:19
DLDAfterDark
8 hours ago $3.90 earnedUSA Invasion - Is Trump's DOJ Anti Gun? - The 0$ NFA Tax - What's The Truth?
29.1K1 -
3:15:10
megimu32
8 hours agoOFF THE SUBJECT: Bodycams + Battle Bus Carnage
77.4K2 -
9:22:52
GritsGG
13 hours ago#1 Most Warzone Wins 4105+!
74.4K2 -
35:22
SouthernbelleReacts
1 day ago $2.53 earnedTHE ICONIC THANKSGIVING MOVIE I SHOULD’VE WATCHED SOONER 😳 | Reaction
18.3K2