Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Return automatically into the game from load and save windows  (Read 2563 times)

0 Members and 1 Guest are viewing this topic.

Art

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
    • View Profile
Return automatically into the game from load and save windows
« on: January 12, 2006, 04:32:20 PM »

Hi all.
I have implemented menu, changed loading and saving options. And now, when for example i load game, after loading process returns into the loading window. It is not closing automatically, so i have to push ESC twice, to return into main menu first and then - into the game.
What can it be? I cannot find any difference in call logic with tutorial example. May be some window option ?
I really cannot find it
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Return automatically into the game from load and save windows
« Reply #1 on: January 12, 2006, 04:41:42 PM »

The trick is to close the window after saving. And since after loading the game continues from the same point, the window gets closed as well. If you check WME demo, you'll see there's this.Close() called right after Game.SaveGame().
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Art

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
    • View Profile
Re: Return automatically into the game from load and save windows
« Reply #2 on: January 12, 2006, 04:47:15 PM »

Oh, really, i've removed close ...  ::)
Logged
 

Page created in 0.04 seconds with 19 queries.