1
0
Bifurcation 0

update for classic BC

Cette révision appartient à :
Albirew 2021-05-24 18:20:20 +02:00
Parent 4763a6c340
révision 199fd9cd09
5 fichiers modifiés avec 17 ajouts et 14 suppressions

Voir le fichier

@ -142,6 +142,7 @@ function Bar.New(BarSave)
--[[Background Layer, this will contain all controls and is used in resizing]]-- --[[Background Layer, this will contain all controls and is used in resizing]]--
local Background = CreateFrame("FRAME", nil, ControlFrame); local Background = CreateFrame("FRAME", nil, ControlFrame);
Mixin(Background, BackdropTemplateMixin)
Background:SetSize(1, 1); Background:SetSize(1, 1);
Background:SetPoint("TOPLEFT", ControlFrame, "TOPLEFT"); Background:SetPoint("TOPLEFT", ControlFrame, "TOPLEFT");
Background:SetBackdrop({bgFile = Const.ImagesDir.."Backdrop.tga", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = {left=3, right=3, bottom=3, top=3}}); Background:SetBackdrop({bgFile = Const.ImagesDir.."Backdrop.tga", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = {left=3, right=3, bottom=3, top=3}});
@ -183,6 +184,7 @@ function Bar.New(BarSave)
--[[Label Frame]]-- --[[Label Frame]]--
local LabelFrame = CreateFrame("FRAME", nil, ControlFrame); local LabelFrame = CreateFrame("FRAME", nil, ControlFrame);
Mixin(LabelFrame, BackdropTemplateMixin)
LabelFrame:SetSize(1, 1); LabelFrame:SetSize(1, 1);
LabelFrame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 8, insets = {left=1.5, right=1.5, bottom=1.5, top=1.5}}); LabelFrame:SetBackdrop({bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 8, insets = {left=1.5, right=1.5, bottom=1.5, top=1.5}});
LabelFrame:SetBackdropColor(0, 0, 0, 1); LabelFrame:SetBackdropColor(0, 0, 0, 1);

Voir le fichier

@ -1,6 +1,6 @@
## Interface: 11306 ## Interface: 20501
## Title: Button Forge |cff69ccf0(Classic)|r ## Title: Button Forge |cff69f0d1(Classic BC)|r
## Version: 1.0.3-classic-1 ## Version: 1.0.3-classic-BC
## Author: Massiner of Nathrezim, Albirew ## Author: Massiner of Nathrezim, Albirew
## Notes: Add as many or few extra Action Bars and Buttons to your user interface to complement the standard (or other) Action Bars ## Notes: Add as many or few extra Action Bars and Buttons to your user interface to complement the standard (or other) Action Bars
## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup ## SavedVariables: ButtonForgeGlobalSettings, ButtonForgeGlobalProfiles, ButtonForgeGlobalBackup

Voir le fichier

@ -2,7 +2,7 @@
<Script file="UILibLayers.lua"/> <Script file="UILibLayers.lua"/>
<Frame name="BFOverlay" enablemouse="true" hidden="true" virtual="true"> <Frame name="BFOverlay" mixin="BackdropTemplateMixin" enablemouse="true" hidden="true" virtual="true">
<Anchors> <Anchors>
<Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT"> <Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT">
<Offset> <Offset>

Voir le fichier

@ -10,10 +10,12 @@ local UILib = BFUILib;
local Const = BFConst; local Const = BFConst;
local VertLine = CreateFrame("FRAME", nil, UIParent); local VertLine = CreateFrame("FRAME", nil, UIParent);
Mixin(VertLine, BackdropTemplateMixin)
VertLine:SetBackdrop({bgFile = Const.ImagesDir.."VertLine.tga", edgeFile = nil, tile = false, tileSize = 1, edgeSize = 1, insets = {left=0, right=0, bottom=0, top=0}}); VertLine:SetBackdrop({bgFile = Const.ImagesDir.."VertLine.tga", edgeFile = nil, tile = false, tileSize = 1, edgeSize = 1, insets = {left=0, right=0, bottom=0, top=0}});
VertLine:SetWidth(Const.VLineThickness / UIParent:GetScale()); VertLine:SetWidth(Const.VLineThickness / UIParent:GetScale());
local HorizLine = CreateFrame("FRAME", nil, UIParent); local HorizLine = CreateFrame("FRAME", nil, UIParent);
Mixin(HorizLine, BackdropTemplateMixin)
HorizLine:SetBackdrop({bgFile = Const.ImagesDir.."HorizontalLine.tga", edgeFile = nil, tile = false, tileSize = 1, edgeSize = 1, insets = {left=0, right=0, bottom=0, top=0}}); HorizLine:SetBackdrop({bgFile = Const.ImagesDir.."HorizontalLine.tga", edgeFile = nil, tile = false, tileSize = 1, edgeSize = 1, insets = {left=0, right=0, bottom=0, top=0}});
HorizLine:SetHeight(Const.HLineThickness / UIParent:GetScale()); HorizLine:SetHeight(Const.HLineThickness / UIParent:GetScale());

Voir le fichier

@ -1888,16 +1888,15 @@ function Util.CacheCompanions()
Util.Critters[Name] = i; Util.Critters[Name] = i;
end]] end]]
Util.Mounts = {}; -- Util.Mounts = {};
--[[ -- for i, mountID in pairs(C_MountJournal.GetMountIDs()) do
for i, mountID in pairs(C_MountJournal.GetMountIDs()) do -- local creatureName, spellID = C_MountJournal.GetMountInfoByID(mountID);
local creatureName, spellID = C_MountJournal.GetMountInfoByID(mountID); -- if (not creatureName) then
if (not creatureName) then -- return;
return; -- end
end -- Util.Mounts[spellID] = mountID;
Util.Mounts[spellID] = mountID; -- end
end -- Util.CompanionsCached = true;
Util.CompanionsCached = true;]]
end end
function Util.LookupCompanion(Name) function Util.LookupCompanion(Name)