Ce dépôt a été archivé le 2020-03-15 . Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
2012-01-01 04:01:18 +01:00
local GetTime = QuestHelper_GetTime
2010-11-08 14:28:59 +01:00
QuestHelper_File [ " tomtom.lua " ] = " 4.0.1.$svnversion$ "
2010-10-24 23:17:33 +02:00
QuestHelper_Loadtime [ " tomtom.lua " ] = GetTime ( )
local tomtom_cb
local tomtom_uid
local function tomtom_wp_update ( c , z , x , y , desc )
if tomtom_uid then
TomTom : RemoveWaypoint ( tomtom_uid )
tomtom_uid = nil
end
if not QuestHelper_Pref.hide and c and c >= 0 and z and x and y then -- so there
tomtom_uid = TomTom : AddZWaypoint ( c , z , x * 100 , y * 100 , desc , false , false , false )
end
end
function QuestHelper : EnableTomTom ( )
if TomTom then
if not tomtom_cb then
tomtom_cb = QuestHelper : AddWaypointCallback ( tomtom_wp_update )
end
end
end
function QuestHelper : DisableTomTom ( )
if tomtom_cb then
if tomtom_uid then
TomTom : RemoveWaypoint ( tomtom_uid )
end
QuestHelper : RemoveWaypointCallback ( tomtom_cb )
tomtom_cb = nil
end
end