Skip to content

Commit

Permalink
[Bags] Adjust frame strata / frame level
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Nov 25, 2023
1 parent fcd33e0 commit 44988f7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion ShestakUI/Config/DataText.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ 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 "MEDIUM",
level = 10
},
-- Top block
Stats = {
Expand Down
3 changes: 2 additions & 1 deletion ShestakUI/Config/DataText_TBC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ 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 "MEDIUM",
level = 10
},
-- Top block
Stats = {
Expand Down
3 changes: 2 additions & 1 deletion ShestakUI/Config/DataText_Vanilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ 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 "MEDIUM",
level = 10
},
-- Top block
Stats = {
Expand Down
3 changes: 2 additions & 1 deletion ShestakUI/Config/DataText_Wrath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ 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 "MEDIUM",
level = 10
},
-- Top block
Stats = {
Expand Down
4 changes: 2 additions & 2 deletions ShestakUI/Libs/LiteStats/LiteStats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local tthead = {r = 0.40, g = 0.78, b = 1} -- Headers
local ttsubh = {r = 0.75, g = 0.90, b = 1} -- Subheaders

-- Strata/Level for text objects
local strata, level = "MEDIUM", 20
local strata, level = "LOW", 20

-- Globals
local profiles = LPSTAT_PROFILES
Expand Down Expand Up @@ -175,7 +175,7 @@ local function Inject(name, stat)
anchor_to = m.anchor_to, anchor_from = m.anchor_from,
x_off = m.x_off, y_off = m.y_off,
height = m.height, width = m.width,
strata = m.strata or strata, level = level
strata = m.strata or strata, level = m.level or level
} do if not stat[k] then stat[k] = v end end
if not stat.text then stat.text = {} end

Expand Down
7 changes: 5 additions & 2 deletions ShestakUI/Modules/Blizzard/Bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ function Stuffing:SlotNew(bag, slot)
ret.frame:StyleButton()
ret.frame:SetTemplate("Default")
ret.frame:SetNormalTexture(0)
ret.frame:SetFrameStrata("HIGH")
ret.frame:SetFrameStrata("MEDIUM")

ret.icon = _G[ret.frame:GetName().."IconTexture"]
ret.icon:CropIcon()
Expand Down Expand Up @@ -992,8 +992,11 @@ function Stuffing:CreateBagFrame(w)
end

if w == "Bank" then
-- Set frame level to be higher than other bags
f:SetFrameLevel(f:GetFrameLevel() + 3)

-- Reagent button
if T.Mainline then
-- Reagent button
f.b_reagent = CreateFrame("Button", "StuffingReagentButton"..w, f)
f.b_reagent:SetSize(105, 20)
f.b_reagent:SetPoint("TOPLEFT", 10, -4)
Expand Down

0 comments on commit 44988f7

Please sign in to comment.