Sign in to follow this  
yerbamate

c++ Load/Save dialog for level editor

Recommended Posts

Hello everyone.

I'm new here but hope to get in touch with a lot of friendly developers smile.png. Well, let's get to the question:
I'm creating this game in C++, using SFML to deal with graphics, I/O, etc. It is a cross platform puzzle.
I need to create a load/save dialog, with some kind of file manager but, since it's a cross platform project, I can't rely on native O.S. dialogs.  What I'm trying to achieve is something similar to the approach Stunts (old MS-DOS) did, creating a proprietary list:

[attachment=17040:stunts.png]

Honestly, I do know how to do it but I was wondering if there was a simpler and more elegant solution that I may not know or be aware of, something like an universal filemanager preset.
Any suggestion will be appreciated =]. And here's a screenshot of the editor just for fun!

[attachment=17039:screen.png]

Share this post


Link to post
Share on other sites

AFAIK SFML doesn't include any good filesystem functions so you might want to use something like boost for that.

 

If its a standalone editor you could also go with something like QT (it makes cross platform GUI applications extremely simple, its just a few lines of code to open a file dialog)

Share this post


Link to post
Share on other sites

Thanks, Simon, I'll see what I can do with boost, heard of it but never used it.

The editor is in-game, so QT is not an option I guess, I could use it but to include such dependence (lots of megabytes) just for a small part of the game doesn't seem like the best thing to do - but I may be naive here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this