Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(154 Kb)
Download
Updated: 08-30-14 12:51 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:08-30-14 12:51 PM
Created:08-06-14 02:42 PM
Downloads:390
Favorites:14
MD5:

rCompassCastbar

Version: 50400.06
by: zork [More]


Info

A circular cursor castbar based on a compass rose.
Features
- Ring animation via ScrollFrame technique
- Spark
- BlendModes
- Define your own color
- Multiple unitIds trackable
Config
A small config is at the top of the rCompassCastbar.lua.
Lua Code:
  1. --player settings
  2.   cfg["player"] = {}
  3.   cfg["player"].enable          = true
  4.   cfg["player"].scale           = 0.2
  5.   cfg["player"].sparkcolor      = {1,1,1,1} --red, green, blue, alpha
  6.   cfg["player"].bgcolor         = {0.5,0.4,0,1} --red, green, blue, alpha
  7.   cfg["player"].ringcolor       = {1,0.8,0,1} --red, green, blue, alpha
  8.   cfg["player"].bgblendmode     = "ADD" --"ADD" or "BLEND"
  9.   cfg["player"].ringblendmode   = "ADD" --"ADD" or "BLEND"
  10.   cfg["player"].sparkblendmode  = "ADD" --"ADD" or "BLEND"
Textures
The addon uses 3 textures.
  • Background
  • Ring
  • Spark

SVN
http://code.google.com/p/rothui/sour...ompassCastbar/

50400.06
- added brighter texture examples
- added optional latency display for player castbar
- added optional fixed SetPoint for castbars

50400.05
- fixed missing updates for when changing a pet/focus/target unit while casting/not casting

50400.04
- applied the fps fix for when repositioning visible frames
- added pet config
- code cleanup

50400.03
- added optional castbars for target and focus

50400.02
- fixed the castbar timer when a spell is delayed

50400.01
- initial release
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Author
Date
50400.05
84kB
zork
08-08-14 12:35 PM
50400.04
84kB
zork
08-07-14 10:17 AM
50400.03
83kB
zork
08-06-14 03:13 PM
50400.01
83kB
zork
08-06-14 02:42 PM


Post A Reply Comment Options
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!
Pryst is offline 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: 1391
File comments: 3367
Uploads: 89
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.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline 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)
Pryst is offline 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: 1391
File comments: 3367
Uploads: 89
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.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline 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?
Pryst is offline 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 =)
Catelinelol is offline 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: 1391
File comments: 3367
Uploads: 89
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline 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!
Catelinelol is offline 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: 1391
File comments: 3367
Uploads: 89
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.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline 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
ginnypinny is offline 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: 1391
File comments: 3367
Uploads: 89
It is a cursor castbar already. Thus it is where ever you move your cursor.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline 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: 34
File comments: 136
Uploads: 6
Looks really nice, can it be tied to mouse position? For healers hovering grid this would be awesome
vlakarados is offline 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: 22
File comments: 181
Uploads: 7
This is so great! Thanks for this.
Imithat is offline 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: 1391
File comments: 3367
Uploads: 89
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.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline Report comment to moderator  
Reply With Quote
Unread 08-06-14, 04:06 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1391
File comments: 3367
Uploads: 89
Yellow color setup
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: