Open Raid Lib Updated
This commit is contained in:
@@ -64,7 +64,14 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
|
||||
end
|
||||
|
||||
local major = "LibOpenRaid-1.0"
|
||||
local CONST_LIB_VERSION = 79
|
||||
local CONST_LIB_VERSION = 80
|
||||
|
||||
if (not LIB_OPEN_RAID_MAX_VERSION) then
|
||||
LIB_OPEN_RAID_MAX_VERSION = CONST_LIB_VERSION
|
||||
else
|
||||
LIB_OPEN_RAID_MAX_VERSION = math.max(LIB_OPEN_RAID_MAX_VERSION, CONST_LIB_VERSION)
|
||||
end
|
||||
|
||||
LIB_OPEN_RAID_CAN_LOAD = false
|
||||
|
||||
local unpack = table.unpack or _G.unpack
|
||||
@@ -72,10 +79,13 @@ local unpack = table.unpack or _G.unpack
|
||||
--declae the library within the LibStub
|
||||
local libStub = _G.LibStub
|
||||
local openRaidLib = libStub:NewLibrary(major, CONST_LIB_VERSION)
|
||||
|
||||
if (not openRaidLib) then
|
||||
return
|
||||
end
|
||||
|
||||
openRaidLib.__version = CONST_LIB_VERSION
|
||||
|
||||
LIB_OPEN_RAID_CAN_LOAD = true
|
||||
|
||||
--default values
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,8 @@
|
||||
local addonName, Details222 = ...
|
||||
local version, build, date, tocversion = GetBuildInfo()
|
||||
|
||||
_detalhes.build_counter = 10287
|
||||
_detalhes.alpha_build_counter = 10287 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.build_counter = 10288
|
||||
_detalhes.alpha_build_counter = 10288 --if this is higher than the regular counter, use it instead
|
||||
_detalhes.dont_open_news = true
|
||||
_detalhes.game_version = version
|
||||
_detalhes.userversion = version .. " " .. _detalhes.build_counter
|
||||
@@ -35,18 +35,20 @@
|
||||
|
||||
Details.gameVersionPrefix = gameVersionPrefix
|
||||
|
||||
--WD 10288 RELEASE 10.0.2
|
||||
--WD 10288 ALPHA 21 10.0.2
|
||||
function Details.GetVersionString()
|
||||
local curseforgeVersion = _detalhes.curseforgeVersion or ""
|
||||
local alphaId = curseforgeVersion:match("%-(%d+)%-")
|
||||
|
||||
if (not alphaId) then
|
||||
--this is a release version
|
||||
alphaId = "R1"
|
||||
alphaId = "RELEASE"
|
||||
else
|
||||
alphaId = "A" .. alphaId
|
||||
alphaId = "ALPHA " .. alphaId
|
||||
end
|
||||
|
||||
return Details.gameVersionPrefix .. Details.build_counter .. "." .. Details.acounter .. "." .. alphaId .. "(" .. Details.game_version .. ")"
|
||||
|
||||
return Details.gameVersionPrefix .. " " .. Details.build_counter .. " " .. alphaId .. " " .. Details.game_version .. ""
|
||||
end
|
||||
|
||||
--namespace for the player breakdown window
|
||||
|
||||
@@ -2649,6 +2649,7 @@
|
||||
------------------------------------------------------------------------------------------------
|
||||
--buff uptime
|
||||
|
||||
--print(spellid, spellname, LIB_OPEN_RAID_BLOODLUST and LIB_OPEN_RAID_BLOODLUST[spellid], _detalhes.playername, alvo_name, _detalhes.playername == alvo_name)
|
||||
if (LIB_OPEN_RAID_BLOODLUST and LIB_OPEN_RAID_BLOODLUST[spellid]) then --~bloodlust
|
||||
if (_detalhes.playername == alvo_name) then
|
||||
_current_combat.bloodlust = _current_combat.bloodlust or {}
|
||||
|
||||
@@ -20,6 +20,7 @@ function Details:OpenCurrentRealDPSOptions(from_options_panel)
|
||||
f:SetPoint("center", UIParent, "center")
|
||||
f:SetScript("OnMouseDown", nil)
|
||||
f:SetScript("OnMouseUp", nil)
|
||||
DF:ApplyStandardBackdrop(f)
|
||||
|
||||
--scale bar
|
||||
local scaleBar = DF:CreateScaleBar(f, _detalhes.realtime_dps_meter.options_frame)
|
||||
@@ -102,6 +103,12 @@ function Details:OpenCurrentRealDPSOptions(from_options_panel)
|
||||
set = function(self, fixedparam, value)
|
||||
Details.realtime_dps_meter.enabled = not Details.realtime_dps_meter.enabled
|
||||
Details:LoadFramesForBroadcastTools()
|
||||
C_Timer.After(0, function()
|
||||
if (value) then
|
||||
Details:UpdateTheRealCurrentDPSFrame(testUsing)
|
||||
DetailsCurrentDpsMeter:StartForArenaMatch()
|
||||
end
|
||||
end)
|
||||
end,
|
||||
desc = "Enabled",
|
||||
name = "Enabled",
|
||||
@@ -543,7 +550,7 @@ function Details:CreateCurrentDpsFrame(parent, name)
|
||||
|
||||
if (not _detalhes.realtime_dps_meter.enabled) then
|
||||
f:Hide()
|
||||
print("D! debug currentdps.lua > !realtime_dps_meter.enabled")
|
||||
--print("D! debug currentdps.lua > !realtime_dps_meter.enabled")
|
||||
return
|
||||
end
|
||||
|
||||
@@ -750,6 +757,9 @@ function Details:CreateCurrentDpsFrame(parent, name)
|
||||
|
||||
--a percenntagem na barra esta sendo setada corretamente, porem a animação não esta funcrtionando ainda
|
||||
local percentValue = teamGreenDps / totalDamage
|
||||
percentValue = Saturate(percentValue)
|
||||
|
||||
--print(percentValue)
|
||||
DetailsArenaDpsBars.splitBar:SetValueWithAnimation(percentValue)
|
||||
DetailsArenaDpsBars:Show()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user