ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   REQUEST: Target health bar visible only in combat (https://www.esoui.com/forums/showthread.php?t=2452)

stealthbr 11/20/14 10:18 AM

REQUEST: Target Unit Frame Visible Only In Combat
 
Hello everyone!

I come here requesting an add-on that hides my target's unit frame unless my character is in combat, similar to the way it works in Skyrim. Here is the link to a video demonstrating exactly what I am talking about (around the 17:40 mark):

http://youtu.be/oSL-r9AIEEU?t=17m42s

Notice that when the player is simply looking at the mammoth, the mammoth's unit frame is hidden. However, when the player initiates combat, the mammoth's unit frame appears. I am not sure if such an add-on can be made, but if someone succeeded in doing so I would be very grateful.

Here is an in-game screenshot with an arrow I drew pointing to the exact UI element that I am talking about.



Thanks!

Garkin 11/23/14 12:09 AM

This should be really easy to do. Unfortunately I can test it right now, but should be something like this:
Lua Code:
  1. ZO_UnitFrames:RegisterForEvent(EVENT_PLAYER_COMBAT_STATE, function(_, state) UNIT_FRAMES:SetFrameHiddenForReason("reticleover", "combatstate", not state) end)

circonian 11/23/14 02:35 AM

Quote:

Originally Posted by stealthbr (Post 13367)
Hello everyone!

I come here requesting an add-on that hides my target's unit frame unless my character is in combat, similar to the way it works in Skyrim. Here is the link to a video demonstrating exactly what I am talking about (around the 17:40 mark):

Thanks!

Here you go: Hide Target Frame

You can thank Garkin for the posted code for how to hide the frame.

stealthbr 11/23/14 09:49 AM

Thanks guys!


All times are GMT -6. The time now is 01:10 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI