Change logs, Framework Update
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
local dversion = 538
|
local dversion = 539
|
||||||
local major, minor = "DetailsFramework-1.0", dversion
|
local major, minor = "DetailsFramework-1.0", dversion
|
||||||
local DF, oldminor = LibStub:NewLibrary(major, minor)
|
local DF, oldminor = LibStub:NewLibrary(major, minor)
|
||||||
|
|
||||||
|
|||||||
+6
-1
@@ -6,7 +6,12 @@ if (not detailsFramework or not DetailsFrameworkCanLoad) then
|
|||||||
end
|
end
|
||||||
|
|
||||||
local unpack = unpack
|
local unpack = unpack
|
||||||
local CreateFrame = CreateFrame
|
local G_CreateFrame = _G.CreateFrame
|
||||||
|
local CreateFrame = function (frameType , name, parent, template, id)
|
||||||
|
local frame = G_CreateFrame(frameType , name, parent, template, id)
|
||||||
|
detailsFramework:Mixin(frame, detailsFramework.FrameFunctions)
|
||||||
|
return frame
|
||||||
|
end
|
||||||
local PixelUtil = PixelUtil
|
local PixelUtil = PixelUtil
|
||||||
local GetTime = GetTime
|
local GetTime = GetTime
|
||||||
local GetSpellInfo = GetSpellInfo or function(spellID) if not spellID then return nil end local si = C_Spell.GetSpellInfo(spellID) if si then return si.name, nil, si.iconID, si.castTime, si.minRange, si.maxRange, si.spellID, si.originalIconID end end
|
local GetSpellInfo = GetSpellInfo or function(spellID) if not spellID then return nil end local si = C_Spell.GetSpellInfo(spellID) if si then return si.name, nil, si.iconID, si.castTime, si.minRange, si.maxRange, si.spellID, si.originalIconID end end
|
||||||
|
|||||||
@@ -949,4 +949,18 @@ detailsFramework.StatusBarFunctions = {
|
|||||||
return self.border:GetVertexColor()
|
return self.border:GetVertexColor()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
--frame mixin
|
||||||
|
local createTexture = CreateFrame('Frame').CreateTexture -- need a local "original" CreateFrame
|
||||||
|
|
||||||
|
detailsFramework.FrameFunctions = {
|
||||||
|
CreateTexture = function(self, name, drawLayer, templateName, subLevel)
|
||||||
|
local texture = createTexture(self, name, drawLayer, templateName, subLevel)
|
||||||
|
-- pixel perfection
|
||||||
|
texture:SetTexelSnappingBias(0)
|
||||||
|
texture:SetSnapToPixelGrid(false)
|
||||||
|
return texture
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
@@ -4800,6 +4800,7 @@ function detailsFramework:CreateBorderFrame(parent, name)
|
|||||||
local parentName = name or ("DetailsFrameworkBorderFrame" .. tostring(math.random(1, 100000000)))
|
local parentName = name or ("DetailsFrameworkBorderFrame" .. tostring(math.random(1, 100000000)))
|
||||||
|
|
||||||
local f = CreateFrame("frame", parentName, parent, "BackdropTemplate")
|
local f = CreateFrame("frame", parentName, parent, "BackdropTemplate")
|
||||||
|
detailsFramework:Mixin(f, detailsFramework.FrameFunctions)
|
||||||
f:SetFrameLevel(f:GetFrameLevel()+1)
|
f:SetFrameLevel(f:GetFrameLevel()+1)
|
||||||
f:SetAllPoints()
|
f:SetAllPoints()
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,13 @@ local unpack = table.unpack or unpack --lua local
|
|||||||
local type = type --lua local
|
local type = type --lua local
|
||||||
local floor = math.floor --lua local
|
local floor = math.floor --lua local
|
||||||
local loadstring = loadstring --lua local
|
local loadstring = loadstring --lua local
|
||||||
local CreateFrame = CreateFrame
|
local G_CreateFrame = _G.CreateFrame
|
||||||
|
local CreateFrame = function (frameType , name, parent, template, id)
|
||||||
|
local frame = G_CreateFrame(frameType , name, parent, template, id)
|
||||||
|
detailsFramework:Mixin(frame, detailsFramework.FrameFunctions)
|
||||||
|
frame:SetClipsChildren(false)
|
||||||
|
return frame
|
||||||
|
end
|
||||||
|
|
||||||
local UnitHealth = UnitHealth
|
local UnitHealth = UnitHealth
|
||||||
local UnitHealthMax = UnitHealthMax
|
local UnitHealthMax = UnitHealthMax
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
--global name declaration
|
--global name declaration
|
||||||
--local _StartDebugTime = debugprofilestop() print(debugprofilestop() - _StartDebugTime)
|
--local _StartDebugTime = debugprofilestop() print(debugprofilestop() - _StartDebugTime)
|
||||||
--test if the packager will deploy to wago
|
|
||||||
--https://github.com/LuaLS/lua-language-server/wiki/Annotations#documenting-types
|
--https://github.com/LuaLS/lua-language-server/wiki/Annotations#documenting-types
|
||||||
|
|
||||||
_ = nil
|
_ = nil
|
||||||
@@ -18,8 +17,8 @@
|
|||||||
local addonName, Details222 = ...
|
local addonName, Details222 = ...
|
||||||
local version, build, date, tocversion = GetBuildInfo()
|
local version, build, date, tocversion = GetBuildInfo()
|
||||||
|
|
||||||
Details.build_counter = 12755
|
Details.build_counter = 12800
|
||||||
Details.alpha_build_counter = 12755 --if this is higher than the regular counter, use it instead
|
Details.alpha_build_counter = 12800 --if this is higher than the regular counter, use it instead
|
||||||
Details.dont_open_news = true
|
Details.dont_open_news = true
|
||||||
Details.game_version = version
|
Details.game_version = version
|
||||||
Details.userversion = version .. " " .. Details.build_counter
|
Details.userversion = version .. " " .. Details.build_counter
|
||||||
@@ -183,6 +182,15 @@ do
|
|||||||
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details")
|
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details")
|
||||||
|
|
||||||
local news = {
|
local news = {
|
||||||
|
{"v10.2.7.12800.156", "June 06th, 2024"},
|
||||||
|
"Added transliteration for pet names in Cyrillic.",
|
||||||
|
"Fixed an error with extra power bars (alternate power) on cataclysm classic.",
|
||||||
|
"Fixed a rare error shown as 'combat already deleted' when trying to reset data.",
|
||||||
|
"Fixed an issue which was preventing to open the death recap window.",
|
||||||
|
"Fixed cataclysm classic attempting to calculate Evoker buffs.",
|
||||||
|
"Fixed battleground problems with cataclysm classic. (Flamanis)",
|
||||||
|
"Fixed an issue with player nicknames not showing properly when the player isn't inside a guild. (Flamanis)",
|
||||||
|
|
||||||
{"v10.2.7.12755.156", "May 19th, 2024"},
|
{"v10.2.7.12755.156", "May 19th, 2024"},
|
||||||
"Pet names on tooltips are now transliterate from Cyrillic.",
|
"Pet names on tooltips are now transliterate from Cyrillic.",
|
||||||
"Default segments amount are now 25 and save 15, users with different amount set won't have their settings changed.",
|
"Default segments amount are now 25 and save 15, users with different amount set won't have their settings changed.",
|
||||||
|
|||||||
Reference in New Issue
Block a user