Download
(16 Kb)
Download
Updated: 10-18-12 07:16 PM
Pictures
File Info
Updated:10-18-12 07:16 PM
Created:10-03-11 04:59 PM
Downloads:3,225
Favorites:12
MD5:
Cursor Target Info v1.9.2
Version: 1.9.2
by: adracamas [More]
A simple add-on that adds a target info just to the right of your mouse cursor.
Tracks their Health, Mana, Power, Energy and how many Combo Points you have on them.

----------------------

1.5.0 :
It work's out of the box. No configuration yet. I'll be working on adding expanding health/mana bars and such soon. (hopefully)


1.5.1 :
Added adjusting bars to make it more 'pretty'. A little cleaner looking.

1.5.2 :
Added a little icon to the Upper-Right corner of the screen. Click it and an option pane will become visible. That pane will let you adjust the offset of the Info from the Mouse Cursor. Nothing fancy.

1.5.3 :
Made the range on the sliders from (-200 ~ 200 ) instead of (0 ~ 200) just in-case you want to place the info to the left or over the cursor.
Added some code to isolate if your player is a Rogue or Warrior and hide the combo points block.
Also added code to isolate if the target is an NPC. If so then Mana and Energy are irrelevant.
Finally added code to evaluate if the target uses mana or energy. If not then it removes what isn't used from the bars and bumps them so they stay tidy.

I have plans on incorporating class icons and hopefully their roles (helpful in PvP)

1.5.4 :
Realized right after I uploaded the last version that I forgot to add in a % block. Remedied that.

1.5.5 :
On a request the Target Info no longer shows if you have no target. I'll add it constantly showing to the options (especially when I learn how to save and load the options XD )

