Astrolabe/API CalculateMinimapIconPositions

From Esamynn's Wiki

Jump to: navigation, search

Astrolabe ยป Astrolabe/API CalculateMinimapIconPositions

Performs a full update on all icons whose position is currently being managed by Astrolabe.

Astrolabe:CalculateMinimapIconPositions( reset )

Arguments

reset
boolean - forces the update to be started from the beginning if one is already in progress (users of Astrolabe should never need to use this)

Returns

result
Number - 0 if the update completed successfully, -1 if the update did not occur for some reason, 1 if the update was started, but did not complete

Details

This function requires more CPU time than the incremental update done by UpdateMinimapIconPositions() because it updates each icon, with a full position calculation based on the current player position and the icon's stored world map location.

Personal tools