
I am writing a generalized imagemap. Think of a web
imagemap, where regions correspond to links or javascript
actions. Now think of transparent prims over a texture,
where clicking on them implies an event (give an LM,
a notecard, do a tp, change the background texture,
and so on...)
So in SL: Maps and other textures as the background,
and transparent overlays firing off events..
Each state would have a number of regions, such as
what I would put in a notecard:
CODE
StartTile
c 2,2,3,3 // coordinates
n nytTarg // name of this..
t Web // command type
a http://nyt.com // arguments for the command
EndTile
So one notecard would have all of the tiles/regions
for one state.. same as a client side imagemap in XHTML...
One notecard == one imagemap
I would name the notecards 1_map, 2_map, 3_map, and so on.
So to visualize:
CODE
a bunch of states
map 1
tile 1
coords
command and args
tile 2
....
map 2
tile 1
coords
command and args
tile 2
....
tile 3
When touched, the individual tile prims fire off linked messages
to a controller, which in turn decides what command to run ...
The Big Question: how to store all of this at runtime? I dont
want to keep referring to notecards for every touch event..
A tile could be a strided list of attributes and vals
the map it is in then contains all the tiles ...
and something contains all of the maps ...
ound~a:crickets.wav