ID:2161166
 
Resolved
The visible bounds of a transformed icon were not set properly when maptext was present, which caused maptext to disappear when attached to a transformed icon that was out of bounds.
BYOND Version:510
Operating System:N/A
Web Browser:N/A
Applies to:Dream Seeker
Status: Resolved (511.1361)

This issue has been resolved.
(Posted by Lummox JR on behalf of Exentriks Gaming.)

Descriptive Problem Summary:

Maptext can disappear when it is transformed, even if the transform is just a translation by 1 pixel.

Code Snippet (if applicable) to Reproduce Problem:
world
icon_size = 32 // 32x32 icon size by default
view="28x20"//28x20
turf/grass
icon='grass.dmi'
obj/interface/warningText
maptext_width=320
maptext_height=550
layer = 76

mob
Login()
..()
loc = locate(1,1,1)

verb
textWithoutTranform()
DialogueWarning("Without matrix translation")

textTransformed()
DialogueWarning2("Translated using animate()")
mob/proc
DialogueWarning2(var/dialogue = "Test", var/screenLocation="1,1")
var/obj/interface/warningText/T = new(screenLocation)
T.screen_loc = "4,1:-50"
T.maptext = "<b><font face=\"Verdana\" valign= top size=3 color=white > [dialogue]</font></b>"
src.client.screen += T

sleep(20)
animate(T, transform = matrix(0, 1, MATRIX_TRANSLATE), time = 2)

sleep(20)
animate(T, alpha = 0, time = 5)

spawn(5) src.client.screen -= T

DialogueWarning(var/dialogue = "Test", var/screenLocation="1,1")
var/obj/interface/warningText/T = new(screenLocation)
T.screen_loc = "4,1:-50"
T.maptext = "<b><font face=\"Verdana\" valign= top size=3 color=white > [dialogue]</font></b>"
src.client.screen += T

sleep(20)
animate(T, alpha = 0, time = 5)

spawn(5) src.client.screen -= T


Expected Results:

The maptext should transform properly.

Actual Results:

Maptext disappears.
Lummox JR resolved issue with message:
The visible bounds of a transformed icon were not set properly when maptext was present, which caused maptext to disappear when attached to a transformed icon that was out of bounds.