BYOND Version: 427.997
Operating System: WinXP
Web Browser: Firefox 3
Descriptive Problem Summary:
An atom in a grid only responds to clicks if it also has a non-null location. Neither atom/Click or client/Click do anything, I'm not sure about other mouse procs.
Numbered Steps to Reproduce Problem:
1. Create a skin with a grid
2. Create an object but give it a null location. Have it report when it is clicked.
3. Put the object in the grid
4. The object will do nothing when clicked but will display in the grid.
5. Now assign the object a location
6. Click it again. It will report it's location.
Code Snippet (if applicable) to Reproduce Problem:
client/New()
..()
src << output(new/click_receiver("text"),"default.a_grid:1,1")
click_receiver
parent_type = /obj
invisibility = 101
New(nname)
// loc = locate(1,1,1) //Uncomment this line
name = nname
..()
Click()
world << "CLICKED"
client
Click(obj,loc,control,params)
world << "[obj] [loc] [control] [params]"
Expected Results:
The object responds to clicks always.
Actual Results:
The object only responds to clicks when the commented line is uncommented.
Does the problem occur:
Every time? Or how often? Every time as long as the object has no location
When does the problem NOT occur?
When the object has a location.
Workarounds:
Make the object invisible and give it a location. Or, give it an inaccessable location.
Lummox JR