Ok so when using maptext_width and maptext_height vars I noticed a where the maptext leaves its boundaries if a single word is big enough to do so. Also the underlining doesnt seem to work with maptext
Numbered Steps to Reproduce Problem:
1. Create a new project.
2. Create an object and set maptext_height to 64 and maptext_width to 96.
3. Set maptext to a really long word without any spaces
4. Add in the to my tags.
Code Snippet (if applicable) to Reproduce Problem:
obj
hud
icon='hud.dmi'
screen_loc = "1,1"
maptext_width = 96
maptext_height = 64
maptext="<b><u>TestTestTestTestTestTestTestTestTestTestTestTestTestTestTest</u></b>"
mob
proc
add_text(client/C)
var/obj/hud/O = new /obj/hud
O.screen_loc = "10,10"
C.screen += O
Expected Results:
For the word to stay in its boundaries and for the underlining to work
Actual Results:
The word leaves the boundaries and the underlining doesnt work like in this picture
Does the problem occur:
Every time? Or how often?Everytime
In other games?Dont know
In other user accounts?Yes
On other computers?Havent tested
Workarounds:
Not using long words in maptext or extending the boundaries. Not sure for the work around in the underlining
EDIT : Added in the underlining problem into this report
You have a closing /b tag that doesn't have an opening tag.
A simple word wrap/cut would be nice.
Oh, and I'm not sure about how often but I've noticed underlining maptext is strange. It doesn't appear. Would you mind tacking that on to this instead of me having to make another report?