Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Skyrim/Bethesda-esque splash menu

Author
Message
AmbulanceGames
16
Years of Service
User Offline
Joined: 15th May 2010
Location: Salt Lake City, UT
Posted: 27th Dec 2011 22:57
Hey, I had a question. Is there a way, or a plug-in, where it's possible to make a 'start up' screen like in Fallout 3 or Skyrim where a borderless window comes up with the options, start, exit choices. Hopefully that makes sense but I'm guessing most people here have played the PC versions of those games and knows what I'm talking about. It's not full screen, it comes up before the game starts. I was looking at Styx but I don't know if that could create the same kind of window.
Daniel TGC
Retired Moderator
19
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 28th Dec 2011 00:29 Edited at: 28th Dec 2011 00:38
This will do it, it's a native command.

SET WINDOW LAYOUT 0, 0, 0

The rest is just sprites you need to setup yourself. But that command will turn off the boarder of any window.

If you mean a window within a window, then this again is down to sprites, or 3D planes. You can do seperate windows, but you can't produce windows that you spawn and close within the program itself, that move around the desktop indepantly. But games like fallout don't work like that anyway.

But programming internal windows is just a matter of placing sprites on the screen and dragging them around. If you want resizeable windows then look into drawing them with memblocks which is faster.

If all this is beyond you then break the problem down into a series of questions then go research them. For example.

How do I drag a 3D plane or sprite around with my mouse?
How do I setup icons that I can click on?
Now do I produce an animation?
etc etc
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 28th Dec 2011 15:10
unfortunately you need to program this OUTSIDE of dbpro, as anything coded within dbpro is a directx/direct3d window and not a proper windows textbox. There may be plugins to produce them, but they are still run after the dbpro engine initialises. Your best bet is to write a launcher in something like visual basic. And your game seperately

When you hit 'start game' in the launcher it just closes itself and launches your program, with an optional command prompt or memory address (which would let you force users to run it from the launcher and not directly from the game .exe)
Daniel TGC
Retired Moderator
19
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 28th Dec 2011 15:23 Edited at: 28th Dec 2011 15:42
Why? Just click on start then adjust the window resolution and mode to full screen. There's no need to go outside dbpro for a simple launcher window. Buttons, text boxes, they can all be coded within dbpro directly it's not a big deal. For example:



just click on start and it goes into the game mode.

I think that about covers it, a boarder-less window with a simple game launcher system and more than enough room for option menus and anything else you want to put int there.

There's really no reason to go into plugins for this kind of thing.
AmbulanceGames
16
Years of Service
User Offline
Joined: 15th May 2010
Location: Salt Lake City, UT
Posted: 28th Dec 2011 18:34
Cool, thanks Daniel, much appreciated. I actually have it setup to where it goes from windowed mode to full screen but I was just having a hard time getting rid of the border. Just wanted it to be the background image with the buttons and such so I'll have to try out the SET WINDOW LAYOUT. Thanks!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 29th Dec 2011 01:40
Perhaps make use of STYX by means of using flash menus... I need help in understanding the mouse click feedback for buttons... the included material is a bit... iffy... but I have no issues coding an SWF file and stuff making it etc just how to identify a button mechanism for STYX to pickup on... actionscript is not my strong point at the moment... if someone can help me resolve this I will gladly make or put together flash menus together for the community... provided they prepare the media ... Free of course...and in return for credit in their productions

jlahtinen
16
Years of Service
User Offline
Joined: 26th Oct 2009
Location: Finland
Posted: 2nd Jan 2012 22:21
With SET WINDOW LAYOUT you can still clearly see the borders before they vanish, so it doesnt look good.
Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 3rd Jan 2012 13:02
@jlahtinen

You can start with a hidden window, then remove the borders and then show the window.

jlahtinen
16
Years of Service
User Offline
Joined: 26th Oct 2009
Location: Finland
Posted: 3rd Jan 2012 19:02
@Max P

No effect here, still can see borders briefly.

Code:

Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 3rd Jan 2012 19:11
Use this and start in hidden mode:


jlahtinen
16
Years of Service
User Offline
Joined: 26th Oct 2009
Location: Finland
Posted: 3rd Jan 2012 19:15
@Max P

D'oh, I never have looked in the properties ? :-|

Haha, thanks.

Login to post a reply

Server time is: 2026-07-11 14:52:19
Your offset time is: 2026-07-11 14:52:19