Commit b2fd97a6 authored by Benik's avatar Benik

Merge remote-tracking branch 'origin/development'

parents a69fe03a 295d0f76
v1.04
*Better button behavior (shift+Click). Credit: Demonik. This may also fix #10
*Fix Mail Datatext. Credit: Runew0lf
*Better Zygor skinning
*Updated donor list. Thank you Joerg <3
*Removed Overlayed Portraits Alpha option. It's in ElvUI now
*Added the overlayAlpha setting in the install
*Default settings cleanup
*Added Backdrop toggle option for Detached Portraits (Player/Target)
*Added XToLevel skin/style
*Prevent an error from popping in WorldStateScoreFrame.backdrop
v1.03
*Styled the QuestTimerFrame
*Removed AddonSkins BugReportFrame styling
......
## Interface: 11302
## Author: Benik
## Version: 1.03
## Version: 1.04
## Title: |cff1784d1ElvUI|r |cff00c0faBenikUI Classic|r
## Notes: an ElvUI Classic decorative/enhancement edit
## RequiredDeps: ElvUI
......
......@@ -594,6 +594,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["player"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["player"]["portrait"]["camDistanceScale"] = 1
E.db["unitframe"]["units"]["player"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["player"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["player"]["castbar"]["icon"] = false
E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 300
E.db["unitframe"]["units"]["player"]["castbar"]["insideInfoPanel"] = true
......@@ -664,6 +665,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["target"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["target"]["portrait"]["camDistanceScale"] = 1
E.db["unitframe"]["units"]["target"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["target"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["target"]["power"]["enable"] = true
E.db["unitframe"]["units"]["target"]["power"]["detachFromFrame"] = false
E.db["unitframe"]["units"]["target"]["power"]["detachedWidth"] = 300
......@@ -694,6 +696,7 @@ local function SetupUnitframes(layout)
-- pet
E.db["unitframe"]["units"]["pet"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["pet"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["pet"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["pet"]["castbar"]["enable"] = false
E.db["unitframe"]["units"]["pet"]["infoPanel"]["enable"] = false
......@@ -725,6 +728,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["targettarget"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["targettarget"]["portrait"]["camDistanceScale"] = 1
E.db["unitframe"]["units"]["targettarget"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["targettarget"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["targettarget"]["power"]["enable"] = true
E.db["unitframe"]["units"]["targettarget"]["power"]["height"] = 5
E.db["unitframe"]["units"]["targettarget"]["power"]["width"] = 'fill'
......@@ -766,6 +770,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["party"]["petsGroup"]["xOffset"] = 0
E.db["unitframe"]["units"]["party"]["petsGroup"]["yOffset"] = -1
E.db["unitframe"]["units"]["party"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["party"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["party"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["party"]["portrait"]["camDistanceScale"] = 1
E.db["unitframe"]["units"]["party"]["portrait"]["rotation"] = 0
......@@ -815,6 +820,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["raid"]["colorOverride"] = "FORCE_ON"
E.db["unitframe"]["units"]["raid"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["raid"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["raid"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["raid"]["roleIcon"]["enable"] = true
E.db["unitframe"]["units"]["raid"]["roleIcon"]["damager"] = true
E.db["unitframe"]["units"]["raid"]["roleIcon"]["healer"] = true
......@@ -1074,6 +1080,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["player"]["portrait"]["camDistanceScale"] = 1
E.db["unitframe"]["units"]["player"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["player"]["portrait"]["overlay"] = false
E.db["unitframe"]["units"]["player"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["player"]["power"]["detachFromFrame"] = true
E.db["unitframe"]["units"]["player"]["power"]["detachedWidth"] = 240
E.db["unitframe"]["units"]["player"]["power"]["height"] = 6
......@@ -1147,6 +1154,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["target"]["portrait"]["camDistanceScale"] = 1
E.db["unitframe"]["units"]["target"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["target"]["portrait"]["overlay"] = false
E.db["unitframe"]["units"]["target"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["target"]["power"]["enable"] = true
E.db["unitframe"]["units"]["target"]["power"]["detachFromFrame"] = true
E.db["unitframe"]["units"]["target"]["power"]["detachedWidth"] = 240
......@@ -1169,6 +1177,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["pet"]["infoPanel"]["enable"] = false
E.db["unitframe"]["units"]["pet"]["infoPanel"]["transparent"] = true
E.db["unitframe"]["units"]["pet"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["pet"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["pet"]["power"]["height"] = 5
E.db["unitframe"]["units"]["pet"]["power"]["width"] = 'fill'
E.db["unitframe"]["units"]["pet"]["width"] = 130
......@@ -1225,6 +1234,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["party"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["party"]["portrait"]["height"] = 15
E.db["unitframe"]["units"]["party"]["portrait"]["overlay"] = false
E.db["unitframe"]["units"]["party"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["party"]["portrait"]["style"] = '3D'
E.db["unitframe"]["units"]["party"]["portrait"]["transparent"] = true
E.db["unitframe"]["units"]["party"]["portrait"]["width"] = 60
......@@ -1272,6 +1282,7 @@ local function SetupUnitframes(layout)
E.db["unitframe"]["units"]["raid"]["colorOverride"] = "FORCE_ON"
E.db["unitframe"]["units"]["raid"]["portrait"]["enable"] = true
E.db["unitframe"]["units"]["raid"]["portrait"]["overlay"] = true
E.db["unitframe"]["units"]["raid"]["portrait"]["overlayAlpha"] = 0.75
E.db["unitframe"]["units"]["raid"]["roleIcon"]["enable"] = true
E.db["unitframe"]["units"]["raid"]["roleIcon"]["damager"] = true
E.db["unitframe"]["units"]["raid"]["roleIcon"]["healer"] = true
......
......@@ -39,6 +39,7 @@ local DONATORS = {
'Christopher S-C.',
'George McC.',
'Christian S.',
'Joerg B.',
}
tsort(DONATORS, function(a, b) return a < b end)
local DONATOR_STRING = tconcat(DONATORS, ", ")
......
......@@ -83,10 +83,6 @@ P['benikui'] = {
['mail'] = {
['toggle'] = true,
},
['garrison'] = {
['currency'] = false,
['oil'] = false,
},
},
['actionbars'] = {
......@@ -122,6 +118,7 @@ P['benikui'] = {
['portraitStyle'] = false,
['portraitStyleHeight'] = 6,
['portraitFrameStrata'] = "MEDIUM",
['portraitBackdrop'] = true,
},
['target'] = {
['detachPortrait'] = false,
......@@ -133,6 +130,7 @@ P['benikui'] = {
['portraitStyle'] = false,
['portraitStyleHeight'] = 6,
['portraitFrameStrata'] = "MEDIUM",
['portraitBackdrop'] = true,
},
['targettarget'] = {
['detachPortrait'] = false,
......@@ -142,14 +140,6 @@ P['benikui'] = {
['portraitTransparent'] = true,
['portraitFrameStrata'] = "MEDIUM",
},
['focus'] = {
['detachPortrait'] = false,
['portraitWidth'] = 110,
['portraitHeight'] = 85,
['portraitShadow'] = false,
['portraitTransparent'] = true,
['portraitFrameStrata'] = "MEDIUM",
},
['pet'] = {
['detachPortrait'] = false,
['portraitWidth'] = 110,
......@@ -191,7 +181,6 @@ P['benikui'] = {
},
['misc'] = {
['svui'] = true,
['portraitTransparency'] = 0.70,
},
},
}
......@@ -237,7 +226,6 @@ P['benikuiSkins'] = {
['pawn'] = true,
['dbm'] = true,
['bigwigs'] = true,
['zygor'] = true,
['immersion'] = true,
['adibags'] = true,
},
......@@ -247,6 +235,8 @@ P['benikuiSkins'] = {
['decursive'] = true,
['storyline'] = true,
['inflight'] = true,
['xtoLevel'] = true,
['zygor'] = true,
},
}
......@@ -274,28 +264,6 @@ P['benikuiDatabars'] = {
['position'] = 'LEFT',
},
},
['azerite'] = {
['enable'] = true,
['buiStyle'] = true,
['buttonStyle'] = "TRANSPARENT",
['notifiers'] = {
['enable'] = true,
['combat'] = false,
['position'] = 'LEFT',
},
},
['honor'] = {
['enable'] = true,
['buiStyle'] = true,
['buttonStyle'] = "TRANSPARENT",
['notifiers'] = {
['enable'] = true,
['combat'] = false,
['position'] = 'RIGHT',
},
},
}
-- Dashboards
......
......@@ -293,6 +293,9 @@ function mod:ChangeLayout()
bbuttons[i].text:SetPoint('CENTER', 1, 0)
bbuttons[i].text:SetJustifyH('CENTER')
bbuttons[i].text:SetTextColor(BUI:unpackColor(E.db.general.valuecolor))
if (i == 1 or i == 3) then
bbuttons[i]:RegisterEvent('MODIFIER_STATE_CHANGED')
end
-- ElvUI Config
if i == 1 then
......@@ -301,6 +304,16 @@ function mod:ChangeLayout()
bbuttons[i].parent = RightChatPanel
bbuttons[i].text:SetText('C')
bbuttons[i]:SetScript('OnEvent', function(self, event)
if event then
if IsShiftKeyDown() then
self.text:SetText('>')
else
self.text:SetText('C')
end
end
end)
bbuttons[i]:SetScript('OnEnter', function(self)
GameTooltip:SetOwner(self, 'ANCHOR_TOPRIGHT', 0, 2 )
GameTooltip:ClearLines()
......@@ -315,7 +328,6 @@ function mod:ChangeLayout()
end
if IsShiftKeyDown() then
self.text:SetText('>')
self:SetScript('OnClick', ChatButton_OnClick)
else
self.text:SetText('C')
......@@ -347,7 +359,6 @@ function mod:ChangeLayout()
end)
bbuttons[i]:SetScript('OnLeave', function(self)
self.text:SetText('C')
self.sglow:Hide()
GameTooltip:Hide()
end)
......@@ -383,12 +394,21 @@ function mod:ChangeLayout()
bbuttons[i].parent = LeftChatPanel
bbuttons[i].text:SetText('A')
bbuttons[i]:SetScript('OnEvent', function(self, event)
if event then
if IsShiftKeyDown() then
self.text:SetText('<')
else
self.text:SetText('A')
end
end
end)
bbuttons[i]:SetScript('OnEnter', function(self)
if not E.db.benikui.datatexts.chat.styled then
self.sglow:Show()
end
if IsShiftKeyDown() then
self.text:SetText('<')
self:SetScript('OnClick', ChatButton_OnClick)
else
self:SetScript('OnClick', function(self)
......@@ -404,7 +424,6 @@ function mod:ChangeLayout()
end)
bbuttons[i]:SetScript('OnLeave', function(self)
self.text:SetText('A')
self.sglow:Hide()
GameTooltip:Hide()
end)
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = "Gesundheit Status
L['Ignore Transparency'] = "Ignoriere Transparenz"
L['Lower InfoPanel width when potraits are enabled.'] = "Verringert die InfoPanel Breite, wenn Portraits aktiviert sind."
L['Makes the portrait backdrop transparent'] = "Dadurch wird der Portrait Hintergrund transparent"
L['Overlayed Portraits Alpha'] = "Überlappende Portrait Alpha"
L['Player Size'] = "Spieler Größe"
L['Power statusbar texture.'] = "Kraft Statusleiste Textur."
L['Replaces the default role icons with SVUI ones.'] = "Ersetzt die Standard Rollen Symbole mit denen von SVUI."
......
......@@ -185,7 +185,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -184,7 +184,6 @@ L['Health statusbar texture. Applies only on Group Frames'] = true
L['Ignore Transparency'] = true
L['Lower InfoPanel width when potraits are enabled.'] = true
L['Makes the portrait backdrop transparent'] = true
L['Overlayed Portraits Alpha'] = true
L['Player Size'] = true
L['Power statusbar texture.'] = true
L['Replaces the default role icons with SVUI ones.'] = true
......
......@@ -38,7 +38,7 @@ local function OnEvent(self, event, ...)
end
end
if newMail then
if unreadMail then
self.text:SetFormattedText("|cff00ff00%s|r", L['New Mail'])
Read = false;
else
......
......@@ -157,9 +157,15 @@ local function SkinTable()
E:StaticPopup_Show('PRIVATE_RL') end,
disabled = function() return not IsAddOnLoaded('InFlight_Load') end,
},
zygor = {
xtoLevel = {
order = 5,
type = 'toggle',
name = L['XToLevel'],
disabled = function() return not IsAddOnLoaded('XToLevel') end,
},
zygor = {
order = 6,
type = 'toggle',
name = L['Zygor Guides'],
disabled = function() return not BUI.ZG end,
},
......
......@@ -39,7 +39,9 @@ local function styleFreeBlizzardFrames()
end
if db.bgscore then
WorldStateScoreFrame.backdrop:Style("Outside")
if WorldStateScoreFrame.backdrop then
WorldStateScoreFrame.backdrop:Style("Outside")
end
end
if db.character then
......@@ -306,9 +308,65 @@ local function skinZygor()
if not BUI.ZG or not E.db.benikuiSkins.variousSkins.zygor then
return
end
_G["ZygorGuidesViewerFrame"]:StripTextures()
_G["ZygorGuidesViewerFrame"]:CreateBackdrop("Transparent")
_G["ZygorGuidesViewerFrame"].backdrop:Style("Outside")
local zygorFrame = _G["ZygorGuidesViewerFrame"]
if not zygorFrame then return end
zygorFrame:StripTextures()
zygorFrame:CreateBackdrop("Transparent")
zygorFrame.backdrop:Style("Outside")
local function SkinGuideMenu()
local frame = ZGV.GuideMenu.MainFrame
if not frame then return end
if not frame.isStyled then
frame:StripTextures()
frame:CreateBackdrop("Transparent")
frame.backdrop:Style("Outside")
frame.isStyled = true
end
end
hooksecurefunc(ZGV.GuideMenu, "Show", SkinGuideMenu)
local function SkinFindNearest()
local frame = ZGV.WhoWhere.NPCFrame
if not frame then return end
if not frame.isStyled then
frame:StripTextures()
frame:CreateBackdrop("Transparent")
frame.backdrop:Style("Outside")
frame.isStyled = true
end
end
hooksecurefunc(ZGV.WhoWhere, "CreateMenuFrame", SkinFindNearest)
local function SkinActionbar()
local frame = ZGV.ActionBar.Frame
if not frame then return end
if not frame.isStyled then
frame:StripTextures()
frame:CreateBackdrop("Transparent")
frame.backdrop:Style("Outside")
frame.isStyled = true
end
end
hooksecurefunc(ZGV.ActionBar, "ApplySkin", SkinActionbar)
local function SkinPopup()
local frame = ZGV.ItemScore.Upgrades.EquipPopup
if not frame then return end
if not frame.isStyled then
frame:StripTextures()
frame:CreateBackdrop("Transparent")
frame.backdrop:Style("Outside")
frame.isStyled = true
end
end
hooksecurefunc(ZGV.PopupHandler, "ShowPopup", SkinPopup)
end
local function skinDecursive()
......@@ -433,6 +491,39 @@ local function StyleDBM_Options()
end)
end
local function StyleXtoLevel()
if not E.db.benikuiSkins.variousSkins.xtoLevel or not IsAddOnLoaded('XToLevel') then return end
local frame = _G["XToLevel_AverageFrame_Classic"]
if frame then
frame:StripTextures()
frame:CreateBackdrop("Transparent", true)
frame.backdrop:Style("Outside")
end
local XtoLevelFrames = {
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterKills"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterQuests"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterDungeons"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterBattles"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterObjectives"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterPetBattles"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterGathering"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterDigs"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterProgress"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterTimer"],
_G["XToLevel_AverageFrame_Blocky_PlayerFrameCounterGuildProgress"],
}
for _, bframe in pairs(XtoLevelFrames) do
S:HandleButton(bframe)
bframe:SetTemplate('Transparent')
if BUI.ShadowMode then
bframe:CreateSoftShadow()
end
end
end
local function StyleInFlight()
if E.db.benikuiSkins.variousSkins.inflight ~= true or E.db.benikui.misc.flightMode == true then
return
......@@ -474,14 +565,11 @@ local function StyleAdibags()
if not E.db.benikuiSkins.addonSkins.adibags or not BUI.AS then
return
end
E:Delay(
1.1,
function()
if AdiBagsContainer1 then
AdiBagsContainer1:Style("Outside")
end
E:Delay(1.1, function()
if AdiBagsContainer1 then
AdiBagsContainer1:Style("Outside")
end
)
end)
end
function mod:LoD_AddOns(_, addon)
......@@ -498,7 +586,7 @@ function mod:PLAYER_ENTERING_WORLD(...)
styleAddons()
styleWorldMap()
--StyleAdibags()
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
end
......@@ -527,7 +615,7 @@ function mod:Initialize()
--skinStoryline()
skinZygor()
StyleXtoLevel()
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("ADDON_LOADED", "LoD_AddOns")
--self:RegisterEvent("BANKFRAME_OPENED", "StyleAdibagsBank")
......
......@@ -14,7 +14,7 @@ function BU:Configure_Portrait(frame, isPlayer)
portrait:SetFrameLevel(frame.Health:GetFrameLevel())
end
portrait:SetAlpha(0.35)
portrait:SetAlpha(db.portrait.overlayAlpha)
if not dontHide then
portrait:Show()
end
......@@ -83,6 +83,12 @@ function BU:Configure_Portrait(frame, isPlayer)
end
end
if frame.PORTRAIT_BACKDROP then
portrait.backdrop:Show()
else
portrait.backdrop:Hide()
end
if db.portrait.style == '3D' then
portrait.backdrop:SetFrameStrata(frame.DETACHED_PORTRAIT_STRATA)
portrait:SetFrameStrata(portrait.backdrop:GetFrameStrata())
......@@ -146,25 +152,6 @@ function BU:Configure_Portrait(frame, isPlayer)
end
end
-- Portrait Alpha setting. Idea: Vxt, Credit: Blazeflack
local function OnConfigure_Portrait(self, frame)
local db = frame.db
if not db then return end
if BUI.SLE then return end
if frame.USE_PORTRAIT then
local portrait = frame.Portrait
if frame.USE_PORTRAIT_OVERLAY and not db.portrait.fullOverlay then
portrait:SetAlpha(E.db.benikui.unitframes.misc.portraitTransparency)
else
portrait:SetAlpha(0.35)
end
end
end
hooksecurefunc(UF, "Configure_Portrait", OnConfigure_Portrait)
hooksecurefunc(UF, "PortraitUpdate", OnConfigure_Portrait)
local function ResetPostUpdate()
for _, unitName in pairs(UF.units) do
local frameNameUnit = E:StringTitle(unitName)
......
......@@ -277,16 +277,6 @@ local function ufTable()
get = function(info) return E.db.benikui.unitframes.misc[ info[#info] ] end,
set = function(info, value) E.db.benikui.unitframes.misc[ info[#info] ] = value; E:StaticPopup_Show('PRIVATE_RL'); end,
},
portraitTransparency = {
order = 2,
type = 'range',
name = L['Overlayed Portraits Alpha'],
isPercent = true,
min = 0.2, max = 1, step = 0.05,
disabled = function() return BUI.SLE end,
get = function(info) return E.db.benikui.unitframes.misc[ info[#info] ] end,
set = function(info, value) E.db.benikui.unitframes.misc[ info[#info] ] = value; UF:Update_AllFrames(); end,
},
},