ID:273155
 
What kind of screen object another screen object is on?
As screen objects cannot be "on" screen objects, the question makes no sense.
In response to Garthor
For lack of better wording. A "movable" screen object (like a cursor), is there anyway to check what it's on?
client
var
obj/hud/cursor/cursor
cursorx=4
cursory=9
North()
if(cursor)
if(cursory==9) return
cursory++
del(cursor)
cursor=new(src)
cursor.screen_loc="[cursorx],[cursory]"
else ..()
South()
if(cursor)
if(cursory==2) return
cursory--
del(cursor)
cursor=new(src)
cursor.screen_loc="[cursorx],[cursory]"

That's what I'm doing to move the cursor around.
In response to Vic Rattlehead
You could probably loop over client.screen and look for other screen objects with an identical screen_loc.
In response to Nadrew
I see. I was hoping there'd be another way (incase two options appear in different menus, but same screen_loc), but that works. Thanks.
In response to Vic Rattlehead
There certainly is another way, if you represent your menus as objects. Then it's simply a matter of fetching menu.elementAt(cursor.position).