Author Topic: disabling all the interactions of a window  (Read 1440 times)

jimbbq

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
disabling all the interactions of a window
« on: March 26, 2014, 02:17:48 PM »
Dear all

I am new to NGUI and I hope you can help me with a question. I have set up an "option window" with a list of options and another "confirmation window" (see attached). When I click on an option, the "confirmation window" pops up. I want to disable all the interactions of the option window when the "confirmation window" is up. How can I do this?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: disabling all the interactions of a window
« Reply #1 on: March 26, 2014, 08:01:39 PM »
1. Create a UIWidget behind your confirmation window via ALT+SHIFT+W (you can just make it a part of your confirmation window, just give it a depth that places it directly behind the background).
2. Attach a box collider to it via ALT+SHIFT+C.
3. Anchor it so that it's anchored to the UIRoot and set to always cover the entire screen. (left to left, right to right, etc with offset of 0).

jimbbq

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: disabling all the interactions of a window
« Reply #2 on: March 27, 2014, 03:27:24 PM »
it works! u guys are amazing:) thanks