Skip to content

Commit 95cd37c

Browse files
committed
6.0.3
0 parents  commit 95cd37c

File tree

3,281 files changed

+746255
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,281 files changed

+746255
-0
lines changed

!Aurora_RealUI/!Aurora.lua

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
local _, mods = ...
2+
mods["Aurora"] = {}
3+
mods["PLAYER_LOGIN"] = {}
4+
5+
-- RealUI skin hook
6+
REALUI_STRIPE_TEXTURES = REALUI_STRIPE_TEXTURES or {}
7+
REALUI_WINDOW_FRAMES = REALUI_WINDOW_FRAMES or {}
8+
local nibRealUI = LibStub("AceAddon-3.0"):GetAddon("nibRealUI")
9+
local db = nibRealUI.db.profile
10+
11+
-- Aurora API
12+
local F, C
13+
local style = {}
14+
style.apiVersion = "6.0"
15+
16+
style.functions = {
17+
["CreateBD"] = function(f, a)
18+
--print("Override CreateBD", f:GetName(), a)
19+
f:SetBackdrop({
20+
bgFile = C.media.backdrop,
21+
edgeFile = C.media.backdrop,
22+
edgeSize = 1,
23+
})
24+
f:SetBackdropBorderColor(0, 0, 0)
25+
if not a then
26+
--print("CreateSD")
27+
f:SetBackdropColor(unpack(nibRealUI.media.window))
28+
f.tex = f.tex or f:CreateTexture(nil, "BACKGROUND", nil, 1)
29+
f.tex:SetTexture([[Interface\AddOns\nibRealUI\Media\StripesThin]], true)
30+
f.tex:SetAlpha(db.settings.stripeOpacity)
31+
f.tex:SetAllPoints()
32+
f.tex:SetHorizTile(true)
33+
f.tex:SetVertTile(true)
34+
f.tex:SetBlendMode("ADD")
35+
tinsert(REALUI_WINDOW_FRAMES, f)
36+
tinsert(REALUI_STRIPE_TEXTURES, f.tex)
37+
else
38+
--print("CreateBD: alpha", a)
39+
f:SetBackdropColor(0, 0, 0, a)
40+
end
41+
end,
42+
}
43+
44+
style.skipSplashScreen = true
45+
46+
--style.highlightColor = {r = 0, g = 1, b = 0}
47+
style.classcolors = {
48+
["DEATHKNIGHT"] = { r = 0.77, g = 0.12, b = 0.23 },
49+
["DRUID"] = { r = 1.00, g = 0.49, b = 0.04 },
50+
["HUNTER"] = { r = 0.67, g = 0.83, b = 0.45 },
51+
["MAGE"] = { r = 0.41, g = 0.80, b = 0.94 },
52+
["MONK"] = { r = 0.00, g = 1.00, b = 0.59 },
53+
["PALADIN"] = { r = 0.96, g = 0.55, b = 0.73 },
54+
["PRIEST"] = { r = 0.80, g = 0.80, b = 0.80 },
55+
["ROGUE"] = { r = 1.00, g = 0.96, b = 0.41 },
56+
["SHAMAN"] = { r = 0.00, g = 0.44, b = 0.87 },
57+
["WARLOCK"] = { r = 0.58, g = 0.51, b = 0.79 },
58+
["WARRIOR"] = { r = 0.78, g = 0.61, b = 0.43 },
59+
}
60+
61+
AURORA_CUSTOM_STYLE = style
62+
63+
local f = CreateFrame("Frame")
64+
f:RegisterEvent("ADDON_LOADED")
65+
f:RegisterEvent("PLAYER_LOGIN")
66+
f:SetScript("OnEvent", function(self, event, addon)
67+
if event == "PLAYER_LOGIN" then
68+
-- some skins need to be deferred till after all other addons.
69+
for _, func in next, mods[event] do
70+
func(F, C)
71+
end
72+
f:UnregisterEvent("PLAYER_LOGIN")
73+
elseif event == "ADDON_LOADED" and addon == "Aurora" then
74+
F, C = unpack(Aurora)
75+
76+
F.ReskinAtlas = function(f, atlas, is8Point)
77+
--print("ReskinAtlas")
78+
if not atlas then atlas = f:GetAtlas() end
79+
local file, _, _, left, right, top, bottom = GetAtlasInfo(atlas)
80+
file = file:sub(10) -- cut off "Interface"
81+
f:SetTexture([[Interface\AddOns\!Aurora_RealUI\Media]]..file)
82+
if is8Point then
83+
return left, right, top, bottom
84+
else
85+
f:SetTexCoord(left, right, top, bottom)
86+
end
87+
end
88+
end
89+
90+
-- mod logic by Haleth from Aurora
91+
local addonModule = mods[addon]
92+
if addonModule then
93+
if type(addonModule) == "function" then
94+
addonModule(F, C)
95+
else
96+
-- Aurora
97+
for _, moduleFunc in pairs(addonModule) do
98+
F.AddPlugin(function()
99+
moduleFunc(F, C)
100+
end)
101+
end
102+
end
103+
end
104+
end)

