Line Breaks in Map Labels

EggMalaguld
28 Mar 2022, 02:13

Hello! New to Quest and I'm trying to make my map room labels look nicer/overlap less easily by including a line break on labels with two words, but this is proving difficult. It seems the label can only be a string because the map drawing script checks for the length and only displays the label if it's >0, as trying to set the label attribute to a script or anything else gives the error code:

Error running script: Error compiling expression 'LengthOf(room.grid_label) > 0': FunctionCallElement: Could find not function 'LengthOf(LazyLoadScript)'

I don't know how to (or if I even can) find and edit that part of the code so that it will always display labels - as my rooms are all labelled anyway - and just using <br> in the label string doesn't parse it as a line break. Any ideas? Thanks in advance :)


The Pixie
28 Mar 2022, 06:26

It is worth trying <br/>; not sure it will work but cannot think of anything else (outside of writing lots of JavaScript).


EggMalaguld
28 Mar 2022, 07:54

Didn't work unfortunately, but thanks for the suggestion.