Commit 78c477be authored by Benik's avatar Benik

Merge remote-tracking branch 'origin/development'

parents 0d105fa2 7a7a2f13
......@@ -213,3 +213,6 @@ pip-log.txt
#Mr Developer
.mr.developer.cfg
# Luacheck's Cache
.luacheckcache
3.9 (Jul 9, 2020)
*Fix Role Icons
*Added my favorite Kringel texture. Credit: Kringel <3 - under permission
*Added an Enable/disable option for Info Panel colors/textures
*Since it's a pain (or even impossible) to grab the group unit class, Infopanel color options have been separated. They still share the same texture. This will close #17.
*Make the power statusbar option more flexible
*Fixed Castbar Icon position
*Fixed parchment remover option
*Added some textures I really like
*Fixed a tiny mini ace3 error
*Fixed DataText tooltip Style
*Removed BenikUI version from Status Report main frame. It's now in the plugins frame
*Adding options in Custom Datatexts works fine now. Thanks @Simpy for the addition <3
*Added BenikUI Style in the Custom Datatext options
*Removed S&L and DTBars_2 datatext styling
*Followed LocationPlus dt renaming
*Added option to change the datatext points to the Middle Datatext. Not sure if I'm gonna keep it tho :P
*Removed rep autotrack. It's part of ElvUI now
*Fixed LocationPlus defaults in the installer
*Fixed dt points while resizing the Middle Datatext
*Made BenikUI Datatexts names more friendly (and nice looking)
*Replaced the A and C button arrows with texture
*Fixed Chat EditBox
*Update BenikUI datatexts
3.812 (May 7, 2020)
*Missed a rename (Repooc)
*Styled StatusFrame.PluginFrame
......
## Interface: 80300
## Author: Benik
## Version: 3.812
## Version: 3.9
## Title: |cff1784d1ElvUI|r |cff00c0faBenikUI|r
## Notes: an ElvUI 11+ decorative/enhancement edit
## RequiredDeps: ElvUI
......@@ -8,7 +8,7 @@
## OptionalDeps: SharedMedia, AddOnSkins, ProjectAzilroka
## X-Tukui-ProjectID: 11
## X-Tukui-ProjectFolders: ElvUI_BenikUI
## X-ElvuiVersion: 11.40
## X-ElvuiVersion: 11.42
libs\load_libs.xml
locales\load_locales.xml
......
......@@ -56,6 +56,7 @@ local function RegisterMedia()
E['media'].BuiMelli = LSM:Fetch('statusbar', 'BuiMelli')
E['media'].BuiMelliDark = LSM:Fetch('statusbar', 'BuiMelliDark')
E['media'].BuiOnePixel = LSM:Fetch('statusbar', 'BuiOnePixel')
E['media'].BuiShadow = LSM:Fetch('statusbar', 'BuiKringelShadow')
end
function BUI:Print(...)
......
......@@ -47,7 +47,7 @@ local function CreateStyleShadow(f)
styleShadow:Point('TOPLEFT', f, 'TOPLEFT', -2, 2)
styleShadow:Point('BOTTOMRIGHT', f, 'BOTTOMRIGHT', 2, 0)
styleShadow:SetBackdrop({edgeFile = LSM:Fetch('border', 'ElvUI GlowBorder'), edgeSize = E:Scale(db.shadowSize or 3)})
styleShadow:SetBackdrop({edgeFile = LSM:Fetch('border', 'ElvUI GlowBorder'), edgeSize = E:Scale(3)})
styleShadow:SetBackdropColor(backdropr, backdropg, backdropb, 0)
styleShadow:SetBackdropBorderColor(borderr, borderg, borderb, 0.6)
f.styleShadow = styleShadow
......
......@@ -54,8 +54,8 @@ local function SetupLayout(layout)
E.db["databars"]["reputation"]["textFormat"] = 'NONE'
E.db["databars"]["reputation"]["textSize"] = 9
E.db["databars"]["reputation"]["width"] = 8
E.db["datatexts"]["leftChatPanel"] = false
E.db["datatexts"]["panelTransparency"] = true
E.db["datatexts"]["panels"]["LeftChatDataPanel"]["enable"] = false
E.db["datatexts"]["panels"]["RightChatDataPanel"]["enable"] = false
E.db["datatexts"]["rightChatPanel"] = false
E.db["general"]["backdropcolor"]["b"] = 0.025
E.db["general"]["backdropcolor"]["g"] = 0.025
......@@ -92,7 +92,7 @@ local function SetupLayout(layout)
E.db["hideTutorial"] = true
E.private["skins"]["blizzard"]["alertframes"] = true
E.private["skins"]["blizzard"]["questChoice"] = true
E.private["skins"]["parchmentRemover"]["enable"] = true
E.private["skins"]["parchmentRemoverEnable"] = true
E.db["benikuiDatabars"]["azerite"]["buttonStyle"] = "DEFAULT"
E.db["benikuiDatabars"]["azerite"]["notifiers"]["position"] = "RIGHT"
......@@ -1947,33 +1947,40 @@ end
local function SetupDataTexts(role)
-- Data Texts
if BUI.LP then
E.db["datatexts"]["panels"]["RightCoordDtPanel"] = 'Time'
E.db["datatexts"]["panels"]["LeftCoordDtPanel"] = 'Quick Join'
E.db["datatexts"]["panels"]["LocPlusRightDT"][1] = 'Time'
E.db["datatexts"]["panels"]["LocPlusLeftDT"][1] = 'Primary Stat'
E.DataTexts:UpdatePanelInfo('LocPlusRightDT')
E.DataTexts:UpdatePanelInfo('LocPlusLeftDT')
end
if role == 'tank' then
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"]["left"] = 'Attack Power'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"]["left"] = 'Avoidance'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"]["right"] = 'Armor'
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"][1] = 'Attack Power'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"][1] = 'Avoidance'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"][3] = 'Armor'
elseif role == 'dpsMelee' then
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"]["left"] = 'Attack Power'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"]["left"] = 'Haste'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"]["right"] = 'Crit Chance'
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"][1] = 'Attack Power'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"][1] = 'Haste'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"][3] = 'Crit Chance'
elseif role == 'healer' or 'dpsCaster' then
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"]["left"] = 'Spell/Heal Power'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"]["left"] = 'Haste'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"]["right"] = 'Crit Chance'
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"][1] = 'Spell/Heal Power'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"][1] = 'Haste'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"][3] = 'Crit Chance'
end
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"]["middle"] = 'BfA Missions (BenikUI)'
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"]["right"] = 'BuiMail'
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"][2] = 'BfA Missions (BenikUI)'
E.db["datatexts"]["panels"]["BuiLeftChatDTPanel"][3] = 'BuiMail'
E.db["datatexts"]["panels"]["BuiRightChatDTPanel"][1] = 'Spec Switch (BenikUI)'
E.db["datatexts"]["panels"]["BuiRightChatDTPanel"][3] = 'Gold'
E.db["datatexts"]["panels"]["BuiRightChatDTPanel"][2] = 'Bags'
E.db["datatexts"]["panels"]["BuiRightChatDTPanel"]["left"] = 'Spec Switch (BenikUI)'
E.db["datatexts"]["panels"]["BuiRightChatDTPanel"]["right"] = 'Gold'
E.db["datatexts"]["panels"]["BuiRightChatDTPanel"]["middle"] = 'Bags'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"][2] = 'Mastery'
E.db["datatexts"]["panels"]["BuiMiddleDTPanel"]["middle"] = 'Mastery'
E.DataTexts:UpdatePanelInfo('BuiLeftChatDTPanel')
E.DataTexts:UpdatePanelInfo('BuiRightChatDTPanel')
E.DataTexts:UpdatePanelInfo('BuiMiddleDTPanel')
PluginInstallStepComplete.message = BUI.Title..L['DataTexts Set']
PluginInstallStepComplete:Show()
......
......@@ -34,10 +34,6 @@ local function CreateStatusFrame()
StatusFrame.TitleLogoFrame.Title:SetFormattedText("|cfffe7b2c- ElvUI Status Report -|r")
-- Content lines
local versiontext = StatusFrame.Section1.Content.Line1.Text:GetText()
versiontext = versiontext..", BenikUI "..format(" |cff4beb2cv%s|r", BUI.Version)
StatusFrame.Section1.Content.Line1.Text:SetFormattedText(versiontext)
StatusFrame.Section1.Content.Line2.Text:SetFormattedText("Other AddOns Enabled: |cff4beb2c%s|r", AreOtherAddOnsEnabled())
end
......
......@@ -25,6 +25,25 @@ P['databars']['honor']['textYoffset'] = 0
-- Add Minimap styling toggle default
P['general']['minimap']['benikuiStyle'] = true
-- Datatexts
P['datatexts']['panels']['BuiLeftChatDTPanel'] = {
[1] = 'Spell/Heal Power',
[2] = 'BfA Missions (BenikUI)',
[3] = 'BuiMail',
}
P['datatexts']['panels']['BuiRightChatDTPanel'] = {
[1] = 'Spec Switch (BenikUI)',
[2] = 'Gold',
[3] = 'Bags',
}
P['datatexts']['panels']['BuiMiddleDTPanel'] = {
[1] = 'Haste',
[2] = 'Mastery',
[3] = 'Crit Chance',
}
-- Core
P['benikui'] = {
['installed'] = nil,
......@@ -83,6 +102,7 @@ P['benikui'] = {
['width'] = 400,
['height'] = 19,
['styled'] = false,
['numPoints'] = 3,
},
['mail'] = {
['toggle'] = true,
......@@ -114,7 +134,7 @@ P['benikui'] = {
['stancebar'] = true,
},
},
['unitframes'] = {
['player'] = {
['detachPortrait'] = false,
......@@ -169,8 +189,10 @@ P['benikui'] = {
['infoPanel'] = {
['fixInfoPanel'] = true,
['texture'] = 'BuiEmpty',
['enableColor'] = false,
['customColor'] = 2,
['color'] = {r = .9, g = .7, b = 0, a = .7},
['groupColor'] = {r = .9, g = .7, b = 0, a = .7},
},
['castbar'] = {
['text'] = {
......@@ -200,21 +222,21 @@ P['benikui'] = {
-- Datatexts
P.datatexts.panels.BuiLeftChatDTPanel = {
left = E.db.datatexts.panels.LeftChatDataPanel.left,
middle = E.db.datatexts.panels.LeftChatDataPanel.middle,
right = E.db.datatexts.panels.LeftChatDataPanel.right,
[1] = 'Attack Power',
[2] = 'BfA Missions (BenikUI)',
[3] = 'BuiMail',
}
P.datatexts.panels.BuiRightChatDTPanel = {
left = E.db.datatexts.panels.RightChatDataPanel.left,
middle = E.db.datatexts.panels.RightChatDataPanel.middle,
right = E.db.datatexts.panels.RightChatDataPanel.right,
[1] = 'Spec Switch (BenikUI)',
[2] = 'Gold',
[3] = 'Bags',
}
P.datatexts.panels.BuiMiddleDTPanel = {
left = 'Haste',
middle = 'Mastery',
right = 'Crit Chance',
[1] = 'Haste',
[2] = 'Mastery',
[3] = 'Crit Chance',
}
-- Skins and ElvUI addons Styling
......@@ -224,10 +246,9 @@ P['benikuiSkins'] = {
['locplus'] = true,
['sle'] = true,
['enh'] = true,
['dtb2'] = true,
['pa'] = true,
},
['addonSkins'] = {
['skada'] = true,
['recount'] = true,
......@@ -243,7 +264,7 @@ P['benikuiSkins'] = {
['immersion'] = true,
['adibags'] = true,
},
['variousSkins'] = {
['talkingHead'] = true,
['decursive'] = true,
......@@ -264,19 +285,18 @@ P['benikuiDatabars'] = {
['position'] = 'RIGHT',
},
},
['reputation'] = {
['enable'] = true,
['buiStyle'] = true,
['buttonStyle'] = "TRANSPARENT",
['autotrack'] = false,
['notifiers'] = {
['enable'] = true,
['combat'] = false,
['position'] = 'LEFT',
},
},
['azerite'] = {
['enable'] = true,
['buiStyle'] = true,
......@@ -287,7 +307,7 @@ P['benikuiDatabars'] = {
['position'] = 'LEFT',
},
},
['honor'] = {
['enable'] = true,
['buiStyle'] = true,
......@@ -318,7 +338,7 @@ P['dashboards'] = {
},
['latency'] = 2,
},
['tokens'] = {
['enableTokens'] = true,
['combat'] = true,
......@@ -331,7 +351,7 @@ P['dashboards'] = {
['zeroamount'] = false,
['weekly'] = true,
},
['professions'] = {
['enableProfessions'] = true,
['combat'] = true,
......@@ -349,7 +369,7 @@ P['dashboards'] = {
['dbfontsize'] = E.db.datatexts.fontSize,
['dbfontflags'] = E.db.datatexts.fontOutline,
},
['barColor'] = 1,
['customBarColor'] = {r = 255/255,g = 128/255,b = 0/255},
['textColor'] = 2,
......@@ -360,4 +380,6 @@ G['benikui'] = {
['CustomPanels'] = {
['createButton'] = false,
},
}
\ No newline at end of file
}
G.datatexts.newPanelInfo.benikuiStyle = true
\ No newline at end of file
......@@ -21,28 +21,13 @@ local GameMenuButtonAddons = GameMenuButtonAddons
-- GLOBALS: AddOnSkins, MAINMENU_BUTTON, LFG_TITLE, BuiLeftChatDTPanel
-- GLOBALS: BuiMiddleDTPanel, BuiRightChatDTPanel, BuiGameClickMenu
-- GLOBALS: EncounterJournal_LoadUI, EncounterJournal
-- GLOBALS: LeftMiniPanel, RightMiniPanel, Minimap
-- GLOBALS: MinimapPanel, Minimap
-- GLOBALS: LeftChatPanel, RightChatPanel, CopyChatFrame
local PANEL_HEIGHT = 19;
local SPACING = (E.PixelMode and 1 or 3)
local BUTTON_NUM = 4
local Bui_ldtp = CreateFrame('Frame', 'BuiLeftChatDTPanel', E.UIParent)
local Bui_rdtp = CreateFrame('Frame', 'BuiRightChatDTPanel', E.UIParent)
local Bui_mdtp = CreateFrame('Frame', 'BuiMiddleDTPanel', E.UIParent)
local function RegDataTexts()
DT:RegisterPanel(BuiLeftChatDTPanel, 3, 'ANCHOR_BOTTOM', 0, -4)
DT:RegisterPanel(BuiMiddleDTPanel, 3, 'ANCHOR_BOTTOM', 0, -4)
DT:RegisterPanel(BuiRightChatDTPanel, 3, 'ANCHOR_BOTTOM', 0, -4)
L['BuiLeftChatDTPanel'] = BUI.Title..BUI:cOption(L['Left Chat Panel']);
L['BuiRightChatDTPanel'] = BUI.Title..BUI:cOption(L['Right Chat Panel']);
L['BuiMiddleDTPanel'] = BUI.Title..BUI:cOption(L['Middle Panel']);
E.FrameLocks['BuiMiddleDTPanel'] = true;
end
local Bui_dchat = CreateFrame('Frame', 'BuiDummyChat', E.UIParent)
local Bui_dthreat = CreateFrame('Frame', 'BuiDummyThreat', E.UIParent)
local Bui_deb = CreateFrame('Frame', 'BuiDummyEditBoxHolder', E.UIParent)
......@@ -108,14 +93,15 @@ function mod:ToggleBuiDts()
end
function mod:ResizeMinimapPanels()
LeftMiniPanel:Point('TOPLEFT', Minimap.backdrop, 'BOTTOMLEFT', 0, -SPACING)
LeftMiniPanel:Point('BOTTOMRIGHT', Minimap.backdrop, 'BOTTOM', -SPACING, -(SPACING + PANEL_HEIGHT))
RightMiniPanel:Point('TOPRIGHT', Minimap.backdrop, 'BOTTOMRIGHT', 0, -SPACING)
RightMiniPanel:Point('BOTTOMLEFT', LeftMiniPanel, 'BOTTOMRIGHT', SPACING, 0)
MinimapPanel:Point('TOPLEFT', Minimap.backdrop, 'BOTTOMLEFT', 0, -SPACING)
MinimapPanel:Point('BOTTOMRIGHT', Minimap.backdrop, 'BOTTOMRIGHT', -SPACING, -(SPACING + PANEL_HEIGHT))
end
function mod:ToggleTransparency()
local db = E.db.benikui.datatexts.chat
local Bui_ldtp = _G.BuiLeftChatDTPanel
local Bui_rdtp = _G.BuiRightChatDTPanel
if not db.backdrop then
Bui_ldtp:SetTemplate('NoBackdrop')
Bui_rdtp:SetTemplate('NoBackdrop')
......@@ -155,6 +141,7 @@ end
function mod:MiddleDatatextLayout()
local db = E.db.benikui.datatexts.middle
local Bui_mdtp = _G.BuiMiddleDTPanel
if db.enable then
Bui_mdtp:Show()
......@@ -189,6 +176,9 @@ end
function mod:ChatStyles()
if not E.db.benikui.general.benikuiStyle then return end
local Bui_ldtp = _G.BuiLeftChatDTPanel
local Bui_rdtp = _G.BuiRightChatDTPanel
if E.db.benikui.datatexts.chat.styled and E.db.chat.panelBackdrop == 'HIDEBOTH' then
Bui_rdtp.style:Show()
Bui_ldtp.style:Show()
......@@ -206,9 +196,11 @@ end
function mod:MiddleDatatextDimensions()
local db = E.db.benikui.datatexts.middle
local Bui_mdtp = _G.BuiMiddleDTPanel
Bui_mdtp:Width(db.width)
Bui_mdtp:Height(db.height)
DT.UpdatePanelDimensions(Bui_mdtp)
DT:UpdatePanelInfo('BuiMiddleDTPanel')
end
function mod:PositionEditBoxHolder(bar)
......@@ -230,31 +222,39 @@ local function Panel_OnShow(self)
self:SetFrameLevel(0)
end
function mod:ChangeLayout()
LeftMiniPanel:Height(PANEL_HEIGHT)
RightMiniPanel:Height(PANEL_HEIGHT)
function mod:CreateLayout()
local db = E.db.benikui.datatexts
-- Left dt panel
local Bui_ldtp = CreateFrame('Frame', 'BuiLeftChatDTPanel', E.UIParent)
Bui_ldtp:SetTemplate('Default', true)
Bui_ldtp:SetFrameStrata('BACKGROUND')
Bui_ldtp:Point('TOPLEFT', LeftChatPanel, 'BOTTOMLEFT', (SPACING +PANEL_HEIGHT), -SPACING)
Bui_ldtp:Point('BOTTOMRIGHT', LeftChatPanel, 'BOTTOMRIGHT', -(SPACING +PANEL_HEIGHT), -PANEL_HEIGHT -SPACING)
Bui_ldtp:Style('Outside', nil, false, true)
DT:RegisterPanel(BuiLeftChatDTPanel, 3, 'ANCHOR_BOTTOM', 0, -4)
-- Right dt panel
local Bui_rdtp = CreateFrame('Frame', 'BuiRightChatDTPanel', E.UIParent)
Bui_rdtp:SetTemplate('Default', true)
Bui_rdtp:SetFrameStrata('BACKGROUND')
Bui_rdtp:Point('TOPLEFT', RightChatPanel, 'BOTTOMLEFT', (SPACING +PANEL_HEIGHT), -SPACING)
Bui_rdtp:Point('BOTTOMRIGHT', RightChatPanel, 'BOTTOMRIGHT', -(SPACING +PANEL_HEIGHT), -PANEL_HEIGHT -SPACING)
Bui_rdtp:Style('Outside', nil, false, true)
DT:RegisterPanel(BuiRightChatDTPanel, 3, 'ANCHOR_BOTTOM', 0, -4)
-- Middle dt panel
local Bui_mdtp = CreateFrame('Frame', 'BuiMiddleDTPanel', E.UIParent)
Bui_mdtp:SetTemplate('Default', true)
Bui_mdtp:SetFrameStrata('BACKGROUND')
Bui_mdtp:Point('BOTTOM', E.UIParent, 'BOTTOM', 0, 2)
Bui_mdtp:Width(E.db.benikui.datatexts.middle.width or 400)
Bui_mdtp:Height(E.db.benikui.datatexts.middle.height or PANEL_HEIGHT)
Bui_mdtp:Width(db.middle.width or 400)
Bui_mdtp:Height(db.middle.height or PANEL_HEIGHT)
Bui_mdtp:Style('Outside', nil, false, true)
DT:RegisterPanel(BuiMiddleDTPanel, (db.middle.numPoints or 3), 'ANCHOR_BOTTOM', 0, -4)
E:CreateMover(Bui_mdtp, "BuiMiddleDtMover", L['BenikUI Middle DataText'], nil, nil, nil, 'ALL,BENIKUI')
E.FrameLocks['BuiMiddleDTPanel'] = true;
-- dummy frame for chat/threat (left)
Bui_dchat:SetFrameStrata('LOW')
......@@ -279,6 +279,13 @@ 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))
bbuttons[i].arrow = bbuttons[i]:CreateTexture(nil, 'OVERLAY')
bbuttons[i].arrow:SetTexture(E.Media.Textures.ArrowUp)
bbuttons[i].arrow:ClearAllPoints()
bbuttons[i].arrow:Point('CENTER')
bbuttons[i].arrow:Size(12)
bbuttons[i].arrow:SetVertexColor(BUI:unpackColor(E.db.general.valuecolor))
bbuttons[i].arrow:Hide()
-- ElvUI Config
if i == 1 then
......@@ -286,6 +293,7 @@ function mod:ChangeLayout()
bbuttons[i]:Point('BOTTOMRIGHT', Bui_rdtp, 'BOTTOMRIGHT', PANEL_HEIGHT + SPACING, 0)
bbuttons[i]:SetParent(Bui_rdtp)
bbuttons[i].text:SetText('C')
bbuttons[i].arrow:SetRotation(E.Skins.ArrowRotation.right)
bbuttons[i].parent = _G.RightChatPanel
bbuttons[i]:SetScript('OnEnter', function(self)
......@@ -302,9 +310,11 @@ function mod:ChangeLayout()
end
if IsShiftKeyDown() then
self.text:SetText('>')
self.text:SetText('')
self.arrow:Show()
self:SetScript('OnClick', ChatButton_OnClick)
else
self.arrow:Hide()
self.text:SetText('C')
self:SetScript('OnClick', function(self, btn)
if btn == 'LeftButton' then
......@@ -370,6 +380,7 @@ function mod:ChangeLayout()
bbuttons[i]:Point('BOTTOMLEFT', Bui_ldtp, 'BOTTOMLEFT', -(PANEL_HEIGHT + SPACING), 0)
bbuttons[i]:SetParent(Bui_ldtp)
bbuttons[i].text:SetText('A')
bbuttons[i].arrow:SetRotation(E.Skins.ArrowRotation.left)
bbuttons[i].parent = _G.LeftChatPanel
bbuttons[i]:SetScript('OnEnter', function(self)
......@@ -377,7 +388,8 @@ function mod:ChangeLayout()
self.sglow:Show()
end
if IsShiftKeyDown() then
self.text:SetText('<')
self.arrow:Show()
self.text:SetText('')
self:SetScript('OnClick', ChatButton_OnClick)
else
self:SetScript('OnClick', function(self)
......@@ -394,6 +406,7 @@ function mod:ChangeLayout()
bbuttons[i]:SetScript('OnLeave', function(self)
self.text:SetText('A')
self.arrow:Hide()
self.sglow:Hide()
GameTooltip:Hide()
end)
......@@ -435,7 +448,8 @@ function mod:ChangeLayout()
end)
end
end
MinimapPanel:Height(PANEL_HEIGHT)
ElvUI_BottomPanel:SetScript('OnShow', Panel_OnShow)
ElvUI_BottomPanel:SetFrameLevel(0)
ElvUI_TopPanel:SetScript('OnShow', Panel_OnShow)
......@@ -445,8 +459,7 @@ function mod:ChangeLayout()
RightChatPanel.backdrop:Style('Outside', 'RightChatPanel_Bui')
if BUI.ShadowMode then
LeftMiniPanel:CreateSoftShadow()
RightMiniPanel:CreateSoftShadow()
MinimapPanel:CreateSoftShadow()
LeftChatDataPanel:CreateSoftShadow()
LeftChatToggleButton:CreateSoftShadow()
RightChatDataPanel:CreateSoftShadow()
......@@ -496,17 +509,32 @@ function mod:PLAYER_ENTERING_WORLD(...)
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
end
local function InjectDatatextOptions()
E.Options.args.datatexts.args.panels.args.BuiLeftChatDTPanel.name = BUI.Title..BUI:cOption(L['Left Chat Panel'])
E.Options.args.datatexts.args.panels.args.BuiLeftChatDTPanel.order = 1001
E.Options.args.datatexts.args.panels.args.BuiRightChatDTPanel.name = BUI.Title..BUI:cOption(L['Right Chat Panel'])
E.Options.args.datatexts.args.panels.args.BuiRightChatDTPanel.order = 1002
E.Options.args.datatexts.args.panels.args.BuiMiddleDTPanel.name = BUI.Title..BUI:cOption(L['Middle Panel'])
E.Options.args.datatexts.args.panels.args.BuiMiddleDTPanel.order = 1003
end
function mod:Initialize()
RegDataTexts()
self:ChangeLayout()
self:CreateLayout()
self:ChatStyles()
self:ToggleMinimapStyle()
tinsert(BUI.Config, InjectDatatextOptions)
hooksecurefunc(LO, 'ToggleChatPanels', mod.ToggleBuiDts)
hooksecurefunc(LO, 'ToggleChatPanels', mod.ResizeMinimapPanels)
hooksecurefunc(LO, 'ToggleChatPanels', mod.ChatStyles)
hooksecurefunc(M, 'UpdateSettings', mod.ResizeMinimapPanels)
hooksecurefunc(DT, 'UpdatePanelInfo', mod.MiddleDatatextLayout)
hooksecurefunc(DT, 'UpdatePanelInfo', mod.ToggleTransparency)
hooksecurefunc(DT, 'LoadDataTexts', updateButtonFont)
hooksecurefunc(E, 'UpdateMedia', updateButtonFont)
self:RegisterEvent('PLAYER_ENTERING_WORLD')
self:RegisterEvent('ACTIVE_TALENT_GROUP_CHANGED', 'regEvents')
end
......
......@@ -168,8 +168,6 @@ L['Tip: Click to free memory'] = "Tip: Klicken um den Speicher zu bereinigen"
L['Use DataTexts font'] = "Benutze Infotext Schriftart"
-- Databars Options
L['AutoTrack'] = "Automatische Verfolgung"
L['Change the tracked Faction automatically when reputation changes'] = "Ändert automatisch die Rufverfolgung wenn sich der Ruf verändert"
L['Notifiers'] = "Benachrichtigungen"
L['Show BenikUI decorative bars on the default ElvUI XP bar'] = "Zeige BenikUI dekorative Leisten auf der standard ElvUI Erfahrungsleiste"
L['Show BenikUI decorative bars on the default ElvUI Azerite bar'] = "Zeige BenikUI dekorative Leisten auf der standard ElvUI Azeritleiste"
......
......@@ -169,8 +169,6 @@ L['Tip: Click to free memory'] = true
L['Use DataTexts font'] = true
-- Databars Options
L['AutoTrack'] = true
L['Change the tracked Faction automatically when reputation changes'] = true
L['Notifiers'] = true
L['Show BenikUI decorative bars on the default ElvUI XP bar'] = true
L['Show BenikUI decorative bars on the default ElvUI Azerite bar'] = true
......
......@@ -168,8 +168,6 @@ L['Tip: Click to free memory'] = true
L['Use DataTexts font'] = true
-- Databars Options
L['AutoTrack'] = true
L['Change the tracked Faction automatically when reputation changes'] = true
L['Notifiers'] = true
L['Show BenikUI decorative bars on the default ElvUI XP bar'] = true
L['Show BenikUI decorative bars on the default ElvUI Azerite bar'] = true
......
......@@ -168,8 +168,6 @@ L['Tip: Click to free memory'] = true
L['Use DataTexts font'] = true
-- Databars Options
L['AutoTrack'] = true
L['Change the tracked Faction automatically when reputation changes'] = true
L['Notifiers'] = true
L['Show BenikUI decorative bars on the default ElvUI XP bar'] = true
L['Show BenikUI decorative bars on the default ElvUI Azerite bar'] = true
......
......@@ -168,8 +168,6 @@ L['Tip: Click to free memory'] = true
L['Use DataTexts font'] = true
-- Databars Options
L['AutoTrack'] = true
L['Change the tracked Faction automatically when reputation changes'] = true
L['Notifiers'] = true