Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: tor.brandt on Wed 09/11/2016 13:35:46

Title: Code modules for the built-in save and load dialogs?
Post by: tor.brandt on Wed 09/11/2016 13:35:46
Does anyone know if the code modules for the built-in save and load dialogs are available anywhere?
I'd like to use the standard ones only with my own background and button graphics.
And besides, I'd like to read the scripts, so as to learn how they work.
Title: Re: Code modules for the built-in save and load dialogs?
Post by: Crimson Wizard on Wed 09/11/2016 13:48:55
By "built-in dialogs", do you mean the ones you get in Default template, or ones you get when calling functions like SaveGameDialog() and RestoreGameDialog()?

The former can be found in the scripts of the default template, obviously. When you create a new game using that template, you will get all the code in your game project, which you can modify at will. I do not know if those dialogs exist as separate modules though. But it is possible to separate them out on your own (and export/import GUI).

The latter are not script, but hard-coded in the engine, in C++ language.
Title: Re: Code modules for the built-in save and load dialogs?
Post by: tor.brandt on Wed 09/11/2016 14:03:55
Ah yes, I meant the latter.

And of course, how stupid of me, I hadn't even thought of looking at the dialog scripts in some of the templates.
Thing is, I'm not using a template, but writing my entire UI from scratch, both for the learning and for fun, and to avoid redundant code in my scripts.

But I will simply take a look at the templates, thanks!