minimap

Default HUD screen minimap object
Vars | |
choices_by_mob | assoc list of mob choices by clicking on coords. only exists fleetingly for the wait loop in [/proc/get_coords_from_click] |
---|---|
stop_polling | assoc list to determine if get_coords_from_click should stop waiting for an input for that specific mob |
tracked_z | z this minimap is displaying |
Procs | |
get_coords_from_click | lets the user get coordinates by clicking the actual map Returns a list(x_coord, y_coord) note: sleeps until the user makes a choice, stop_polling is set to TRUE for this specific user or they disconnect |
on_click | Handles fetching the targetted coordinates when the mob tries to click on this map does the following: turns map targetted pixel into a list(x, y) gets z level of this map x and y minimap centering is reverted, then the x2 scaling of the map is removed round up to correct if an odd pixel was clicked and make sure its valid |
Var Details
choices_by_mob

assoc list of mob choices by clicking on coords. only exists fleetingly for the wait loop in [/proc/get_coords_from_click]
stop_polling

assoc list to determine if get_coords_from_click should stop waiting for an input for that specific mob
tracked_z

z this minimap is displaying
Proc Details
get_coords_from_click
lets the user get coordinates by clicking the actual map Returns a list(x_coord, y_coord) note: sleeps until the user makes a choice, stop_polling is set to TRUE for this specific user or they disconnect
on_click
Handles fetching the targetted coordinates when the mob tries to click on this map does the following: turns map targetted pixel into a list(x, y) gets z level of this map x and y minimap centering is reverted, then the x2 scaling of the map is removed round up to correct if an odd pixel was clicked and make sure its valid