Quantcast BT4 Smooth bar fading. - WoWInterface
Thread Tools Display Modes
06-14-17, 11:01 AM   #1
Noxley
A Murloc Raider
Join Date: Apr 2017
Posts: 7
BT4 Smooth bar fading.

Hello,

Is there an option to smoothly fade in and out the bars of Bartender4? I tried: fade and show. But they both just instantly pop in and out the bar. Lets say I want the bars to fade in and out over a second from 0% opacity to 100%. Anyway to achieve this?

Thanks in advance!

- Nox
  Reply With Quote
06-22-17, 06:41 AM   #2
Noxley
A Murloc Raider
Join Date: Apr 2017
Posts: 7
Is there anyone with a solution for this?
  Reply With Quote
06-22-17, 12:16 PM   #3
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,285
Check the Bartender4 page over on WoWAce. That would be the Custom State Header page.

Bartender4

Just click the link. It's already set up for the correct page.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.

Last edited by jeffy162 : 06-22-17 at 12:19 PM.
  Reply With Quote
06-23-17, 03:55 AM   #4
Noxley
A Murloc Raider
Join Date: Apr 2017
Posts: 7
Thank you!
  Reply With Quote
06-23-17, 06:21 AM   #5
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,285
You're welcome.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
  Reply With Quote
07-01-17, 07:14 AM   #6
Noxley
A Murloc Raider
Join Date: Apr 2017
Posts: 7
I suppose there is no way to smoothly fade out, only to have it instantly show and hide.. Too bad
  Reply With Quote
07-01-17, 08:10 AM   #7
briskman3000
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 74
I'm not sure how it would be supported directly within the addon, but I would think adding some sort of OnUpdate function that is triggered by whatever event you are looking for to change the opacity a couple of times over whatever timeframe you want.

In theory, in my head at least, this could produce some sort "smooth-ish" fade.


Something Like this would increase the opacity by 20% every .2 seconds.

The variables below are generic and do not directly apply to bartender.

Lua Code:
  1. local throttle = 0.2
  2. local counter = 0
  3. local timer = 0
  4.  
  5. local function OnUpdate(self, elapsed)
  6.     local opacity  
  7.     counter = counter + elapsed
  8.     timer = timer + elapsed
  9.     if counter >=throttle then
  10.         counter = 0
  11.         opacity = opacity + 0.2
  12.     end
  13. end

Last edited by briskman3000 : 07-01-17 at 08:19 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » BT4 Smooth bar fading.

Thread Tools
Display Modes

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