Author | Message | ||||||
---|---|---|---|---|---|---|---|
DialogBox newline help
| I was wondering if there was an appropriate way to make new lines with the FAMILY_QUEST, ACTION_DIALOG packet or a better solution. Obviously, I have tried the newline character and it just doesn't work. I've been messing around for awhile online and the only solutions for the dialog I have seen have been to use WIN32 to measure the pixel width of the text/etc but I refuse to use this solution. What have you guys used to get around this? --- Andrewbob - I would be on the fucking copter of rofls Programmer, Web Developer, and Graphics Designer
|
Re: DialogBox newline help
| I have some code for this purpose that I threw together over a sleepless night a few years ago. I used it to format newlines in ping messages. I think Callum or someone else did something similar. What I did though was pad the message with spaces whenever I encountered a newline or an area where a word would wrap. It relies on EOSERV util functions for measuring width rather than WinAPI calls. I'll try and dig it up for you when I get home later. Edit: It was Ryouken, not Callum. Here is his solution. --- Want to learn to pixel? Pixelsource.org
|
Re: DialogBox newline help
| -Edit: NVM, I did not notice that you refuse this solution, sorry. -Default font size: 8
|
Re: DialogBox newline help
| Cirras posted: (11th Sep 2018, 05:57 am) Thanks this is something better that I was looking for but it still disappoints me that the dialog box doesnât support new line characters. @freezingsoul this is the win32/gdi+ solution that I mentioned --- Andrewbob - I would be on the fucking copter of rofls Programmer, Web Developer, and Graphics Designer |