!Aurora_RealUI/!Aurora_RealUI.toc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Interface: 60000
2+
## Title: !Aurora |cffffffffReal|r|cffbf3333UI|r
3+
## Notes: A custom Aurora skin for RealUI
4+
## Author: Gethe88
5+
## Version: 8.1 r6
6+
## RequiredDeps: nibRealUI
7+
## OptionalDeps: !BugGrabber
8+
!Aurora.lua
9+
10+
AddOns\Bartender4.lua
11+
AddOns\Blizzard_DebugTools.lua
12+
AddOns\Blizzard_PetBattleUI.lua
13+
AddOns\Clique.lua
14+
AddOns\DBM.lua
15+
AddOns\DXE.lua
16+
AddOns\EasyMail.lua
17+
AddOns\Grid2.lua
18+
AddOns\KNP.lua
19+
AddOns\Masque.lua
20+
AddOns\Raven.lua
21+
AddOns\Skada.lua
22+
AddOns\WeakAuras.lua
23+
24+
FrameXML\PaperDollFrame.lua
25+
FrameXML\Timer.lua
26+
FrameXML\WorldMapFrame.lua
27+
28+
Misc\Ace3.lua
29+
Misc\MiscSkins.lua
30+
31+
# Test
32+
#FrameXML\mod.lua
33+
#AddOns\addon.lua

!Aurora_RealUI/AddOns/Addon.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
local _, mods = ...
2+
3+
mods["Blizzard_MovePad"] = function(F, C)
4+
--print("HELLO Blizzard_MovePad!!!", F, C)
5+
end

!Aurora_RealUI/AddOns/Bartender4.lua

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
local nibRealUI = LibStub("AceAddon-3.0"):GetAddon("nibRealUI")
2+
local ndb
3+
4+
local MODNAME = "SkinBar4"
5+
local SkinBar4 = nibRealUI:NewModule(MODNAME, "AceEvent-3.0", "AceTimer-3.0")
6+
7+
local textures = {
8+
vehicle = {
9+
normal = [[Interface\AddOns\nibRealUI\Media\Icons\vehicle_leave_up]],
10+
pushed = [[Interface\AddOns\nibRealUI\Media\Icons\vehicle_leave_down]],
11+
},
12+
}
13+
14+
function SkinBar4:Skin()
15+
MainMenuBarVehicleLeaveButton:SetNormalTexture(textures.vehicle.normal)
16+
MainMenuBarVehicleLeaveButton:SetPushedTexture(textures.vehicle.pushed)
17+
nibRealUI:CreateBD(MainMenuBarVehicleLeaveButton)
18+
19+
-- Extra Action Button
20+
if ExtraActionBarFrame then
21+
ExtraActionBarFrame.button.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
22+
ExtraActionBarFrame.button.style:SetAlpha(0)
23+
nibRealUI:CreateBDFrame(ExtraActionBarFrame.button)
24+
ExtraActionBarFrame:HookScript("OnShow", function()
25+
ExtraActionBarFrame.button.style:SetAlpha(0)
26+
end)
27+
end
28+
end
29+
30+
function SkinBar4:OnInitialize()
31+
ndb = nibRealUI.db.profile
32+
33+
self:SetEnabledState(nibRealUI:GetModuleEnabled(MODNAME))
34+
nibRealUI:RegisterSkin(MODNAME, "Bartender4")
35+
end
36+
37+
function SkinBar4:OnEnable()
38+
if Bartender4 then
39+
self:Skin()
40+
end
41+
end
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
local _, mods = ...
2+
3+
mods["Blizzard_DebugTools"] = function(F, C)
4+
--print("HELLO Blizzard_DebugTools!!!", F, C)
5+
-- EventTrace
6+
for i = 1, EventTraceFrame:GetNumRegions() do
7+
local region = select(i, EventTraceFrame:GetRegions())
8+
if region:GetObjectType() == "Texture" then
9+
region:SetTexture(nil)
10+
end
11+
end
12+
EventTraceFrame:SetHeight(600)
13+
--EventTraceFrameScroll:Hide()
14+
F.CreateBD(EventTraceFrame)
15+
16+
EventTraceFrameScrollBG:Hide()
17+
local thumb = EventTraceFrameScroll.thumb
18+
thumb:SetAlpha(0)
19+
thumb:SetWidth(17)
20+
thumb.bg = CreateFrame("Frame", nil, EventTraceFrameScroll)
21+
thumb.bg:SetPoint("TOPLEFT", thumb, 0, 0)
22+
thumb.bg:SetPoint("BOTTOMRIGHT", thumb, 0, 0)
23+
F.CreateBD(thumb.bg, 0)
24+
thumb.tex = F.CreateGradient(thumb.bg)
25+
thumb.tex:SetPoint("TOPLEFT", thumb.bg, 1, -1)
26+
thumb.tex:SetPoint("BOTTOMRIGHT", thumb.bg, -1, 1)
27+
28+
F.ReskinClose(EventTraceFrameCloseButton)
29+
end

0 commit comments

Comments
 (0)