1.5.6 :
Added the option to display info from a mouse over instead of target info. You can find this option in the options pane. (still can't save yet though)

1.5.7 :
It can Save Now!

1.5.8 :
Did some housekeeping on the options window. Added the ability to adjust the frequency of the updates to the Info Block. (On full speed/1ms delay it eats on my machine about 1.8% CPU, reigned back to about 250ms it cuts the CPU usage down to about 0.7%. Thought that was important enough to give everyone their own delay)

1.5.9 :
I was planning on taking the day off from programming today (Sunday thing) but someone pointed out an error that I completely overlooked. I have fixed the "Error on Mouse Over with someone Offline". Nothing big and special this fix.

1.5.10 :
Good handful of tiny things. Got the groundwork laid out for a 2nd page for the options menu. Altered the icon for the Options frame in the upper right. Added "Class Colors" as per request. Also added Number reduction to bars as per request (1,500 health should show as 1.5K, 1,000,000 as 1M). Thank you DaemonSambe for your input. It is greatly appreciated.

1.5.11 :
Added a Level Number and color coordinated background to the text-box (white for no gains, red for watch out), attached to the right of the Name box. Also added a Raid Token number to the Upper right side of the Name bar. Customizeability will be forthcoming in time. Let me hammer out all the additions before I work on the options more.

1.5.12 :
Cosmetic changes here and there to the info panel. I think there was something else I fixed.. but can't remember exactly what it was. Oh yeah.. it was the Boss Level error. XD

1.5.13 :
I'm sorry if I sound idiotic.. very tired. Added the option to have specifics of the target display show or not. Um.. I think that's about it this time.

1.5.14 :
Now there is a little icon that will show the Role of your target. I was hoping it would show the opposite factions role but apparently that info is not available. None the less, it should hopefully be useful. Option to shut it off is in the 2nd pane.

1.5.15 :
Hopefully kicked that goof error in the butt. You shouldn't throw errors for d/c or loading people (nil info check)

1.5.16 :
Apparently my fix before only fixed when using MouseOver's. I believe I have properly fixed it now. Thanks skyvahaerie for bringing this to me. I wouldn't have known without your assistance.

1.5.17 :
Added another option to the 2nd page of the options. "Only Visible while in Combat" thanks to a spectacular request from LemurGuy. Thanks bud. (Hopefully this re-up works... I left a debugging print on -.- )

1.5.18 :
Oakayam, Your wish has been granted. Scaling can be found on Panel 2 of the Options menu. Shorrrt, Thank you for the screen shot. That helped a lot. Should be good now but let me know if it pops up somewhere again.

1.5.19 :
Okay, Made cosmetic adjustments. Everything seems to scale well now. I THINK that the OL/Loading char thing is either done or close to done. (I feel horrible because I really can't seem to replicate it :/ ) None the less, thank you for your patience. This is my first coded addon (that I wasn't simply just modifying the code for) and yeah, it's a jumbled mess.

1.6.1 :
Welcome to the new content! Sorry for the wait, and thank you Ytek for PM'ing me. I have been out of the loop for a while with life in general. I believe the most peculiar lines of code that were throwing the errors are corrected. PM me if something else pops up, preferably with a snapshot so I have an idea of where to look for the errors.

1.9.0 :
Hey guys. Sorry for the long overdue update. This should patch you up good. Sorry to make you wait. Miss you guys and much love.

1.9.1 :
Nothing really earth shattering unless you were annoyed at the name being cut short.

1.9.2 :
Added a distance meter. Thought it might be useful.
Optional Files (0)


Archived Files (23)
File Name
Version
Size
Author
Date
1.9.1
16kB
adracamas
10-17-12 06:43 PM
1.9.0
16kB
adracamas
09-19-12 08:21 PM
1.6.1
16kB
adracamas
11-17-11 01:47 PM
1.5.19
17kB
adracamas
11-08-11 09:46 PM
1.5.18
16kB
adracamas
11-08-11 02:43 PM
1.5.17
16kB
adracamas
11-06-11 08:08 PM
1.5.17
16kB
adracamas
11-06-11 06:36 PM
1.5.16
16kB
adracamas
11-05-11 07:49 PM
1.5.15
16kB
adracamas
10-15-11 08:36 AM
1.5.14
16kB
adracamas
10-14-11 09:18 PM
1.5.13
10kB
adracamas
10-13-11 10:46 PM
1.5.12
9kB
adracamas
10-13-11 06:06 AM
1.5.11
9kB
adracamas
10-12-11 09:47 PM
1.5.10
9kB
adracamas
10-12-11 08:14 PM
1.5.9
6kB
adracamas
10-09-11 08:47 PM
1.5.8
6kB
adracamas
10-08-11 08:56 PM
1.5.7
6kB
adracamas
10-08-11 01:47 PM
1.5.6
6kB
adracamas
10-08-11 09:41 AM
1.5.5
5kB
adracamas
10-07-11 05:39 PM
1.5.4
5kB
adracamas
10-05-11 08:09 AM
1.5.2
5kB
adracamas
10-04-11 08:58 PM
1.5.1
3kB
adracamas
10-03-11 09:31 PM
1.5.0
2kB
adracamas
10-03-11 04:59 PM


Post A Reply Comment Options
Unread 10-06-11, 12:47 PM  
Rustycage
Claw of Regulos
 
Rustycage's Avatar

Forum posts: 20
File comments: 150
Uploads: 0
I like this!

This is an awesome concept, and I hope later you'll make it so that when you have no target it's not there at all, instead of how it currently is and says there is no target.
Rustycage is offline Report comment to moderator  
Reply With Quote
Unread 10-07-11, 05:19 PM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
On it. Thanks for posting. I can only make it better if I know what people want.
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-07-11, 06:57 PM  
Kerosive

Forum posts: 0
File comments: 4
Uploads: 0
Quote:
Originally posted by adracamas
On it. Thanks for posting. I can only make it better if I know what people want.
Is it possible to add an option for a focus target or even a mouse over? I see this as a great add-on but personally I would rather have it as a mouse over type thing. Originally I thought that's what it would be and immediately downloaded it.
Kerosive is offline Report comment to moderator  
Reply With Quote
Unread 10-07-11, 09:42 PM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
Quote:
Originally posted by Kerosive
Is it possible to add an option for a focus target or even a mouse over? I see this as a great add-on but personally I would rather have it as a mouse over type thing. Originally I thought that's what it would be and immediately downloaded it.
I'll look into that also.. It all will be kinda irritating until I learn how to save the options and load them instead of you having to configure every time. Still new to making addon's
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-08-11, 09:43 AM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
Quote:
Originally posted by adracamas
I'll look into that also.. It all will be kinda irritating until I learn how to save the options and load them instead of you having to configure every time. Still new to making addon's
Done. Hopefully it works good for ya.
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-08-11, 11:09 AM  
Kerosive

Forum posts: 0
File comments: 4
Uploads: 0
This is great, thanks a bunch for the work on this.
Kerosive is offline Report comment to moderator  
Reply With Quote
Unread 10-08-11, 01:48 PM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
She can save now! Huzzah! (just make sure you let me know of any issues you find)
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-08-11, 04:07 PM  
DaemonSambe
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 30
Uploads: 1
With the mousover information now, this is pretty nice.
Couple things:
1. Options to remove any or all of the bars and associated text.
2. Add level to the name tag.
3. Add raidmark, maybe center top.
4. When creating the cti.target.hpbar frame, bind it to cti.target, and hpbar:SetLayer(-1) - it will allow the text to show thru at full opacity, but it places the colored portion of the hpbar behind the alpha portion, thereby darkening the color. I think you need another frame for the text to sit ontop of the colored bar, and the alpha back.
5. Class colored names -
Code:
ClassColors = {
	["cleric"] =  {0.0, 1.0, 0.5, 1.0},
	["mage"] = 	  {1.0, 0.0, 1.0, 1.0},
	["rogue"] =   {1.0, 1.0, 0.0, 1.0},
	["warrior"] = {1.0, 0.0, 0.0, 1.0},
	["none"] =	  {1.0, 1.0, 1.0, 1.0},		
}
local function nameColor(details)
	if not details then 
		return { 1,1,0,1 }
	end
	if details.player then
		return ClassColors[details.calling]
	elseif details.relation == "friendly" then
		return { 0, 1, 0, 1}
	elseif details.relation == "hostile" then
		return { 1, 0, 0, 1}
	else
		return { 1, 1, 0, 1}
	end
end
6. Short values for hp/mp -
Code:
local function valShort(num)
	local val = tonumber(num)
	if val >= 10000000 then 
        return string.format( "%.1f m", val / 1000000 ) 
    elseif val >= 1000000 then
        return string.format( "%.2f m", val / 1000000 ) 
    elseif val >= 100000 then
        return string.format( "%.0f k", val / 1000 ) 
    elseif val >= 10000 then
        return string.format( "%.1f k", val / 1000 ) 
    else
        return val
    end
end
7. Level Color -
Code:
local function levelColor( level, playerLevel )
    if type(level)=="string" or level>playerLevel+4 then -- Red
        return { 0.75,0,0 }
    elseif level>playerLevel+2 then -- Orange
        return { 0.75,0.75/2,0 }
    elseif playerLevel+2>=level and level>=playerLevel-2 then -- Yellow
        return { 0.75,0.75,0 }
    else -- Green
        if playerLevel<=9 and level>=playerLevel-4 then
            return { 0,0.75,0 }
        elseif playerLevel<=19 and level>=playerLevel-5 then
            return { 0,0.75,0 }
        elseif playerLevel<=29 and level>=playerLevel-6 then
            return { 0,0.75,0 }
        elseif playerLevel<=39 and level>=playerLevel-7 then
            return { 0,0.75,0 }
        elseif playerLevel<=70 and level>=playerLevel-8 then
            return { 0,0.75,0 }
        elseif playerLevel<=80 and level>=playerLevel-8 then
            return { 0,0.75,0 }
        elseif playerLevel<=85 and level>=playerLevel-9 then
            return { 0,0.75,0 }
        else -- Grey
            return { 0.75,07.5,0.75 }
        end
    end
end
Last edited by DaemonSambe : 10-08-11 at 05:39 PM.
DaemonSambe is offline Report comment to moderator  
Reply With Quote
Unread 10-08-11, 09:06 PM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
Wow! What a list! I'll do my best to give you what you want. Thank you for the code.. that will help me quite a bit. (I'm still very new to this.. I've only taken over another addon in another game and kept the syntax up with the changes in their api but never have I tried to make one of my own Xo)

Thank you again for your input and help.
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-09-11, 07:34 AM  
Aalwein
Zombie

Forum posts: 2
File comments: 43
Uploads: 0
Lovin this addon, great work. I like the idea of seeing the raid marker on the tooltip that DaemonSambe mentioned.

Also, is it possible to show who the hovered target is agroed to? This would be great for a tank to scan mobs and see if they have the agro or who it is agroed to.
Aalwein is offline Report comment to moderator  
Reply With Quote
Unread 10-09-11, 09:43 AM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
The only way at the moment I can say about the aggro thing is who it is targeting, that could be possible too. (there's no aggro tables in the APi yet. )
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-09-11, 10:50 PM  
Aalwein
Zombie

Forum posts: 2
File comments: 43
Uploads: 0
Quote:
Originally posted by adracamas
The only way at the moment I can say about the aggro thing is who it is targeting, that could be possible too. (there's no aggro tables in the APi yet. )
Who they are targeting would be just fine. Just looking for some way to be able to scan mobs quickly to see who they are attacking without having to change targets to the mob.

What i *really* want is an "encounter window" like Vanguard has. A window with the names of all the mobs I'm currently in combat with that I can click on to select the enemies. Obviously, that ain't happening anytime soon, so this would be about the best we can get, I suppose.
Last edited by Aalwein : 10-09-11 at 10:52 PM.
Aalwein is offline Report comment to moderator  
Reply With Quote
Unread 10-10-11, 08:32 AM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
Quote:
Originally posted by Aalwein
Who they are targeting would be just fine. Just looking for some way to be able to scan mobs quickly to see who they are attacking without having to change targets to the mob.

What i *really* want is an "encounter window" like Vanguard has. A window with the names of all the mobs I'm currently in combat with that I can click on to select the enemies. Obviously, that ain't happening anytime soon, so this would be about the best we can get, I suppose.
You just gave me an idea... dunno how well it will work... but it's an idea. >=)

How many raid markers can you use? Is it up to 9?

Edit:

It's 8 it seems.. and also my idea won't work the way I want it to. Could still MAKE it work though. Wish the addon's could cross communicate.. that'd be nice.
Last edited by adracamas : 10-10-11 at 08:09 PM.
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-12-11, 09:52 PM  
adracamas
Zombie
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 18
Uploads: 1
Under my name <== over there it says zombie. Yeah.. I feel like that a lot lately XD
adracamas is offline Report comment to moderator  
Reply With Quote
Unread 10-13-11, 07:43 AM  
Aalwein
Zombie

Forum posts: 2
File comments: 43
Uploads: 0
Some errors I've encountered

Quote:
EDIT: With 1.5.12 the errors around Meridian stopped. It'll be awhile before I get to check on Alsbeth again though!


When hovering over Ariston Dion in Meridian (by the portal - the guy that gives the first Quantum sight quest. The error also occurs when I hover over Sylver Valis in the College of Planar Studies (near the quest giver for expert and raid dailies).



I also got a repeating error when hovering over Alsbeth today. The screenshot was terrible quality (I used RIFT's jpg instead of Fraps's png) but maybe you can make something out of it.

Last edited by Aalwein : 10-13-11 at 09:56 AM.
Aalwein is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.