Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Core/GUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,20 @@ local function CreateCooldownViewerItemSpellSettings(parentContainer, containerT
RefreshItemSpellSettings()
end)
parentContainer:AddChild(removeItemButton)


if viewerType == "Item" or viewerType == "Custom" or viewerType == "AdditionalCustom" then
local barAlphaSlider = AG:Create("Slider")
barAlphaSlider:SetLabel(LL("Bar Opacity"))
barAlphaSlider:SetValue(BCDM.db.profile.CooldownManager[viewerType].BarAlpha or 1)
barAlphaSlider:SetSliderValues(0, 1, 0.01)
barAlphaSlider:SetIsPercent(true)
barAlphaSlider:SetCallback("OnValueChanged", function(self, _, value)
BCDM.db.profile.CooldownManager[viewerType].BarAlpha = value
BCDM:UpdateCooldownViewer(viewerType)
end)
barAlphaSlider:SetRelativeWidth(0.33)
layoutContainer:AddChild(barAlphaSlider)
end
AddItemSpellClassSpecFilterEditor(parentContainer, "ItemSpell", "ItemSpell", itemId, data, RefreshItemSpellSettings)
end
end
Expand Down
2 changes: 1 addition & 1 deletion CustomViewers/AdditionalCustomCooldownViewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ local function LayoutAdditionalCustomCooldownViewer()
spellIcon:Show()
end
end

BCDM.AdditionalCustomCooldownViewerContainer:SetAlpha(CustomDB.BarAlpha or 1)
BCDM.AdditionalCustomCooldownViewerContainer:Show()
end

Expand Down
2 changes: 1 addition & 1 deletion CustomViewers/CustomCooldownViewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ local function LayoutCustomCooldownViewer()
spellIcon:Show()
end
end

BCDM.CustomCooldownViewerContainer:SetAlpha(CustomDB.BarAlpha or 1)
BCDM.CustomCooldownViewerContainer:Show()
end

Expand Down
2 changes: 1 addition & 1 deletion CustomViewers/CustomItemViewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ local function LayoutCustomItemBar()
spellIcon:Show()
end
end

BCDM.CustomItemBarContainer:SetAlpha(CustomDB.BarAlpha or 1)
BCDM.CustomItemBarContainer:Show()
end

Expand Down