Skip to content

Commit

Permalink
Framework update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Mar 1, 2025
1 parent 811678b commit 905f3cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions libs/DF/button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,13 @@ end
self:SetScript("OnEnable", onEnableFunc)
end

---@class df_blizzbutton : button
---@field text fontstring
---@field MyObject df_button

---@class df_button : button, df_scripthookmixin, df_widgets
---@field widget button
---@field widget df_blizzbutton
---@field button df_blizzbutton
---@field tooltip string
---@field shown boolean
---@field width number
Expand Down Expand Up @@ -1009,9 +1014,7 @@ end
buttonObject.text_overlay = _G[name .. "_Text"]
buttonObject.disabled_overlay = _G[name .. "_TextureDisabled"]

-- "dungeons/textures/common/transparent.blp", an epmty texture as default.
-- emptystring seems to cause weird issues (GREEEEEEN!) under unknown circumstances
texture = texture ~= "" and texture or 982414
texture = texture or ""

--check for atlas
local bSetTexture = false
Expand All @@ -1032,6 +1035,9 @@ end
local r, g, b, a = detailsFramework:ParseColors(texture)
self.icon:SetColorTexture(r, g, b, a)
bSetTexture = true

elseif (texture == "") then
bSetTexture = true -- setting textures with an empty string causes green rectangles
end
end

Expand Down
2 changes: 1 addition & 1 deletion libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 590
local dversion = 591
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)

Expand Down

0 comments on commit 905f3cc

Please sign in to comment.