Grid

754 - Indicators on Separate Frame instead of Healthbar

Since all of Grids default indicators have the Healthbar as parent frame a third Party indicator like ManaBars that wants to draw itself behind those indicators but in front of the other indicators has to reparent all of them. For other Thirdparty indicators this is not possible since ManaBars has no way to know about them.

Suggested Solution:

Introduce a separate Frame of the size of the Unitframe minus the borderoffset in front of the healthbar which every normal indicator can use as parent frame. This way "special" indicators like the manabar can draw themself behind them without having to know about them.

As a bonus the normal indicators can use the separate frame directly during creation (newFunc) as parent and don't have to reset their parent to the healthbar in the "resetFunc" method anymore.

User When Change
Phanx Oct 22, 2014 at 12:22 UTC Changed status from New to Accepted

Changed priority from Medium to Low

Changed description:
- #### **Grid version:**
- 6.0.2.1679-beta
-
-
-
- #### **WoW version and region/language:**
- 6.0 Europe German
-
-
- #### **Problem:**
  Since all of Grids default indicators have the Healthbar as parent frame a third Party indicator like ManaBars that wants to draw itself behind those indicators but in front of the other indicators has to reparent all of them. For other Thirdparty indicators this is not possible since ManaBars has no way to know about them.
- #### **Suggested Solution:**
+ Suggested Solution:
+
  Introduce a separate Frame of the size of the Unitframe minus the borderoffset in front of the healthbar which every normal indicator can use as parent frame. This way "special" indicators like the manabar can draw themself behind them without having to know about them.
+
  As a bonus the normal indicators can use the separate frame directly during creation (newFunc) as parent and don't have to reset their parent to the healthbar in the "resetFunc" method anymore.
Julith Oct 20, 2014 at 16:26 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of Julith Julith Oct 22, 2014 at 11:07 UTC - 0 likes

    @Phanx: Go

    I tried that but it only works for actual frames. I couldn't find a way to change the frame level of the FontStrings for the text indicators.

  • Avatar of Phanx Phanx Oct 22, 2014 at 05:43 UTC - 0 likes

    As a better temporary solution, you could just use :SetFrameLevel on the other indicators.

  • Avatar of Julith Julith Oct 21, 2014 at 06:09 UTC - 0 likes

    Ok, this just got a bit more important: Since I currently have to reparent all indicators to the ManaBar they all hide as soon as the manabar is hidden (e.g. for non-mana using units). I think I can solve this for now by reparenting them again before hiding or showing the bar...but that really isn't fun :-)

  • 3 comments

Facts

Last updated
Oct 22, 2014
Reported
Oct 20, 2014
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Low - Might slip to a later milestone.
Votes
0

Reported by

Possible assignees