Author Topic: Modal Windows and UIButtonKeys  (Read 3207 times)

eucryptic

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Modal Windows and UIButtonKeys
« on: May 16, 2013, 03:55:34 AM »
Our game uses the controller only, and I'm trying to implement modal windows.

When the player presses on a button, I'm displaying a new modal window over the top of the previous one,
and setting UICamera.selectedObject to the button I want selected.
e.g. a classic "Do you want to do this? Cancel / Confirm" window.

The panel is displayed and the default item is selected correctly.

However for some reason when I press Up/Down/Left/Right, the selection on the panel underneath changes.
It's like just the visuals have been changed, but there's logic somewhere that still thinks the button underneath is selected.

  • Is there a way I can stop UIButtonKeys from doing this?
  • Do I need to disable the background panel? I don't want to hide it, just to stop it receiving input.
  • Am I correct in setting UICamera.selectedObject manually throughout my code?