Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, dr_panther, VoroneTZ), 1,255 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Load/Save Filedialog that works in fullscreen #413367
12/12/12 20:05
12/12/12 20:05
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 know that there is a filedialog command in lite-c but this does not work well in fullscreen mode (it crashes the game on some computers). Could there be one which works in fullscreen too?

Re: Load/Save Filedialog that works in fullscreen [Re: Ercoles] #413371
12/12/12 20:34
12/12/12 20:34
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Its not crashing the game, Its freezing the window as long as it is opened. In fullscreen its sometimes not in the front. However, there are 2 ways:
1. Cut the borders of the engine window and size it on current resolution but dont turn on fullscreen.
2. Make a dialog yorself with panels and buttons.

Re: Load/Save Filedialog that works in fullscreen [Re: Ch40zzC0d3r] #413372
12/12/12 20:44
12/12/12 20:44
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you can use Texts and Panels to create something similar to a file dialog
the problem is that is really much work and also not as good as the original ones

here are some functions which may help:
txt_for_dir(text,STRING* name)
txt_sort(TEXT*);
txt_load(TEXT*,STRING* filename)
panel->event
pan_setdigits
pan_setbutton

also oliver2s has created a fully functional file dialog for his IceX3:
Forum Thread


Visit my site: www.masterq32.de
Re: Load/Save Filedialog that works in fullscreen [Re: MasterQ32] #413391
12/13/12 08:25
12/13/12 08:25
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
MQ32's hint are really fine.
I also created my own file save/load panel in lite-c, bacause in a 3D environment it is usually necessary to fit its style to other panels/menus.
I use:
- a slider and 2 buttons for scrolling (slider position handling requires a loop),
- fixed amount of strings (an array) dislpaying file names read from a text created by txt_for_dir, due to slider position and file name quantity
- buttons under file name strings, for easy highlighting selection and mouse touch of filenames
- ok and cancel buttons
- some title text strings
- a text object displaying actual filename or for typing custom filenames - as I remember it requires a loop to update filename data without hitting enter
- some button bitmaps in Paint laugh

Last edited by sivan; 12/13/12 08:34.

Free world editor for 3D Gamestudio: MapBuilder Editor

Moderated by  aztec, Spirit 

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