GUI scripting issues

Started by Hyperbro, Wed 04/08/2010 13:20:11

Previous topic - Next topic

Hyperbro

So, I'm attempting to make a custom GUI, which looks like this: http://img121.imageshack.us/img121/5659/87431389.png
Changed the code around, so it works like this. Here's the global code: http://pastebin.com/Z2iss647

Saving and loading is what causes problems.
It doesn't give any errors, but it doesn't do what I want it to.
Escape -> Save -> http://img529.imageshack.us/img529/241/71241067.png

Spoiler
how do I forum i don't even
[close]

Khris

In line 486, put a Display command:
Code: ags
  Display("About to save.");


Can you see the text after you click the button in-game?

Hyperbro

#2
Quote from: Khris on Wed 04/08/2010 13:43:31
In line 486, put a Display command:
Code: ags
  Display("About to save.");


Can you see the text after you click the button in-game?

Yes. Yes it does.

Dualnames

Then perhaps you don't load the savegames in the listbox.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Hyperbro

Quote from: Dualnames on Wed 04/08/2010 14:30:44
Then perhaps you don't load the savegames in the listbox.

I honestly have no idea how the whole thing works.

tzachs

You weren't very clear on exactly what the problem is.
Is the problem that when you press restore you don't see the games that you already saved?
Or is it something else?

If it is, then try replacing line 360 with
Code: ags

show_restore_game_dialog();  


and see if that helps...

Hyperbro

#6
Quote from: tzachs on Wed 04/08/2010 16:52:39
You weren't very clear on exactly what the problem is.
Is the problem that when you press restore you don't see the games that you already saved?
Or is it something else?

If it is, then try replacing line 360 with
Code: ags

show_restore_game_dialog();  


and see if that helps...

This seems to have solved it, thank you :3c

EDIT: Save dialog doesn't seem to show existing games.

SMF spam blocked by CleanTalk