Download
(154Kb)
Download
Updated: 07-24-18 10:57 AM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:07-24-18 10:57 AM
Created:08-06-14 02:42 PM
Downloads:4,340
Favorites:26
MD5:

rCompassCastbar

Version: 800.20180724
by: zork [More]


Info

A circular cursor castbar based on a compass rose.
GCD
As of 800.20180724 the addon supports GCD!
Features
- Ring animation via ScrollFrame technique
- Spark
- BlendModes
- Define your own color
- Multiple unitIds trackable
- Track the GCD
Textures
The addon uses 3 textures.
  • Background
  • Ring
  • Spark

GIT
https://github.com/zorker/rothui/tre...CompassCastbar

Optional Files (0)


Post A Reply Comment Options
Unread 08-06-14, 04:06 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Yellow color setup
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-06-14 at 04:46 PM.
Report comment to moderator  
Reply With Quote
Unread 08-06-14, 04:38 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Castbar can now be spawned per unit.

https://code.google.com/p/rothui/sou...assCastbar.lua

Options for target and focus added.

__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-06-14 at 04:46 PM.
Report comment to moderator  
Reply With Quote
Unread 08-07-14, 04:08 AM  
Imithat
A Fallenroot Satyr
 
Imithat's Avatar
AddOn Author - Click to view AddOns

Forum posts: 27
File comments: 201
Uploads: 7
This is so great! Thanks for this.
Report comment to moderator  
Reply With Quote
Unread 08-08-14, 10:54 AM  
vlakarados
An Aku'mai Servant
 
vlakarados's Avatar
AddOn Author - Click to view AddOns

Forum posts: 36
File comments: 145
Uploads: 5
Looks really nice, can it be tied to mouse position? For healers hovering grid this would be awesome
Report comment to moderator  
Reply With Quote
Unread 08-08-14, 12:54 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
It is a cursor castbar already. Thus it is where ever you move your cursor.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-08-14 at 12:55 PM.
Report comment to moderator  
Reply With Quote
Unread 08-09-14, 12:25 PM  
ginnypinny
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Colors

I love the look of this compared to cursor_castbar, but im not very lua. savy (like, know nothing). I was wondering how you change it to blue.

Thanks so much
Report comment to moderator  
Reply With Quote
Unread 08-09-14, 01:33 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Re: Colors

@ginnypinny
Well assume you want to make the player castbar blue. Open the rCompassCastbar.lua with Notepad++.

Find this:
Lua Code:
  1. cfg["player"].sparkcolor      = {1,1,1}
  2.   cfg["player"].bgcolor         = {0.5,0.4,0,1}
  3.   cfg["player"].ringcolor       = {1,0.8,0,1}

The colors are defined in RGBA. Means red, green, blue and alpha ranging from 0-1. Alpha is for opacity only.
Since you want blue just change the color to sth like this:

Lua Code:
  1. cfg["player"].sparkcolor      = { 1, 1, 1, 1 } -- R, G, B, A
  2.   cfg["player"].bgcolor         = { 0, 0.4, 0.6, 1 } -- R, G, B, A
  3.   cfg["player"].ringcolor       = { 0, 0.6, 1, 1 } -- R, G, B, A

I would keep the alpha value at 1. The focus bar config should have a working blue bar example aswell.

If you are done editing save the file and type in /reload while in the game. Cast a new spell and check for the outcome.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-09-14 at 01:56 PM.
Report comment to moderator  
Reply With Quote
Unread 08-12-14, 05:00 AM  
Catelinelol
A Kobold Labourer

Forum posts: 1
File comments: 34
Uploads: 0
Hey Rothar,

ist es eventuell möglich das du die Texturen in weiß anstelle von grau hinzufügen könntest ?
die abstimmung der Farben aufs UI würde dann ein wenig besser gehn

anbei geiles Addon!
Report comment to moderator  
Reply With Quote
Unread 08-12-14, 08:08 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-12-14 at 08:14 AM.
Report comment to moderator  
Reply With Quote
Unread 08-12-14, 08:19 AM  
Catelinelol
A Kobold Labourer

Forum posts: 1
File comments: 34
Uploads: 0
dankeschön =)
Report comment to moderator  
Reply With Quote
Unread 08-19-14, 04:13 AM  
Pryst
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Fixed Position

Great addon, appreciate all your efforts.

Is there a way to fix the position so it isn't linked to the cursor and I can just position it where I want and it doesn't move?
Report comment to moderator  
Reply With Quote
Unread 08-19-14, 06:50 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Re: Fixed Position

Sure. Download Notepad++ or any editor you like. Open the rCompassCastbar.lua.

Find this https://code.google.com/p/rothui/sou...astbar.lua#133 and change it to:
Lua Code:
  1. --self:SetPoint("BOTTOMLEFT",self.x,self.y)

Next.

Find this line https://code.google.com/p/rothui/sou...astbar.lua#174 and change to:
Lua Code:
  1. f:SetPoint(unpack(cfg.point))

Last part you need to add your desired point to the config.

Example for the player config. Add this:
Lua Code:
  1. cfg["player"].point = {"CENTER",UIParent,"CENTER",0,0}

Adjust the point to whatever you like by changing 0 to whatever number you need. http://wowprogramming.com/docs/widgets/Region/SetPoint
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-19-14 at 06:54 AM.
Report comment to moderator  
Reply With Quote
Unread 08-30-14, 07:46 AM  
Pryst
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
I'm still having trouble with the positioning of the ring.

I have managed to change the colour ok, but the frame is set to the bottom left hand corner of the screen/Worldframe and no matter what I change the 0 too, it remains in the bottom left hand corner. This is my player settings in the LUA:

Code:
  --player settings
  cfg["player"] = {}
  cfg["player"].enable          = true
  cfg["player"].scale           = 0.2
  cfg["player"].sparkcolor      = {1,1,1}
  cfg["player"].bgcolor         = {0.5,0.4,0,1}
  cfg["player"].ringcolor       = {0,0.2,0.8,4}
  cfg["player"].bgblendmode     = "ADD" --"ADD" or "BLEND"
  cfg["player"].ringblendmode   = "ADD" --"ADD" or "BLEND"
  cfg["player"].sparkblendmode  = "ADD" --"ADD" or "BLEND"
  cfg["player"].point = {"CENTER",UIParent,"CENTER",0,0}
I know I need to include this somewhere (if I want to have the ring in the centre of the screen), but I dont know where I put it within the LUA, or which line to change:

Code:
frame:SetPoint("BOTTOM", WorldFrame, "CENTER", 0, -10)
Report comment to moderator  
Reply With Quote
Unread 08-30-14, 12:36 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Aeh. I will do you a favour an upload a version with an optional point that will force the castbar to stay at a specific point.

*edit*

50400.06 is on the way. All you have to do is to enable the point variable in the config. Do not edit code below the config!

On line 31 in the file you will find
Lua Code:
  1. --cfg["player"].point           = {"CENTER",0,0}
Make that
Lua Code:
  1. cfg["player"].point           = {"CENTER",0,0}
The first 0 is your x-coordinate. The second is y. Negative values are possible.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 08-30-14 at 12:54 PM.
Report comment to moderator  
Reply With Quote
Unread 08-30-14, 01:35 PM  
Pryst
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Works like a charm, thanks muchly!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: