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
Right Side Broadcasting Network
1 day agoLIVE: Trump Participates in 11th Hour Faith Leaders Meeting in Concord, NC - 10/21/24
5,359 watching -
2:31:01
The Quartering
12 hours agoTim Pool Studio Sabotaged? Trump Surging In Polls, Kamala In Hiding After McDonalds Disaster & Diddy
106K95 -
1:04:30
Quite Frankly
17 hours ago[Book Club] The Masque of The Red Death, by Edgar Allan Poe
48.2K1 -
UPCOMING
The Anthony Rogers Show
13 hours agoEpisode 344 - Is Obama's Birth Certificate Even Real?
59.4K5 -
1:09:46
We Like Shooting
20 hours ago $9.72 earnedDouble Tap 380 (Gun Podcast)
48.1K13 -
1:01:00
The StoneZONE with Roger Stone
9 hours agoWhy Did Kamala Persecute this Black Mom and Her Daughter? w/ Cheree Peoples | The StoneZONE
73.9K19 -
6:16:44
CookieCraverGamer
13 hours agoCleaning Up The Companies Mistakes
59.6K2 -
1:31:22
Glenn Greenwald
10 hours agoSYSTEM UPDATE FLASHBACK: Exposing Free Speeech and Pro-Democracy Frauds
106K63 -
11:59
Jamesons Travels
1 day ago $11.01 earnedMarine Intentionally Injures Himself to Get Out Fights for Ukraine
67.7K20 -
1:29:54
Donald Trump Jr.
16 hours agoMcMaga: We’re Lovin’ it, Plus “Bulletproof” Author Jack Posobiec | TRIGGERED Ep.183
127K372