Thread Tools Display Modes
10-14-10, 01:41 AM   #1
Sabaren
A Kobold Labourer
Join Date: Nov 2008
Posts: 1
EclipseBar

???

I'm not quite sure how to implement this into my layout. I understand the totem/shard/etc bars need to be iterated for each element, but Eclipse I would think would be one continuous bar, and would be treated similar to Power. Either way, I can't get anything coherent to display with my druid.
  Reply With Quote
10-14-10, 03:01 AM   #2
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
you should take a look at http://github.com/Evilpaul/oUF_EP/bl...UF_EP.lua#L516
  Reply With Quote
10-14-10, 03:16 AM   #3
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Note that the eclipsebar implementation in oUF could do with some tidying up. What is there works fine and the post action functions should provide some customisation options.

If anyone has any ideas for improvements, then please post here or add an issue to the oUF issue tracker over on GitHub.

thanks
  Reply With Quote
10-15-10, 06:08 AM   #4
azsh
A Fallenroot Satyr
Join Date: May 2010
Posts: 21
hello. I think the module ecalips contains errors. After logging displays two long bars (150 each) later after cast wrath this bar is reduced to 150 (as if they overlap and intersect), and then it comes good but bad displaying percent:
100 lunar displays as 100%
50 lunar displays as 0%
1 lunar displays as 99%
1 solar displays as 99%
50 solar displays as 0%
100 solar displays as 100%

throughout the rotation of two eclipse displays 4 times 100% !?!?!

screens:
after login game:
http://yfrog.com/04wowscrnshot101510140237j
Lunar eclipse:
http://yfrog.com/j2wowscrnshot101510134310j

http://yfrog.com/mhwowscrnshot101510135242j

0% in middle lunar eclipse ?
http://yfrog.com/jcwowscrnshot101510135308j
still lunar eclipse an 20% ?
http://yfrog.com/5rwowscrnshot101510135316j
  Reply With Quote
10-15-10, 06:16 AM   #5
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
The code you add to your layout to support the eclipsebar element is very sensitive, and if there is a slight error it can all go a bit....weird. This is definitely something I want to improve, but until then can you post your layout code?
  Reply With Quote
10-15-10, 06:30 AM   #6
azsh
A Fallenroot Satyr
Join Date: May 2010
Posts: 21
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?
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » EclipseBar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off