Download
(34 Kb)
Download
Updated: 03/03/15 02:57 PM
Pictures
File Info
Compatibility:
Update 6 (1.6.5)
Updated:03/03/15 02:57 PM
Created:06/27/14 12:20 PM
Monthly downloads:44
Total downloads:13,024
Favorites:45
MD5:
Categories:Discontinued & Outdated, Graphic UI Mods, Miscellaneous
Rainbow Reticle (for Update 6)  Popular! (More than 5000 hits)
Version: 1.1
by: Garkin [More]
Updated version of Mitazaki's Exterminatus Rainbow Reticle.

This patch uses code from the old version of mctaylor's Rainbow Reticle (updated)
1.1
- updated API version to 100011 (Update 6)
- updated LibAddonMenu-2.0 to r17
- updated LibMediaProvider-2.0 to r8

1.0a
- a few more tweaks for better performance (register for events only when needed)

1.0
- updated API version to 100010 (Update 5)
- updated LibAddonMenu-2.0 to r16 (because of changes in controls in Update 5)
- optimized code for better performance

0.9h
- fixed issue with too long file path for LibMediaProvider-1.0 library in addon manifest

0.9g
- updated API version to 100009 (Update 4)

0.9f
- updated API version to 100008 (Update 3)
- updated LibAddonMenu-2.0 (r14)

0.9e
- updated LibAddonMenu-2.0 (r13) and LibMediaProvider-1.0 (r6) libraries

0.9d
- converted from LibAddonMenu-1.0 to LibAddonMenu-2.0
- added font settings
- fixed stealth text animation
- removed redundant code

0.9c
- small tweak to the stealth text when disguised

0.9b
- updated for patch 1.2.3
Archived Files (9)
File Name
Version
Size
Uploader
Date
1.0a
33kB
Garkin
11/04/14 12:39 PM
1.0
33kB
Garkin
11/03/14 10:17 AM
0.9h
32kB
Garkin
09/17/14 08:13 AM
0.9g
32kB
Garkin
09/16/14 03:17 PM
0.9f
32kB
Garkin
08/05/14 10:23 AM
0.9e
32kB
Garkin
07/21/14 11:22 AM
0.9d
31kB
Garkin
07/05/14 02:01 PM
0.9c
11kB
Garkin
06/28/14 07:44 PM
0.9b
11kB
06/27/14 12:20 PM


Post A Reply Comment Options
Unread 09/29/15, 11:03 AM  
Defilade
 
Defilade's Avatar

Forum posts: 1
File comments: 38
Uploads: 0
Since the Imperial city patch, they bumped the text for "hidden" while stealthed. As you can see by my screenshots, the word hidden overlaps with the target's name. I have to increase the font size to 29 in Rainbow reticle to even see the name of my target.

My question is, is there a way to move the target name above or below the word "hidden?" Preferably above hidden, since there is not much room. Or is there a way to move the word Hidden to back below the stealth indication icon?



Below is with the defaults set:



I found another addon to do this for me. It would be great if you could add this option into your addon. No stealth text
Last edited by Defilade : 10/05/15 at 01:02 PM.
Report comment to moderator  
Reply With Quote
Unread 03/22/15, 12:58 AM  
Vagrant Zero

Forum posts: 1
File comments: 29
Uploads: 0
Originally Posted by Garkin
Originally Posted by Vagrant Zero
Is there any edit I could do to the code that would make it never display PLAYER character names/health. I want it to only display NPCs and Hostiles.

I realize that would make the addon worthless in PVP but I don't PVP at all so it doesn't matter to me.

Thank you!
You will need to modify function GetUnitNameAndColor(unitTag) in RainbowReticle.lua, line 117:
Lua Code:
  1. if savedVars.enableAll then
replace with:
Lua Code:
  1. if savedVars.enableAll and not IsUnitPlayer(unitTag) then

And make sure that you have in settings enabled just targets which you want:
Enable Guild Names = OFF
Enable Friend Names = OFF
Enable Group Names = OFF
Enable Other Names = ON
That did half of what I wanted it to do which was disable player names AND health. However, your syntax was enough to clue me into the other change I needed to make to get it to do what I wanted it to do.

Specifically I had to add:

elseif IsUnitPlayer('reticleover', unitTag) then
text = ""

...inbetween lines 174 and 175. That tells the addon that if the target is a player display "" which is nothing (this statement is for the random joe reading this, obviously not meant for you Garkin).

So THANK YOU! You + my rudimentary understanding of LUA was enough to fix it!
Report comment to moderator  
Reply With Quote
Unread 03/21/15, 09:41 PM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by Vagrant Zero
Is there any edit I could do to the code that would make it never display PLAYER character names/health. I want it to only display NPCs and Hostiles.

I realize that would make the addon worthless in PVP but I don't PVP at all so it doesn't matter to me.

