Author Topic: "Bring to front" during run-time?  (Read 3784 times)

tr4np

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 17
    • View Profile
"Bring to front" during run-time?
« on: April 09, 2014, 02:12:36 PM »
Is there an NGUI method to bring a widget to the front, similar to the right-click menu option in the editor?  I have multiple draggable windows that could overlap, and I want the most recently touched window to be on top.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: "Bring to front" during run-time?
« Reply #1 on: April 10, 2014, 06:46:43 AM »
NGUITools.BringForward

tr4np

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: "Bring to front" during run-time?
« Reply #2 on: April 10, 2014, 02:16:35 PM »
NGUITools.BringForward

Great, I'm glad it was so simple!  I was worried I'd have to iterate through all the widgets and keep track of all the depths myself.

Are these methods documented somewhere?  I'd like to know what other useful methods I might be missing out on.

thanks,
Phong

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile