- Added several options and tools for streamers and youtubers.
- Bar animation now uses delta time and speed shouldn't variate with framerate. - Test bars got improvement! - Fixed balance druid sometimes being detected as resto druid. - API: added new events: COMBAT_ARENA_START, COMBAT_ARENA_END, COMBAT_MYTHICDUNGEON_START, COMBAT_MYTHICDUNGEON_END. - API: added Details:AddColorString (player_name, class), add the player class color in the name string. - API: added Details:AddRoleIcon (player_name, role, size), add the role icon in the name string. - API: framework updated to v57.
This commit is contained in:
@@ -415,6 +415,9 @@
|
||||
|
||||
_detalhes:CheckSwitchToCurrent()
|
||||
_detalhes:CheckForTextTimeCounter (true)
|
||||
|
||||
--> stop bar testing if any
|
||||
_detalhes:StopTestBarUpdate()
|
||||
end
|
||||
|
||||
function _detalhes:DelayedSyncAlert()
|
||||
@@ -900,6 +903,7 @@
|
||||
_detalhes.tabela_vigente.arena = true
|
||||
_detalhes.tabela_vigente.is_arena = {name = _detalhes.zone_name, zone = _detalhes.zone_name, mapid = _detalhes.zone_id}
|
||||
|
||||
_detalhes:SendEvent ("COMBAT_ARENA_START")
|
||||
end
|
||||
|
||||
function _detalhes:StartArenaSegment (...)
|
||||
@@ -946,6 +950,7 @@
|
||||
_detalhes:TimeDataUnregister ("Your Team Healing")
|
||||
_detalhes:TimeDataUnregister ("Enemy Team Healing")
|
||||
|
||||
_detalhes:SendEvent ("COMBAT_ARENA_END")
|
||||
end
|
||||
|
||||
local validSpells = {
|
||||
|
||||
+19
-2
@@ -461,17 +461,34 @@ function _detalhes:ResetSpecCache (forced)
|
||||
|
||||
end
|
||||
|
||||
function _detalhes:RefreshUpdater (suggested_interval)
|
||||
local updateInterval = suggested_interval or _detalhes.update_speed
|
||||
|
||||
if (_detalhes.streamer_config.faster_updates) then
|
||||
--> force 60 updates per second
|
||||
updateInterval = 0.016
|
||||
end
|
||||
|
||||
if (_detalhes.atualizador) then
|
||||
_detalhes:CancelTimer (_detalhes.atualizador)
|
||||
end
|
||||
_detalhes.atualizador = _detalhes:ScheduleRepeatingTimer ("AtualizaGumpPrincipal", updateInterval, -1)
|
||||
end
|
||||
|
||||
function _detalhes:SetWindowUpdateSpeed (interval, nosave)
|
||||
if (not interval) then
|
||||
interval = _detalhes.update_speed
|
||||
end
|
||||
|
||||
if (type (interval) ~= "number") then
|
||||
interval = _detalhes.update_speed or 0.3
|
||||
end
|
||||
|
||||
if (not nosave) then
|
||||
_detalhes.update_speed = interval
|
||||
end
|
||||
|
||||
_detalhes:CancelTimer (_detalhes.atualizador)
|
||||
_detalhes.atualizador = _detalhes:ScheduleRepeatingTimer ("AtualizaGumpPrincipal", interval, -1)
|
||||
_detalhes:RefreshUpdater (interval)
|
||||
end
|
||||
|
||||
function _detalhes:SetUseAnimations (enabled, nosave)
|
||||
|
||||
@@ -4060,6 +4060,13 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
_detalhes.time_type = 1
|
||||
end
|
||||
|
||||
if (not _detalhes.is_in_arena) then
|
||||
--> reset spec cache if broadcaster requested
|
||||
if (_detalhes.streamer_config.reset_spec_cache) then
|
||||
wipe (_detalhes.cached_specs)
|
||||
end
|
||||
end
|
||||
|
||||
_detalhes.is_in_arena = true
|
||||
_detalhes:EnteredInArena()
|
||||
|
||||
|
||||
+1640
-22
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user