Thank you!
You will need to modify function GetUnitNameAndColor(unitTag) in RainbowReticle.lua, line 117:
Lua Code:
  1. if savedVars.enableAll then
replace with:
Lua Code:
  1. if savedVars.enableAll and not IsUnitPlayer(unitTag) then

And make sure that you have in settings enabled just targets which you want:
Enable Guild Names = OFF
Enable Friend Names = OFF
Enable Group Names = OFF
Enable Other Names = ON
Last edited by Garkin : 03/21/15 at 09:41 PM.
Report comment to moderator  
Reply With Quote
Unread 03/21/15, 09:23 PM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by mistik911
Would it be possible to make the level colored to the difficulty of the target?
Yes it is possible with small code change, I'll consider adding it in the future version.

You will need to replace this function in RainboewReticle.lua (lines 49-58):
Lua Code:
  1. local function GetFormatedUnitName(unitTag, name)
  2.    if savedVars.enableLevel == true then
  3.       if IsUnitVeteran(unitTag) then
  4.          return zo_strformat("<<C:1>> (VR<<2>>)", name, GetUnitVeteranRank(unitTag))
  5.       end
  6.       return zo_strformat("<<C:1>> <<2[//($d)]>>", name, GetUnitLevel(unitTag))
  7.    end
  8.  
  9.    return zo_strformat(SI_UNIT_NAME, name)
  10. end
with something like this:
Lua Code:
  1. local function GetFormatedUnitName(unitTag, name)
  2.    if savedVars.enableLevel == true then
  3.       local level = GetUnitLevel(unitTag)
  4.       if IsUnitVeteran(unitTag) then
  5.          local rank = GetUnitVeteranRank(unitTag)
  6.          return zo_strformat("<<C:1>> |c<<2>>(VR<<3>>)|r", name, GetColorDefForCon(GetCon(level + rank, GetUnitLevel('player') + GetUnitVeteranRank('player'))):ToHex(), rank)
  7.       end
  8.       return zo_strformat("<<C:1>> |c<<2>><<3[//($d)]>>|r", name, GetColorDefForCon(GetCon(level)):ToHex(), level)
  9.    end
  10.  
  11.    return zo_strformat(SI_UNIT_NAME, name)
  12. end
Last edited by Garkin : 03/21/15 at 10:15 PM.
Report comment to moderator  
Reply With Quote
Unread 03/21/15, 08:11 PM  
Vagrant Zero

Forum posts: 1
File comments: 29
Uploads: 0
Is there any edit I could do to the code that would make it never display PLAYER character names/health. I want it to only display NPCs and Hostiles.

I realize that would make the addon worthless in PVP but I don't PVP at all so it doesn't matter to me.

Thank you!
Report comment to moderator  
Reply With Quote
Unread 03/19/15, 03:39 PM  
mistik911

Forum posts: 0
File comments: 9
Uploads: 0
Would it be possible to make the level colored to the difficulty of the target?
Last edited by mistik911 : 03/19/15 at 03:40 PM.
Report comment to moderator  
Reply With Quote
Unread 03/12/15, 12:58 PM  
realrobd

Forum posts: 9
File comments: 31
Uploads: 0
Originally Posted by Garkin
Originally Posted by realrobd
...
Ok, so what you want to disable is actually target unit frame, not the name displayed by this addon. This is what this addon will never do, it just changes reticle, it doesn't modify unit frames.


You can try to add something like this to the end of the .lua file:

Lua Code:
  1. local targetFrame
  2.  
  3. local function CrittersCheck()
  4.     targetFrame = targetFrame or ZO_UnitFrames_GetUnitFrame("reticleover")
  5.  
  6.     if DoesUnitExist("reticleover") then
  7.         local _, powerMax = GetUnitPower("reticleover", POWERTYPE_HEALTH)
  8.         targetFrame:SetHiddenForReason("critter", powerMax < 10)
  9.     end
  10. end
  11.  
  12. EVENT_MANAGER:RegisterForEvent("CrittersCheck", EVENT_RETICLE_TARGET_CHANGED, CrittersCheck)

Reticle still changes to yellow, but shows no frame. Perfect! Thank you
Report comment to moderator  
Reply With Quote
Unread 03/11/15, 07:47 PM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by realrobd
...
Ok, so what you want to disable is actually target unit frame, not the name displayed by this addon. This is what this addon will never do, it just changes reticle, it doesn't modify unit frames.


You can try to add something like this to the end of the .lua file:

Lua Code:
  1. local targetFrame
  2.  
  3. local function CrittersCheck()
  4.     targetFrame = targetFrame or ZO_UnitFrames_GetUnitFrame("reticleover")
  5.  
  6.     if DoesUnitExist("reticleover") then
  7.         local _, powerMax = GetUnitPower("reticleover", POWERTYPE_HEALTH)
  8.         targetFrame:SetHiddenForReason("critter", powerMax < 10)
  9.     end
  10. end
  11.  
  12. EVENT_MANAGER:RegisterForEvent("CrittersCheck", EVENT_RETICLE_TARGET_CHANGED, CrittersCheck)
