ID:1037211
 
(See the best response by Metamorphman.)
Code:


Problem description:

I am trying to make it so if you mouse-over the top of the screen, say about the top 4 pixels, for a few seconds...then it will popup a menu, now I am getting all the stuff to popup, a cursor change, and everything to work as expected...except one thing...

I don't want to have to have an icon set to do it, everything to do with it, even the hover location, should have no icon/indication that there is something there until it pops up...the function is taught to you in the game so it's fine for me not to show it.

Anyways any time I try & get rid of the icon & leave all the mouse over functions, mouse change that occurs to indicate your hovering and everything else, it stops working...

Now I am using client.screen to add it to the hud, so that it stays at the same spot on the screen & is for each individual user....I tried making an invisible icon, setting the icon to null, setting to a different icon state that's null, setting it to invisible, infared, etc...

No matter what I try though it seems I keep getting blocked by the area having to be physically visible even though I want it to be physically invisible, you just see the regular game map there & not a random icon for the hover location...

Is there any way someone can think of to get my desired effect, and include steps on how to do it, like code, what to do in icons, whatever...

---I have tried a lot already & am failing terribly at making this happen...

Perhaps client.screen is limited & I need to use overlays or images to get the desired effect, I really don't know but I really need there to be no icon...
Your best shot is to make icon with alpha value of 1. Normally it'll be invisible.
Best response
have you tried offsetting an icon-less object with mouse_opacity=2 until only 4 pixels of it are accessible at the top? e.g.
obj/top_obj
mouse_opacity = 2
screen_loc = "1,10:28 to 10,10:28"
MouseEntered()
usr<<"booyeah"

client/view="10x10"
mob/Login()
.=..()
client.screen+= new/obj/top_obj
OK looking at mouse_opacity, it's supposed to make events fire regardless of if the object is actually visible, transparent...(When it's set to 2 like you got there.

It seems to work, that was the missing link I needed.

Thanks for your help metamorphman.