Author Topic: Discussion on Managing UI states  (Read 2962 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Discussion on Managing UI states
« on: May 16, 2013, 02:37:42 PM »
The UI on McDROID depends on game state a lot.
For example when you press play coop but have not registered, the register panel comes up
or the first time you press play the customize panel appear

We were trying to isolate the UI from game logic by connecting ui state to ui buttons but obviously in these cases, game logic ultimately decide what bit of UI shows up.

So I was wondering what you guys are using to handle game state and why.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Discussion on Managing UI states
« Reply #1 on: May 16, 2013, 02:41:09 PM »
In Starlink I actually have a window manager with history that makes it possible to navigate between windows, and navigate back. I also have a basic game window manager that opens up the appropriate window on Start() based on the last state. For example, when returning from the multiplayer game, it opens a chain of windows that ends in the multiplayer selection window open, with the history leading up to it.