Community

SCI Programming => SCI Syntax Help => Topic started by: doomlazer on April 20, 2024, 12:46:23 PM

Title: QfGIV text wrap
Post by: doomlazer on April 20, 2024, 12:46:23 PM
Anyone know where the character limit for wrapping strings to a newline in QfG4 lives? For Print statements you can set a custom "width:", but that doesn't work with messenger lines so a translator was asking how to change the default text width.
Title: Re: QfGIV text wrap
Post by: lskovlun on April 20, 2024, 04:10:11 PM
The talkWidth property on the Talker in question would seem to be it. I can't test just now.
Title: Re: QfGIV text wrap
Post by: doomlazer on April 21, 2024, 11:49:07 AM
Edit: Changing talkWidth works for talkers. Now I just need to find it for the non-talker default narrator lines. e.g., the first lines of the game in room 770 as the hero is waking up.
Title: Re: QfGIV text wrap
Post by: lskovlun on April 21, 2024, 01:00:59 PM
The narrator is an object too, and has a talkWidth property.
Title: Re: QfGIV text wrap
Post by: doomlazer on April 23, 2024, 12:20:32 AM
The narrator talkWidth is set to 0 and changing it does seem to work, but it turns out the translator wants to change narrator text dynamically per-line, which is difficult because most lines are called as sequences. I can't find a way to change per-line width in a way the translator could use easily. Oh, well.
Title: Re: QfGIV text wrap
Post by: Kawa on April 23, 2024, 05:29:56 AM
Yeah, you're not gonna do anything
like that. If you want to limit the
thing's width, you're probably gonna
be stuck with hard-wrapping it all.
Title: Re: QfGIV text wrap
Post by: doomlazer on April 23, 2024, 09:52:04 AM
The French seem awfully concerned about text wrap formatting in general. That's the second translator I know who has made a point of it.