Gui after saving

Started by Miori, Mon 27/08/2012 23:14:26

Previous topic - Next topic

Miori

Hello!

I have a little problem with my savegames. When the user hits the save button the save-gui disappears, waits 10 frames and then saves the game. After saving the game a gui appears that says the player, that the game has been saved. The problem is now, after loading the game the "game has been saved"-gui is still visible O.o I thought maybe a wait between saving and showing the gui would solve the problem, but it doesnt.

This is the script:

Code: AGS

gSpeichern.Visible = false;
gSpeichernAbfra.Visible = false; // Savegame GUIs deactivated after pressing save button
lMeldung.Text = "Spielstand wurde gespeichert."; // Lable with text: Game has been saved
if(txtSpeichern.Text == ""){ // If Textbox where the Player can type a name of the savegame is empty, write "unnamed"

	txtSpeichern.Text = "unbenannt";
}

Wait(10);

SaveGameSlot(SaveSlot, txtSpeichern.Text);  // Save to selected slot with the typed name
Wait(10);
gMeldung.Visible = true; // Show the GUI with the label "Game has been saved" inside it 


gMeldung disappears if you click on it.

Does anybody know what I can do so the gMeldung GUI is not shown, after the game has been restored? O.o

Khris


Miori

Yeah, saw it some minutes after I posted and could not find a button to delete my thread XD Sorry for that :undecided:

Khris

No problem, you can't delete threads though.

SMF spam blocked by CleanTalk