Author Topic: QfGIV text wrap  (Read 279 times)

0 Members and 1 Guest are viewing this topic.

Offline doomlazer

QfGIV text wrap
« 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.



Offline lskovlun

Re: QfGIV text wrap
« Reply #1 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.

Offline doomlazer

Re: QfGIV text wrap
« Reply #2 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.
« Last Edit: April 21, 2024, 12:46:45 PM by doomlazer »

Offline lskovlun

Re: QfGIV text wrap
« Reply #3 on: April 21, 2024, 01:00:59 PM »
The narrator is an object too, and has a talkWidth property.

Offline doomlazer

Re: QfGIV text wrap
« Reply #4 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.

Offline Kawa

Re: QfGIV text wrap
« Reply #5 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.

Offline doomlazer

Re: QfGIV text wrap
« Reply #6 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.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.014 seconds with 18 queries.