ID:1149840
 
Code:
        Status
icon = 'Statusbar.dmi'
screen_loc = "1,19"
New(mob/m2u)
..()
var/image/i = image(null, src)
m2u << i

image
Textarea
maptext_width = 128
maptext_height = 16

mob
var
image/Textarea/Textarea = new

mob/proc
apply_hud()
var/obj/HUD/Status/Status = new(src)
client.screen += Status

client
MouseEntered(atom/o)
..()
var/image/Textarea/t = mob.Textarea
t.maptext = "[o.name]"


Problem description:

Hey guys, I'm having some issues here.

I'm using this to add a little image onto a statusbar HUD, and when the mouse enters an atom, I want the name to show up in that HUD. I got it to work with just adding the maptext to the statusbar, but, you can't pixel offset it to position it correctly that way.

This fails to add the text on. Any suggestions?

Actually, I figured this out on my own. I simply added it as an overlay instead, and updated the offsets/width etc each time. This is solved.