Multiboards and textwrapping and bears, oh my!

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
So, I've got a shiny new multiboard.

I want to tell people about my multiboard. So, I wrote a 200 word paragraph describing how wonderful my new multiboard is, and oh ho ho, the clever part is, I'm going to display it on my multiboard-...

87C0I.jpg


... damn it!

Anyway, I want to wrap long strings on a multiboard, so they take up multiple columns. But I'm pretty sure WarCraft III has different fonts depending on computer / region, and there is also the problem of the characters not being a universal size... any ideas on how to tackle this?

On another note, strings are limited to 1024 characters, right? Any systems out there that allow for an ExtendedString data type or something?
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
I think this will help you with first problem

for the second one, I have no idea, cant you just use multiple strings?
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
I could, but I was hoping someone else already has done the work for me *cough* Nestharus *cough* BigInt *cough*
 

Azlier

Old World Ghost
Reaction score
461
It takes a lot of work to get something like wrapping to work properly. There was a script for wrapping useful for dialogs, I think. Might have a list of approximate widths for characters.

Might want to take a look at PitzerMike(?)'s TextSplat thingy, it also does wrapping or at least has character widths if I remember correctly.

Plus you'll need to wrap without cutting words in half, but that shouldn't be too hard.
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
For the char limit, you can use concatenation. (string A + string B, as already stated)

For the first problem about word wrapping, I made some stuff to do that:
http://www.hiveworkshop.com/forums/1886277-post379.html
http://www.hiveworkshop.com/forums/1889717-post380.html

I explained some of the use in the posts, I think it should be mostly self-explanatory. The second url is probably the one you are looking for, but it requires the first.

>and there is also the problem of the characters not being a universal size... any ideas on how to tackle this?

Go and check if it works on the smallest resolution. If it does, you should be good for most cases. (at least all the cases I've seen) Otherwise, have the user input the resolution and you can adjust it accordingly. To be honest, it takes a lot of fiddling and guesswork. Just mess around until it works properly.
 

Narks

Vastly intelligent whale-like being from the stars
Reaction score
90
Oh wow, that's exactly what I need, thanks!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top