- Activity time now has only 3 seconds inactivity tolerance on battlegrounds and arenas.

- Effective time will automatically be used when inside a battleground and using sync from the score board.
- Added 'hide all' option on the minimap menu.
This commit is contained in:
Tercio
2015-05-30 17:28:10 -03:00
parent 1113bfe3d2
commit 4f6f24ea04
9 changed files with 136 additions and 45 deletions
+21 -6
View File
@@ -2888,6 +2888,8 @@
_detalhes.last_zone_type = zoneType
end
_detalhes.time_type = _detalhes.time_type_original
_detalhes:CheckChatOnZoneChange (zoneType)
if (_detalhes.debug) then
@@ -2900,6 +2902,7 @@
if (_detalhes.is_in_battleground and zoneType ~= "pvp") then
_detalhes.pvp_parser_frame:StopBgUpdater()
_detalhes.is_in_battleground = nil
_detalhes.time_type = _detalhes.time_type_original
end
if (zoneType == "pvp") then
@@ -2920,8 +2923,19 @@
_current_combat.pvp = true
_current_combat.is_pvp = {name = zoneName, mapid = zoneMapID}
_detalhes.pvp_parser_frame:StartBgUpdater()
if (_detalhes.use_battleground_server_parser) then
if (_detalhes.time_type == 1) then
_detalhes.time_type_original = 1
_detalhes.time_type = 2
end
_detalhes.pvp_parser_frame:StartBgUpdater()
else
if (_detalhes.force_activity_time_pvp) then
_detalhes.time_type_original = _detalhes.time_type
_detalhes.time_type = 1
end
end
elseif (zoneType == "arena") then
@@ -2929,6 +2943,11 @@
_detalhes:Msg ("(debug) zone type is arena.")
end
if (_detalhes.force_activity_time_pvp) then
_detalhes.time_type_original = _detalhes.time_type
_detalhes.time_type = 1
end
_detalhes.is_in_arena = true
_detalhes:EnteredInArena()
@@ -3717,10 +3736,6 @@
function _detalhes.pvp_parser_frame:StartBgUpdater()
if (not _detalhes.use_battleground_server_parser) then
return
end
_detalhes.pvp_parser_frame:RegisterEvent ("UPDATE_BATTLEFIELD_SCORE")
if (_detalhes.pvp_parser_frame.ticker) then
_detalhes:CancelTimer (_detalhes.pvp_parser_frame.ticker)