Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 844 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
File requester #370451
05/13/11 11:33
05/13/11 11:33
Joined: Apr 2011
Posts: 75
Malta
E
Ercoles Offline OP
Junior Member
Ercoles  Offline OP
Junior Member
E

Joined: Apr 2011
Posts: 75
Malta
Is there a simple lite-c code explaining how to make a file requester for a user to select files for loading or saving.

Re: File requester [Re: Ercoles] #370452
05/13/11 11:36
05/13/11 11:36
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
look at file_dialog...


Visit my site: www.masterq32.de
Re: File requester [Re: MasterQ32] #370474
05/13/11 13:59
05/13/11 13:59
Joined: Apr 2011
Posts: 75
Malta
E
Ercoles Offline OP
Junior Member
Ercoles  Offline OP
Junior Member
E

Joined: Apr 2011
Posts: 75
Malta
Unfortunetly it does not work in full screen mode, only in window mode. Any solutions?

Re: File requester [Re: Ercoles] #370629
05/14/11 18:13
05/14/11 18:13
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Use a panel or TEXT, this also works in fullscreen mode. There is a function, I've forgotten the name, that reads the directory content into a TEXT. You can make a file requester with it.

Re: File requester [Re: Tobias] #370675
05/14/11 21:44
05/14/11 21:44
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
The function is called txt_for_dir.

Last edited by Superku; 05/14/11 21:45.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: File requester [Re: Superku] #370739
05/15/11 12:36
05/15/11 12:36
Joined: Apr 2011
Posts: 75
Malta
E
Ercoles Offline OP
Junior Member
Ercoles  Offline OP
Junior Member
E

Joined: Apr 2011
Posts: 75
Malta
I solved the file_dialog problem this way and it now works great.

#include <strio.c>

function loadgame()
{
wait(1);
video_switch(0,0,2);
char* filename = file_dialog("Load Saved Game","*.ssv");
video_switch(0,0,1);
var filehandle = file_open_read(filename);
...
}


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1