Code modules for the built-in save and load dialogs?

Started by tor.brandt, Wed 09/11/2016 13:35:46

Previous topic - Next topic

tor.brandt

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.

Crimson Wizard

#1
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.

tor.brandt

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!

SMF spam blocked by CleanTalk