Author Topic: GUI scripting issues  (Read 212 times)  Share 

GUI scripting issues
« on: 04 Aug 2010, 13:20 »
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[/spoiler]

Khris

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: GUI scripting issues
« Reply #1 on: 04 Aug 2010, 13:43 »
In line 486, put a Display command:
[code]  Display("About to save.");[/code]

Can you see the text after you click the button in-game?
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

Re: GUI scripting issues
« Reply #2 on: 04 Aug 2010, 13:50 »
In line 486, put a Display command:
[code]  Display("About to save.");[/code]

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

Yes. Yes it does.
« Last Edit: 04 Aug 2010, 13:55 by Hyperbro »

Dualnames

  • AGS Baker
  • Dualnames worked on a game that was nominated for an AGS Award!
Re: GUI scripting issues
« Reply #3 on: 04 Aug 2010, 14:30 »
Then perhaps you don't load the savegames in the listbox.

Re: GUI scripting issues
« Reply #4 on: 04 Aug 2010, 16:30 »
Then perhaps you don't load the savegames in the listbox.

I honestly have no idea how the whole thing works.

tzachs

  • Mittens Serf
  • AGS Baker
  • Parking Goat- games that goats like!
    • I can help with translating
    •  
  • tzachs worked on a game that was nominated for an AGS Award!
Re: GUI scripting issues
« Reply #5 on: 04 Aug 2010, 16:52 »
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]
show_restore_game_dialog(); 
[/code]

and see if that helps...

Re: GUI scripting issues
« Reply #6 on: 04 Aug 2010, 16:59 »
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]
show_restore_game_dialog(); 
[/code]

and see if that helps...

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

EDIT: Save dialog doesn't seem to show existing games.
« Last Edit: 04 Aug 2010, 17:01 by Hyperbro »