atom
MouseEntered(location)
var/player/p = usr
if(p.is_dm() && p.class:create_data.currently_building)
var/obj/castle/current = p.class:create_data.currently_building
del p.class:create_data.currently_building_image
var rgbMod = rgb((!is_valid_for_building(current) ? 200 : 0), 0, 0, 150)
var/icon/fixed_icon = icon(current.icon+rgbMod, current.icon_state)
p.class:create_data.currently_building_image = image(fixed_icon, src)
p << p.class:create_data.currently_building_image
Problem description:
This image is what I'm currently working with. The code above shows how I make the image shown on MouseEntered. The only problem is, when I'm moving the mouse internally on the image, MouseEntered does not fire. I've tried making atoms have a mouse_opacity of 2 to take precedence, too, no dice.
How can I get it to fire even while moving the mouse around on the image? Something like setting mouse_opacity to 0 on the image is what I'm going for. I was hoping for a general MouseMove function, but it doesn't seem like there's one of those built in.
Why would you want to run a proc every time the mouse moves, though? That's pretty CPU intensive compared to other mouse procs, so you should be careful trying to do that.