-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.lua
More file actions
135 lines (121 loc) · 5.21 KB
/
Copy pathcore.lua
File metadata and controls
135 lines (121 loc) · 5.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
local _, cfg = ... --import config
local addon, ns = ... --get addon namespace
--[[
This started out as a place to dump all my !Beautycase Skins in BobUI
--10leej
]]
local function CreateBackdrop(frame)
frame:SetBackdrop({bgFile = cfg.backdrop, edgeFile = "Interface\\Buttons\\WHITE8x8", edgeSize = cfg.pixelbordersize,
insets = {top = 2, left = 2, bottom = 2, right = 2}})
frame:SetBackdropColor(unpack(cfg.bColor))
frame:SetBackdropBorderColor(unpack(cfg.bColor))
if isBeautiful then
frame:CreateBeautyBorder(cfg.border.size.large)
frame:SetBeautyBorderTexture(cfg.border.texture)
frame:SetBeautyBorderColor(unpack(cfg.border.color))
end
end
if cfg.debug then
print("!BobSkins: LOADED")
end
local f = CreateFrame('Frame')
f:RegisterEvent('VARIABLES_LOADED')
f:RegisterEvent('ADDON_LOADED')
f:RegisterEvent('PLAYER_ENTERING_WORLD')
f:SetScript('OnEvent', function(self)
--[[
if (IsAddOnLoaded('Omen')) then
print("!BobSkins: Omen skin is in open beta there may be errors -10leej")
if (not OmenBarList.beautyBorder) then
OmenBarList:CreateBeautyBorder(cfg.border.size.large)
OmenBarList:SetBeautyBorderTexture(cfg.border.texture)
OmenBarList:SetBeautyBorderPadding(2)
end
end
]]
if (IsAddOnLoaded('DBM-Core')) then
if cfg.debug then
print("!BobSkins: DBM skin is in open beta there may be errors -10leej")
end
hooksecurefunc(DBT, 'CreateBar', function(self)
for bar in self:GetBarIterator() do
local frame = bar.frame
local tbar = _G[frame:GetName()..'Bar']
local spark = _G[frame:GetName()..'BarSpark']
local texture = _G[frame:GetName()..'BarTexture']
local icon1 = _G[frame:GetName()..'BarIcon1']
local icon2 = _G[frame:GetName()..'BarIcon2']
local name = _G[frame:GetName()..'BarName']
local timer = _G[frame:GetName()..'BarTimer']
spark:SetTexture(nil)
timer:ClearAllPoints()
timer:SetPoint('RIGHT', tbar, 'RIGHT', -4, 0)
timer:SetFont('Fonts\\ARIALN.ttf', 22)
timer:SetJustifyH('RIGHT')
name:ClearAllPoints()
name:SetPoint('LEFT', tbar, 4, 0)
name:SetPoint('RIGHT', timer, 'LEFT', -4, 0)
name:SetFont('Fonts\\ARIALN.ttf', 15)
tbar:SetHeight(24)
tbar:CreateBeautyBorder(cfg.border.size.large)
tbar:SetBeautyBorderTexture(cfg.border.texture)
tbar:SetBeautyBorderPadding(tbar:GetHeight() + 3, 2, 2, 2, tbar:GetHeight() + 3, 2, 2, 2)
tbar:SetBackdrop({bgFile = 'Interface\\Buttons\\WHITE8x8'})
tbar:SetBackdropColor(0, 0, 0, 0.5)
icon1:SetTexCoord(0.07, 0.93, 0.07, 0.93)
icon1:SetSize(tbar:GetHeight(), tbar:GetHeight() - 1)
icon2:SetTexCoord(0.07, 0.93, 0.07, 0.93)
icon2:SetSize(tbar:GetHeight(), tbar:GetHeight() - 1)
end
end)
end
if (IsAddOnLoaded('TinyDPS')) then
if cfg.debug then
print("!BobSkins: TinyDPS skin is in open beta there may be errors -10leej")
end
if (not tdpsFrame.beautyBorder) then
tdpsFrame:CreateBeautyBorder(cfg.border.size.large)
tdpsFrame:SetBeautyBorderTexture(cfg.border.texture)
tdpsFrame:SetBeautyBorderPadding(2)
tdpsFrame:SetBackdrop({
bgFile = 'Interface\\Buttons\\WHITE8x8',
insets = { left = 0, right = 0, top = 0, bottom = 0 },
})
tdpsFrame:SetBackdropColor(0, 0, 0, 0.5)
end
end
if (IsAddOnLoaded('Recount')) then
if cfg.debug then
print("!BobSkins: Recount skin is in open beta there may be errors -10leej")
end
if (not Recount.MainWindow.beautyBorder) then
Recount.MainWindow:CreateBeautyBorder(cfg.border.size.large)
Recount.MainWindow:SetBeautyBorderTexture(cfg.border.texture)
Recount.MainWindow:SetBeautyBorderPadding(2, -10, 2, -10, 2, 2, 2, 2)
Recount.MainWindow:SetBackdrop({
bgFile = 'Interface\\Buttons\\WHITE8x8',
insets = { left = 0, right = 0, top = 10, bottom = 0 },
})
Recount.MainWindow:SetBackdropColor(0, 0, 0, 0.5)
end
end
if (IsAddOnLoaded('Skada')) then
if cfg.debug then
print("!BobSkins: Skada skin is in open beta there may be errors -10leej")
end
local OriginalSkadaFunc = Skada.PLAYER_ENTERING_WORLD
function Skada:PLAYER_ENTERING_WORLD()
OriginalSkadaFunc(self)
if (SkadaBarWindowSkada and not SkadaBarWindowSkada.beautyBorder) then
SkadaBarWindowSkada:CreateBeautyBorder(cfg.border.size.large)
SkadaBarWindowSkada:SetBeautyBorderTexture(cfg.border.texture)
SkadaBarWindowSkada:SetBeautyBorderPadding(3)
SkadaBarWindowSkada:SetBackdrop({
bgFile = 'Interface\\Buttons\\WHITE8x8',
insets = { left = 0, right = 0, top = 10, bottom = 0 },
})
SkadaBarWindowSkada:SetBackdropColor(0, 0, 0, 0.5)
end
end
end
end)