Changed the health on death logs to be live percent (health % at hit moment), was before health amount divided by default character life amount
This commit is contained in:
+1
-1
@@ -1332,7 +1332,7 @@ detailsFramework.TabButtonMixin = {
|
||||
---@return df_tabbutton
|
||||
function detailsFramework:CreateTabButton(parent, frameName)
|
||||
---@type df_tabbutton
|
||||
local tabButton = CreateFrame("button", frameName, parent)
|
||||
local tabButton = CreateFrame("button", frameName, parent, "BackdropTemplate")
|
||||
tabButton:SetSize(50, 20)
|
||||
tabButton.bIsSelected = false
|
||||
|
||||
|
||||
+8
-5
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 551
|
||||
local dversion = 553
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary(major, minor)
|
||||
|
||||
@@ -2505,6 +2505,9 @@ local templateOnLeave = function(frame)
|
||||
end
|
||||
end
|
||||
|
||||
DF.TemplateOnEnter = templateOnEnter
|
||||
DF.TemplateOnLeave = templateOnLeave
|
||||
|
||||
---set a details framework template into a regular frame
|
||||
---@param self table
|
||||
---@param frame uiobject
|
||||
@@ -2630,10 +2633,10 @@ DF.dropdown_templates["OPTIONS_DROPDOWN_TEMPLATE"] = {
|
||||
tile = true
|
||||
},
|
||||
|
||||
backdropcolor = {1, 1, 1, .7},
|
||||
backdropbordercolor = {0, 0, 0, 1},
|
||||
onentercolor = {1, 1, 1, .9},
|
||||
onenterbordercolor = {1, 1, 1, 1},
|
||||
backdropcolor = {0.1, 0.1, 0.1, .7},
|
||||
onentercolor = {0.3, 0.3, 0.3, .7},
|
||||
backdropbordercolor = {0, 0, 0, .7},
|
||||
onenterbordercolor = {0.3, 0.3, 0.3, 0.8},
|
||||
|
||||
dropicon = "Interface\\BUTTONS\\arrow-Down-Down",
|
||||
dropiconsize = {16, 16},
|
||||
|
||||
@@ -268,6 +268,28 @@ function detailsFramework.Schedules.AfterById(time, callback, id, ...)
|
||||
return newTimer
|
||||
end
|
||||
|
||||
--Schedules a callback function to be executed after a specified time delay.
|
||||
--It uniquely identifies each scheduled task by an ID, if another schedule with the same id is made, it will be ignore until the previous one is finished.
|
||||
function detailsFramework.Schedules.AfterByIdNoCancel(time, callback, id, ...)
|
||||
if (not detailsFramework.Schedules.ExecuteTimerTableNoCancel) then
|
||||
detailsFramework.Schedules.ExecuteTimerTableNoCancel = {}
|
||||
end
|
||||
|
||||
local alreadyHaveTimer = detailsFramework.Schedules.ExecuteTimerTableNoCancel[id]
|
||||
if (alreadyHaveTimer) then
|
||||
return
|
||||
end
|
||||
|
||||
local newTimer = detailsFramework.Schedules.NewTimer(time, callback, ...)
|
||||
detailsFramework.Schedules.ExecuteTimerTableNoCancel[id] = newTimer
|
||||
|
||||
C_Timer.After(time, function()
|
||||
detailsFramework.Schedules.ExecuteTimerTableNoCancel[id] = nil
|
||||
end)
|
||||
|
||||
return newTimer
|
||||
end
|
||||
|
||||
--schedule a function to be called after 'time'
|
||||
--prompt example: create a schedule that runs the function 'variable name' after 'time' amount of seconds
|
||||
function detailsFramework.Schedules.After(time, callback)
|
||||
|
||||
+40
-1
@@ -287,7 +287,12 @@ detailsFramework.TextEntryCounter = detailsFramework.TextEntryCounter or 1
|
||||
|
||||
if (textentry:IsEnabled()) then
|
||||
textentry.current_bordercolor = textentry.current_bordercolor or {textentry:GetBackdropBorderColor()}
|
||||
textentry:SetBackdropBorderColor(1, 1, 1, 1)
|
||||
local onEnterBorderColor = object.onenter_backdrop_border_color
|
||||
if (onEnterBorderColor) then
|
||||
textentry:SetBackdropBorderColor(detailsFramework:ParseColors(onEnterBorderColor))
|
||||
else
|
||||
textentry:SetBackdropBorderColor(1, 1, 1, 0.6)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -522,11 +527,13 @@ function TextEntryMetaFunctions:SetTemplate(template)
|
||||
if (template.backdrop) then
|
||||
self.editbox:SetBackdrop(template.backdrop)
|
||||
end
|
||||
|
||||
if (template.backdropcolor) then
|
||||
local r, g, b, a = detailsFramework:ParseColors(template.backdropcolor)
|
||||
self.editbox:SetBackdropColor(r, g, b, a)
|
||||
self.onleave_backdrop = {r, g, b, a}
|
||||
end
|
||||
|
||||
if (template.backdropbordercolor) then
|
||||
local r, g, b, a = detailsFramework:ParseColors(template.backdropbordercolor)
|
||||
self.editbox:SetBackdropBorderColor(r, g, b, a)
|
||||
@@ -536,8 +543,40 @@ function TextEntryMetaFunctions:SetTemplate(template)
|
||||
self.editbox.current_bordercolor[4] = a
|
||||
self.onleave_backdrop_border_color = {r, g, b, a}
|
||||
end
|
||||
|
||||
if (template.onentercolor) then
|
||||
local r, g, b, a = detailsFramework:ParseColors(template.onentercolor)
|
||||
self.onenter_backdrop = {r, g, b, a}
|
||||
self:HookScript("OnEnter", detailsFramework.TemplateOnEnter)
|
||||
self.__has_onentercolor_script = true
|
||||
end
|
||||
|
||||
if (template.onleavecolor) then
|
||||
local r, g, b, a = detailsFramework:ParseColors(template.onleavecolor)
|
||||
self.onleave_backdrop = {r, g, b, a}
|
||||
self:HookScript("OnLeave", detailsFramework.TemplateOnLeave)
|
||||
self.__has_onleavecolor_script = true
|
||||
end
|
||||
|
||||
if (template.onenterbordercolor) then
|
||||
local r, g, b, a = detailsFramework:ParseColors(template.onenterbordercolor)
|
||||
self.onenter_backdrop_border_color = {r, g, b, a}
|
||||
if (not self.__has_onentercolor_script) then
|
||||
self:HookScript("OnEnter", detailsFramework.TemplateOnEnter)
|
||||
end
|
||||
end
|
||||
|
||||
if (template.onleavebordercolor) then
|
||||
local r, g, b, a = detailsFramework:ParseColors(template.onleavebordercolor)
|
||||
self.onleave_backdrop_border_color = {r, g, b, a}
|
||||
if (not self.__has_onleavecolor_script) then
|
||||
self:HookScript("OnLeave", detailsFramework.TemplateOnLeave)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--TextEntryMetaFunctions.SetTemplate = DetailsFramework.SetTemplate
|
||||
|
||||
------------------------------------------------------------------------------------------------------------
|
||||
--object constructor
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ end
|
||||
openRaidLib.inGroup = false
|
||||
openRaidLib.UnitIDCache = {}
|
||||
|
||||
openRaidLib.Util = openRaidLib.Util or {}
|
||||
|
||||
local CONST_CVAR_TEMPCACHE = "LibOpenRaidTempCache"
|
||||
local CONST_CVAR_TEMPCACHE_DEBUG = "LibOpenRaidTempCacheDebug"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user