These forums are in read-only mode. Please see this news post for more information.

New forums can be found here


Go Back   WowAce Forums > Official Addon Threads > General AddOns
General AddOns Authors, post your release ready addons here to get feedback or just to let everyone know about it.

Reply
 
Thread Tools
Old 01-04-2015   #51
elchefe
Member
 
Join Date: Mar 2007
Posts: 21
Default Re: Gnosis Castbars - Official Thread

Quote:
Originally Posted by RyanLikesBeer View Post
Is it possible to handle multiple cooldown timers in one and block? I'm trying to setup a timer for a trinket and a spell cooldown. Here's my code:

and not itemcd : Shards of Nothing and not cd : Shadowfiend
... fixed sbcol="0,0,1" : Shadowfiend
and not itemcd : Shards of Nothing
... fixed sbcol="0,1,0" : Shards of Nothing
and not cd : Shadowfiend
... fixed sbcol="0,1,0" Shadowfiend
itemcd : Shards of Nothing
cd : Shadowfiend
sort : minrem

Ideally, this would show me a blue Shadowfiend icon if both are up, green Shards of Nothing if my trinket is up, green Shadowfiend if Shadowfiend is up, or whichever cooldown is lower.

Thanks!
This is not possible, Gnosis cannot sort non duration timers (fixed).

Also, you have to split line 1 into two lines. (I'm also using the syntax for and/or coming with Gnosis 4.40/the current alpha, though Gnosis remains backwards compatible).

not itemcd : Shards of Nothing
& not cd : Shadowfiend
& fixed sbcol="0,0,1" : Shadowfiend
elchefe is offline   Reply With Quote
Old 01-05-2015   #52
elchefe
Member
 
Join Date: Mar 2007
Posts: 21
Default Re: Gnosis Castbars - Official Thread

Quote:
Originally Posted by elchefe View Post
This is not possible, Gnosis cannot sort non duration timers (fixed).

Also, you have to split line 1 into two lines. (I'm also using the syntax for and/or coming with Gnosis 4.40/the current alpha, though Gnosis remains backwards compatible).

not itemcd : Shards of Nothing
& not cd : Shadowfiend
& fixed sbcol="0,0,1" : Shadowfiend
Well, turns out I was wrong. You can do this with Gnosis, but this is a two bar solution.

1. create the first bar (I called it 001test) and add your (slightly improved) configuration; to hide any text you can always override the name format string (nfs="")

not itemcd : Shards of Nothing
& not cd sbcol="0,0,1" : Shadowfiend
not itemcd sbcol="0,1,0" : Shards of Nothing
not cd sbcol="0,1,0" : Shadowfiend

2. create a second bar (probably with copy castbar, to get an equal copy of 001test), I called it 002test (but this does not matter at all) and add following config

itemcd hidden="001test" : Shards of Nothing
cd hidden="001test" : Shadowfiend
sort : minrem

3. success!
elchefe is offline   Reply With Quote
Old 01-06-2015   #53
RyanLikesBeer
Newbie
 
Join Date: Nov 2014
Posts: 2
Default Re: Gnosis Castbars - Official Thread

Awesome, thanks for the help. I'll give it a try tonight in my raid!
RyanLikesBeer is offline   Reply With Quote
Old 02-05-2015   #54
maven1979
Newbie
 
Join Date: May 2010
Posts: 3
Default Re: Gnosis Castbars - Official Thread

What are the frame names for the cast bars? A mouseover script showed "Player.bar" for the player castbar, but I assumed there was something more appropriate. Also Player.bar did not exist when I tried to access it with another addon (trying to frame it visually) and only through a /script command after the game was in use.

Thanks
maven1979 is offline   Reply With Quote
Old 02-15-2015   #55
elchefe
Member
 
Join Date: Mar 2007
Posts: 21
Default Re: Gnosis Castbars - Official Thread

Quote:
Originally Posted by maven1979 View Post
What are the frame names for the cast bars? A mouseover script showed "Player.bar" for the player castbar, but I assumed there was something more appropriate. Also Player.bar did not exist when I tried to access it with another addon (trying to frame it visually) and only through a /script command after the game was in use.

Thanks
All frame names match the Gnosis bar name (i.e. "Player" castbar uses frame "Player").

The script "/script print(GetMouseFocus():GetName())" prints out the correct name while hovering your mouse over any frame.
elchefe is offline   Reply With Quote
Old 02-16-2015   #56
Phanx
Seal Cub Clubbing Club
 
Phanx's Avatar
 
Join Date: May 2005
Posts: 8,483
Default Re: Gnosis Castbars - Official Thread

Quote:
Originally Posted by elchefe View Post
All frame names match the Gnosis bar name (i.e. "Player" castbar uses frame "Player").
That's quite possibly the worst global frame name you could use...
__________________
Author/maintainer of Grid, PhanxChat, and many more. | PM me on CurseForge
Troubleshoot an addon | Turn any code into an addon | More addon resources
Need help with your code? Attach or paste your whole, real files.
Please don't PM me about addon bugs, requests, or code help. Post a comment, ticket, or thread instead!
Phanx is offline   Reply With Quote
Old 02-25-2015   #57
elchefe
Member
 
Join Date: Mar 2007
Posts: 21
Default Re: Gnosis Castbars - Official Thread

Quote:
Originally Posted by Phanx View Post
That's quite possibly the worst global frame name you could use...
Naming is still totally up to the user.

Sure, I should have prefixed all (user supplied) frame names when I initially wrote the addon. But I didn't. Since I haven't heard of any problems due to 'bad' bar naming in all those years, I just won't break compatibly for users who actually use the current frame names in any way.

In the end, as long as it is not a real problem, I really don't care.
elchefe is offline   Reply With Quote
Old 02-26-2015   #58
Phanx
Seal Cub Clubbing Club
 
Phanx's Avatar
 
Join Date: May 2005
Posts: 8,483
Default Re: Gnosis Castbars - Official Thread

Quote:
Originally Posted by elchefe View Post
In the end, as long as it is not a real problem, I really don't care.
Hey, I ate today, so who cares about starving third-world children, amirite?
__________________
Author/maintainer of Grid, PhanxChat, and many more. | PM me on CurseForge
Troubleshoot an addon | Turn any code into an addon | More addon resources
Need help with your code? Attach or paste your whole, real files.
Please don't PM me about addon bugs, requests, or code help. Post a comment, ticket, or thread instead!
Phanx is offline   Reply With Quote
Old 08-24-2016   #59
Addy24
Newbie
 
Join Date: Jan 2009
Posts: 1
Default Re: Gnosis Castbars - Official Thread

I am trying to figure out how to add a custom debuff bar.. I am not doing it right because it is not showing up.

starting small I want a Rupture timer/bar whatever to show how much time is left on my target.. and optionally if it is not on my target have it show a warning text to cast it.

So I have my Target I cast Rupture
Track the time left of Rupture on the target
If Rupture is not on the target have it either just display the Rupture icon or some text "ie Cast Rupture" also optionally have it highlight when Rupter can be cast (have enough energy)

What I did was create a new bar called
Rupture

Changed the bar type to
Multi-Spell Timer

Unit
I tried both Player and Target

Hide castbar / nothing changed [tried enable whiltelist]
under black-whitelist spells or timer I have
debuff*mine*unit=target*:*Rupture

nothing is showing up in the bar.. what am I doing wrong?
Thanks
Addy24 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Forum Jump


All times are GMT. The time now is 08:18 PM.