Skip to content

Commit

Permalink
[Bags] Adjust frame strata / frame level pt. 2
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Nov 26, 2023
1 parent 5a11af4 commit b8b6bdc
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ShestakUI/Config/DataText.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ LPSTAT_CONFIG = {
tip_anchor = cBN and "TOPRIGHT" or C.bag.enable and "TOPRIGHT" or "BOTTOMRIGHT",
tip_x = cBN and 0 or C.bag.enable and -50 or -21,
tip_y = cBN and 85 or C.bag.enable and 0 or 20,
strata = cBN and "DIALOG" or "MEDIUM",
strata = cBN and "DIALOG" or "HIGH",
level = 10
},
-- Top block
Expand Down
2 changes: 1 addition & 1 deletion ShestakUI/Config/DataText_TBC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ LPSTAT_CONFIG = {
tip_anchor = cBN and "TOPRIGHT" or C.bag.enable and "TOPRIGHT" or "BOTTOMRIGHT",
tip_x = cBN and 0 or C.bag.enable and -50 or -21,
tip_y = cBN and 85 or C.bag.enable and 0 or 20,
strata = cBN and "DIALOG" or "MEDIUM",
strata = cBN and "DIALOG" or "HIGH",
level = 10
},
-- Top block
Expand Down
2 changes: 1 addition & 1 deletion ShestakUI/Config/DataText_Vanilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ LPSTAT_CONFIG = {
tip_anchor = cBN and "TOPRIGHT" or C.bag.enable and "TOPRIGHT" or "BOTTOMRIGHT",
tip_x = cBN and 0 or C.bag.enable and -50 or -21,
tip_y = cBN and 85 or C.bag.enable and 0 or 20,
strata = cBN and "DIALOG" or "MEDIUM",
strata = cBN and "DIALOG" or "HIGH",
level = 10
},
-- Top block
Expand Down
2 changes: 1 addition & 1 deletion ShestakUI/Config/DataText_Wrath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ LPSTAT_CONFIG = {
tip_anchor = cBN and "TOPRIGHT" or C.bag.enable and "TOPRIGHT" or "BOTTOMRIGHT",
tip_x = cBN and 0 or C.bag.enable and -50 or -21,
tip_y = cBN and 85 or C.bag.enable and 0 or 20,
strata = cBN and "DIALOG" or "MEDIUM",
strata = cBN and "DIALOG" or "HIGH",
level = 10
},
-- Top block
Expand Down
4 changes: 2 additions & 2 deletions ShestakUI/Modules/Blizzard/Bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ function Stuffing:SlotNew(bag, slot)
ret.frame:StyleButton()
ret.frame:SetTemplate("Default")
ret.frame:SetNormalTexture(0)
ret.frame:SetFrameStrata("MEDIUM")
ret.frame:SetFrameStrata("HIGH")

ret.icon = _G[ret.frame:GetName().."IconTexture"]
ret.icon:CropIcon()
Expand Down Expand Up @@ -945,7 +945,7 @@ function Stuffing:CreateBagFrame(w)
local f = CreateFrame("Frame", n, UIParent)
f:EnableMouse(true)
f:SetMovable(true)
f:SetFrameStrata("MEDIUM")
f:SetFrameStrata("HIGH")
f:SetFrameLevel(10)
f:RegisterForDrag("LeftButton")
f:SetScript("OnDragStart", function(self)
Expand Down
12 changes: 12 additions & 0 deletions ShestakUI/Modules/UnitFrames/Functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,18 @@ T.PostCastStart = function(Castbar, unit)
end
end

local function GetFormattedTime(s)
local day, hour, minute = 86400, 3600, 60
if s >= day then
return format("%dd", floor(s / day + 0.5)), s % day
elseif s >= hour then
return format("%dh", floor(s / hour + 0.5)), s % hour
elseif s >= minute then
return format("%dm", floor(s / minute + 0.5)), s % minute
end
return floor(s + 0.5), s - floor(s)
end

T.CustomCastTimeText = function(self, duration)
self.Time:SetText(("%.1f / %.1f"):format(self.channeling and duration or self.max - duration, self.max))
end
Expand Down

0 comments on commit b8b6bdc

Please sign in to comment.