Not every single addon will place something in the Interface options as it's something an author would have to code support for.
Anyways if your going to skin skada from a secondary addon and not modify skada itself you need to check fr Skada ADDON_LOADED event (or for when the addon itself loads as !Beautycase will load before skada)
Code:
local f = CreateFrame('Frame')
f:RegisterEvent('VARIABLES_LOADED')
f:RegisterEvent('ADDON_LOADED')
f:RegisterEvent('PLAYER_ENTERING_WORLD')
f:SetScript('OnEvent', function(self)
if (IsAddOnLoaded('Skada')) then
--Call your !Beautycase functions here
end
end)
Personally I used this to skin skada though I have never tried it with multiple windows.
Code:
local f = CreateFrame('Frame')
f:RegisterEvent('VARIABLES_LOADED')
f:RegisterEvent('ADDON_LOADED')
f:RegisterEvent('PLAYER_ENTERING_WORLD')
f:SetScript('OnEvent', function(self)
if (IsAddOnLoaded('Skada')) then
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)
Also just a tip you don't need to call every single !Beautycase function, just the ones you use so all you need is this (based on your current script in the OP)
Code:
SkadaBarWindowHeal:CreateBeautyBorder(1)
SkadaBarWindowHeal:SetBeautyBorderSize(1)
SkadaBarWindowHeal:SetBeautyBorderPadding(1)
SkadaBarWindowHeal:SetBeautyBorderColor(.6, .6, .6)
SkadaBarWindowHeal:SetBeautyShadowColor(.6, .6, .6)