Author Topic: Panel's Alpha property to sub-panels  (Read 9594 times)

armitage1982

  • Newbie
  • *
  • Thank You
  • -Given: 7
  • -Receive: 1
  • Posts: 15
    • View Profile
Panel's Alpha property to sub-panels
« on: June 04, 2013, 04:39:22 AM »
I'm using the new Panel's Alpha property but child's panels does not reflect the alpha parent change.
Would it be a good idea to change this default Alpha property behavior for sub-panels ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel's Alpha property to sub-panels
« Reply #1 on: June 04, 2013, 09:01:33 PM »
Panel's alpha only affects widgets directly managed by that panel.

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: Panel's Alpha property to sub-panels
« Reply #2 on: July 16, 2013, 02:08:01 PM »
It would be awesome if there was an option for this. Any plans for adding this feature?

Malzbier

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 93
    • View Profile
Re: Panel's Alpha property to sub-panels
« Reply #3 on: July 17, 2013, 03:00:14 AM »
Why you don't buld a script that handles that for you?
Should not be much work.

Just make a script on the top level Panel that checks if the Alpha property changed and the goes by all child panels and apply the value.

Asse

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: Panel's Alpha property to sub-panels
« Reply #4 on: July 17, 2013, 03:20:15 AM »
And a script that checks the parent panels alpha when a UIPanel gets created or changes it's parent transform. Built-in would be awesome, otherwise I'd do it on my own. Just asking  ;)