DBPro / Options Dialog DBPro Plugin |
| Author | Message | ||
|
ThomasFN
User Joined: Thu Aug 26th 2004 Location: Cyberspace |
Now here is an interesting plugin for DBPro. It allows you to create and use option screens in DBPro (the game not the editor) and with similar code, allows you to use a main-menu screen. Manual and examples are supplied. The file (in a zip file) is supplied as an 18kb (0.018 mb) file. Enjoy! [EDIT] Actually about 19 kb but who cares Thomas Smith |
||
| Back to top |
|||
|
AlexI
User Joined: Fri Dec 31st 2004 Location: UK |
cool |
||
| Back to top |
|||
|
Three Score
User ![]() Joined: Fri Jun 18th 2004 Location: behind you |
nice job formerly shadows of emptiness |
||
| Back to top |
|||
|
ThomasFN
User Joined: Thu Aug 26th 2004 Location: Cyberspace |
Heres an update, it puts in a couple more cool commands in. About 36kb, just overwrite all the files Thomas Smith |
||
| Back to top |
|||
|
AlexI
User Joined: Fri Dec 31st 2004 Location: UK |
What new commands? |
||
| Back to top |
|||
|
FXTC
User Joined: Sat Jul 3rd 2004 Location: CzechRepublic |
interesting pugin THX AMD 2,4 512MB RAM,2x200GB hdd,GforceFX5700GT128MB |
||
| Back to top |
|||
|
Three Score
User ![]() Joined: Fri Jun 18th 2004 Location: behind you |
DrawOB(Width,Height,ImageNumber) - Draws the dialog box onto the screen. Use during a seperate loop. DrawTitle(ImageNumber) - Draws a titlebar above the dialog box. DrawOBToolBar(Height, Color) - Draws a toolbar on your screen for use in the main loop. TitleClicked() - Returns a 1 if the title has been clicked. DeleteTitle() - Deletes the titlebar if it exists. DrawCommand(ImageNumber,CommandNumber,X,Y) - Draws seperate commands onto the box. Use in the same loop as the DrawOB command and use after the DrawOB command. DeleteCommand(CommandNumber, Previous) - Deletes the specified command. GoThroughCommands() - Returns the number of the command clicked (0 if none) DeleteAll() - Deletes all the commands, the dialog box and the titlebar (if existent) CommandClicked(CommandNumber) - Returns a 1 if the specified command has been clicked. IMPORTANT - For the plugin to work, you must copy the variable block from below into your dba file. This must be copied for the plugin to work, and the code must be above the code where you call the plugin functions. Rem OBFunc Plugin Init Type OB Global XPos Global YPos Global Width Global Height Global HighestSN EndType Global OBVar As OB please post what functions so we know and dont have to download it open it then read the readme just to decide if we want it or not formerly shadows of emptiness |
||
| Back to top |
|||
|
Google Ad
AdBot Joined: Aug 26th 2002 Location: Everywhere |
|||
| Back to top |
|||
|
ThomasFN
User Joined: Thu Aug 26th 2004 Location: Cyberspace |
Sure. I can't think of any way to improve my plugin - and I have no bugs reported so far. Any ideas? http://www.freeforum101.com/forum/index.php?mforum=fortfn - Thomas Smith |
||
| Back to top |
|||
|
Thebeely
User Joined: Wed May 4th 2005 Location: Croatia |
Maybe it already exists, but what about some command that will change picture if cursor is above picture. I'm not really smart... |
||
| Back to top |
|||
|
ThomasFN
User Joined: Thu Aug 26th 2004 Location: Cyberspace |
That would be an idea. I'll start work. http://www.freeforum101.com/forum/index.php?mforum=fortfn - Thomas Smith |
||
| Back to top |
|||
|
ThomasFN
User Joined: Thu Aug 26th 2004 Location: Cyberspace |
OK, I\'ve created an update. It has an extras command: MouseOnCommand(CommandNumber). You will not need to use this command to do what you say, Mean Mashine. In the DrawCommand function, there is an extra parameter, OCOImageNumber. Set this to the image that will be displayed when the mouse in over the command. Also, I\'ve fixed a problem with the DrawOB function, a simple copy-paste error, and two sets of media which you are free to use in your application. (That makes the file about 460 kb (0.46 mb)) Updated Command List: DrawOB(Width,Height,ImageNumber) - Draws the dialog box onto the screen. Use during a seperate loop. DrawTitle(ImageNumber) - Draws a titlebar above the dialog box. DrawOBToolBar(Height, Color) - Draws a toolbar on your screen for use in the main loop. TitleClicked() - Returns a 1 if the title has been clicked. DeleteTitle() - Deletes the titlebar if it exists. DrawCommand(ImageNumber,OCOImageNumber,CommandNumber,X,Y) - Draws seperate commands onto the box. Use in the same loop as the DrawOB command and use after the DrawOB command. DeleteCommand(CommandNumber, Previous) - Deletes the specified command. MouseOnCommand(CommandNumber) - Returns a 1 if the mouse is over the command. GoThroughCommands() - Returns the number of the command clicked (0 if none) DeleteAll() - Deletes all the commands, the dialog box and the titlebar (if existent) CommandClicked(CommandNumber) - Returns a 1 if the specified command has been clicked. Any more ideas? http://www.freeforum101.com/forum/index.php?mforum=fortfn - Thomas Smith |
||
| Back to top |
|||
|
ThomasFN
User Joined: Thu Aug 26th 2004 Location: Cyberspace |
I've got a problem with my forum profile - meaning I can't edit mesages or upload files. (Featured with my previous post) So all my Update files are on my forum: http://www.bbfree.com/FortFN/index.php?s=c2dab564e4b7261c7a73a6b1f9c4fc3c&showforum=9 It was nice to have my code featured on the newsletter! Although they made a mistake by saying it was a DLL - it is not, it is a dba file!? http://www.bbfree.com/FortFN/ |
||
| Back to top |
|||
|
Keaz
User Joined: Mon Sep 22nd 2003 Location: Somewhere in south Texas |
It's not a valid zip file. WinRAR won't open it. Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so... Bug Testing=Fun! Hmmmm.... DOES NOT COMPUTE! SYSTEM MALFUNTION! |
||
| Back to top |
|||
|
ThomasFN
User Joined: Thu Aug 26th 2004 Location: Cyberspace |
Try Winzip - or if you have XP, the built-in zip tool http://www.bbfree.com/FortFN/ |
||
| Back to top |
|||
Sorry, but it has been so long since anyone replied to this Thread that it has been automatically locked.
You may read it but not reply.
You may read it but not reply.
Forum Search
Enter a word or phrase to search our Forum for:
|
|




