API OverlapPrevention

From Vendetta Lua
Jump to navigationJump to search

OverlapPrevention

Definition: OverlapPrevention(table ip) -> bool overlap
Description:
Adjust icon positions in a viewport so that they don't overlap
Arguments:
ip table with viewport dimensions and icon positions
ip.icon_positions table with icon_postions
ip.width width of viewport
ip.height height of viewport
Returns:
overlap true if icons overlapped