Author Topic: UITooltip overrides tooltip Z  (Read 2223 times)

getluky

  • Guest
UITooltip overrides tooltip Z
« on: September 24, 2012, 01:12:05 PM »
Small bug report:

UITooltip.SetText resets the widget's world-Z position because it manually assigns a ViewportToWorldPoint to the transform position. This will override the containing panel's depth offset which should be respected so that tooltips can be placed in the proper Z order.

It's an easy fix, though, just record the Z position before the assignment in SetText and then put it back into mPos before it's assigned back to the transform.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITooltip overrides tooltip Z
« Reply #1 on: September 24, 2012, 03:21:15 PM »
Set up your tooltip like this:

UITooltip
- Offset
-- Other widgets