Report comment to moderator  
Reply With Quote
Unread 03/11/15, 04:14 PM  
realrobd

Forum posts: 9
File comments: 31
Uploads: 0
Originally Posted by Garkin
Originally Posted by realrobd
Originally Posted by Garkin
Originally Posted by realrobd
Any way to add the option to NOT target insignificant creatures that show up in yellow? It would be nice to get rid of that distraction.
There is no way for addon to select your target, all targeting functions are private (i.e. they can't be used by addons).
I wasn't clear enough, my apologies.

There was another reticle addon or some other addon that would allow the option of not showing a target popup on your screen if the object was say a frog or something insignificant (yellow).

I'll have another look and see if I can't find it.
Ah, I see. You don't want to see critter's name. There is easy way how to do it:
- open RainbowReticle.lua in text editor
- find line 119:
Lua Code:
  1. if max > 1 then
- change it to:
Lua Code:
  1. if max > 10 then
- save .lua file and if your game is running, reload UI to apply changes.




Changed to:

Lua Code:
  1. color:SetRGB(GetUnitReactionColor(unitTag))
  2.    if savedVars.enableAll then
  3.       local current, max = GetUnitPower(unitTag, POWERTYPE_HEALTH)
  4.       if max > 10 then
  5.          name = GetFormatedUnitName(unitTag, target)
  6.       end
  7.    end

Still no go:

Report comment to moderator  
Reply With Quote
Unread 03/11/15, 03:14 PM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by realrobd
Originally Posted by Garkin
Originally Posted by realrobd
Any way to add the option to NOT target insignificant creatures that show up in yellow? It would be nice to get rid of that distraction.
There is no way for addon to select your target, all targeting functions are private (i.e. they can't be used by addons).
I wasn't clear enough, my apologies.

There was another reticle addon or some other addon that would allow the option of not showing a target popup on your screen if the object was say a frog or something insignificant (yellow).

I'll have another look and see if I can't find it.
Ah, I see. You don't want to see critter's name. There is easy way how to do it:
- open RainbowReticle.lua in text editor
- find line 119:
Lua Code:
  1. if max > 1 then
- change it to:
Lua Code:
  1. if max > 10 then
- save .lua file and if your game is running, reload UI to apply changes.
Report comment to moderator  
Reply With Quote
Unread 03/11/15, 02:46 PM  
realrobd

Forum posts: 9
File comments: 31
Uploads: 0
Originally Posted by Garkin
Originally Posted by realrobd
Any way to add the option to NOT target insignificant creatures that show up in yellow? It would be nice to get rid of that distraction.
There is no way for addon to select your target, all targeting functions are private (i.e. they can't be used by addons).
I wasn't clear enough, my apologies.

There was another reticle addon or some other addon that would allow the option of not showing a target popup on your screen if the object was say a frog or something insignificant (yellow).

I'll have another look and see if I can't find it.
Report comment to moderator  
Reply With Quote
Unread 03/11/15, 02:14 PM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by realrobd
Any way to add the option to NOT target insignificant creatures that show up in yellow? It would be nice to get rid of that distraction.
There is no way for addon to select your target, all targeting functions are private (i.e. they can't be used by addons).
Report comment to moderator  
Reply With Quote
Unread 03/11/15, 01:45 PM  
realrobd

Forum posts: 9
File comments: 31
Uploads: 0
Any way to add the option to NOT target insignificant creatures that show up in yellow? It would be nice to get rid of that distraction.
Report comment to moderator  
Reply With Quote
Unread 01/29/15, 08:40 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Working Rainbow Reticle for PTS (Update 6) is in my Dropbox, in the Update 6 folder. Link is in my signature.
Report comment to moderator  
Reply With Quote
Unread 01/14/15, 09:55 AM  
Wack

Forum posts: 0
File comments: 10
Uploads: 0
ahhh you are right, it is this addon:

http://www.esoui.com/downloads/info3...chv1.5.2b.html in the image you see on the right 2m distance.

and what you say makes sence, guesse that is the reason why it shows incorrect distance values.

Thanks for the quick response, cheers

Originally Posted by Garkin
Originally Posted by Wack
The distance seems bugged, it shows like 2500m distance? how can this be fixed? thnx
This addon does not show distance. Are you sure that you are using this addon?

But anyway, a few months ago (I think it was in June, patch 1.2.2) ZOS changed function GetMapPlayerPosition(unitTag), so it only works for player himself. It's not possible to get coordinates of the highlighted unit, so there is no way to calculate distance between you and the target.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: