Author Topic: Set size of a window in inspector?  (Read 1529 times)

TheStringSerpent

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Set size of a window in inspector?
« on: March 27, 2015, 04:23:17 PM »
Hi everyone..

Totally new to NGUI and I need some help. I'm currently creating a main menu for my game, I have a window with all the buttons needed. When the player press the Quit-button I wan't to show a dialog... So I though, another Window is needed - but how do I resize the window to look like a dialog window? I tried to stretch the window (looked terrible)... so is there another way to do it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Set size of a window in inspector?
« Reply #1 on: March 27, 2015, 11:19:05 PM »
A dialog window doesn't need to cover the entire screen. If you want to prevent events from going through it, simply give it an invisible widget that will cover the entire screen. If it has a collider on it, it will block events from going through it.

ALT+SHIFT+W, ALT+SHIFT+C