Author Topic: Can you use a Card Layout on Game Panels?  (Read 3434 times)

nicky123

  • Visitor
  • *
  • Posts: 1
    • View Profile
    • software application development
    • Email
Can you use a Card Layout on Game Panels?
« on: 2009-06-01, 05:37:03 AM »
I set up a Card Layout at main Game Panel, in order to bring up some additional menus at certain times during the game.

When I run the build, the panels just flash back and forth between each other continually. Is this because both of them are continually refreshing? and is the card layout feasible in the main Game Panel,

Is there a better way to bring up in game menus?

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Can you use a Card Layout on Game Panels?
« Reply #1 on: 2009-06-01, 12:34:15 PM »
I don't fully understand what you did, what card layout is, or why you're seeing this behavior, but I think menus should be implemented as separate maps.  You can execute a function to switch to another map.  Then there's also a function to return to the previous map.  This feature (return to previous map) is designed for making menus easy to implement.