1 registered members (AndrewAMD),
1,018
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Windowed screen en start screen.
[Re: Realspawn]
#456845
12/12/15 15:18
12/12/15 15:18
|
Joined: Apr 2015
Posts: 20 Vietnam
Florastamine
Newbie
|
Newbie
Joined: Apr 2015
Posts: 20
Vietnam
|
i use video_set(800,600,32,0); and that works however the name of the window (in the window bar) says A8 engine ? how to change it ?
As Superku said, use video_window(), the fourth parameter controls the window bar's title. This is the easiest way. I don't know about the Pro version, but from reading the manual it seems you have to create a .wdl, put some window starter code in, and build the wdl with "Starter" option checked. A wdf will be produced, which you'll put into your game folder.
Last edited by Florastamine; 12/12/15 15:19.
|
|
|
Re: Windowed screen en start screen.
[Re: Florastamine]
#456846
12/12/15 15:51
12/12/15 15:51
|
Joined: Jul 2001
Posts: 4,801 netherlands
Realspawn
OP
Expert
|
OP
Expert
Joined: Jul 2001
Posts: 4,801
netherlands
|
ehm in the video_set is no txt input place ? video_window(vector(500,300,0),vector(800,600,0),1,NULL); put some window start code in sounds simple yet it is not. I tried superku's example code saved the wdl with the same name as script then with publish i select starter and then errors wdfc.exe: No starter window definition found! ??
Last edited by Realspawn; 12/12/15 15:53.
|
|
|
Re: Windowed screen en start screen.
[Re: Realspawn]
#456847
12/12/15 15:53
12/12/15 15:53
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
video_set != video_window
video_window(NULL, NULL, 0, "window name");
POTATO-MAN saves the day! - Random
|
|
|
Re: Windowed screen en start screen.
[Re: Realspawn]
#456851
12/12/15 17:09
12/12/15 17:09
|
Joined: Apr 2015
Posts: 20 Vietnam
Florastamine
Newbie
|
Newbie
Joined: Apr 2015
Posts: 20
Vietnam
|
put some window start code in sounds simple yet it is not. I tried superku's example code saved the wdl with the same name as script then with publish i select starter and then errors There's some example code in the manual
WINDOW WINSTART
{
TITLE "My Simulator";
SIZE 480,320;
MODE IMAGE;
BG_COLOR RGB(240,240,240);
FRAME FTYP1,0,0,480,320;
BUTTON BUTTON_START,SYS_DEFAULT,"Start",400,288,72,24;
BUTTON BUTTON_QUIT,SYS_DEFAULT,"Abort",400,288,72,24;
SET FONT "Arial", RGB(255,255,255);
TEXT "Get ready...", 0,0;
TEXT_STDOUT "Arial",RGB(0,0,0),10,10,460,280;
PROGRESS RGB(0,0,255), 10, 0, 300, 400, 20;
COMMAND "-diag";
}
The reason you got the error from his code is this line
BG_PATTERN <starter_sk.bmp>,OPAQUE;
It needs starter_sk.bmp exists to be able to compile the wdf
Last edited by Florastamine; 12/12/15 17:09.
|
|
|
Re: Windowed screen en start screen.
[Re: Realspawn]
#456855
12/13/15 07:04
12/13/15 07:04
|
Joined: Apr 2015
Posts: 20 Vietnam
Florastamine
Newbie
|
Newbie
Joined: Apr 2015
Posts: 20
Vietnam
|
this works so what is wrong with the code example from superku ? as that one gives the error while the starter bmp is in the folder. Limit the file name length to 8 characters or less, and the .bmp should only be 256 colors (you can use a small free image utility ( IrfanView IrfanView) for that). Open the image, then select Image > Decrease color depth and then choose 256.
|
|
|
|