View Single Post
  #332  
Unread 01-14-2005, 11:32 AM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

zonerect is the area that the map represents, you calculate it the same as for a single page map. availablerect is the loc values that when you enter that region, the map changes to the one you want. If you make an available rect of -20, -20, 20, 20, the map will only change to that page of the map if you're within the loc values of 20, x, -20 and -20, x, 20. Also, maps default to loading map page 1. For WC, you'll notice the WC0 zavailablerect is most of the map, while the WC1 availablerect is only a thin rectangle at the top of the map. This is because they overlap a lot, and availablepriority doesn't actually work quite like Mr. Bobble said. If you're within the availablerect of both maps (assuming there're only 2), and they're the same availablepriority, it'll go to the lower number map (map0 before map1).

To sum it all up:
- zonerect is the area of a single page of the map, not the area of both maps; calculate this for a part of a map just like you would for a 1 page map.
- availablerect is the loc coordinates, that when you're within them, the map will change to that map (that map being the one whose availablerect you're within).
- availablepriority doesn't do that much/doesn't work as intended; if you have overlapping availablerects, the map with the lwoer availablepriority will show, unless their priority is the same, then the map with the lower number will show (map0 before map1).

Quib