Code:
if playerClass == "DRUID" then
local eclipseBar = CreateFrame('Frame', nil, self)
eclipseBar:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, 100)
eclipseBar:SetSize(150, 12)
eclipseBar:SetBackdrop(backdrop)
eclipseBar:SetBackdropColor(0, 0, 0)
local lunarBar = CreateFrame('StatusBar', nil, eclipseBar)
lunarBar:SetPoint('LEFT', eclipseBar, 'LEFT', 0, 0)
lunarBar:SetSize(150, 12)
lunarBar:SetStatusBarTexture(cfg.HPtex)
lunarBar:SetStatusBarColor(0, 0, 1)
eclipseBar.LunarBar = lunarBar
local solarBar = CreateFrame('StatusBar', nil, eclipseBar)
solarBar:SetPoint('LEFT', lunarBar:GetStatusBarTexture(), 'RIGHT', 0, 10)
solarBar:SetSize(150, 12)
solarBar:SetStatusBarTexture(cfg.HPtex)
solarBar:SetStatusBarColor(1, 3/5, 0)
eclipseBar.SolarBar = solarBar
local eclipseBarText = solarBar:CreateFontString(nil, 'OVERLAY')
eclipseBarText:SetPoint('CENTER', eclipseBar, 'CENTER', 0, 0)
eclipseBarText:SetFont(cfg.NumbFont, cfg.NumbFS, "THINOUTLINE")
self:Tag(eclipseBarText, '[pereclipse]%')
self.EclipseBar = eclipseBar
end
I know the solar bar is higher because I wanted the differences were more apparent. I think instead of the percentages should be displayed points from 0 - 100 and in addition, should be option to the separation of these bars as it is on a first screen for those whose idea of overlaping does not like it and last thing is there any possibility to ends of bars to add icons of the sun and moon?