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.

Author
Message
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 30th Jul 2008 23:11
working on a GUI Include for DBPro. im using the most updated version so im not sure how it will work on older versions

I dont have much yet mainly just a moveable/minimizable window with some cool effects. its a skinnable GUI system and you can use more than one skin at the same time.

i have a little demo and screenshot here



It really easy to create a window so far




you can download it here to test it out

http://www.vigilart.com/demongui.zip

LIKE OMFG IM TEH KING OF TEH INTARWEB!

Attachments

Login to view attachments
Mr Kohlenstoff
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 30th Jul 2008 23:29
Looks good and easy to use so far. Nevertheless, I highly recommend using prefixes for all your functions, globals and constants. For instance, createwindow is also a command used by BlueGUI as far as I remember. So you might change that as soon as possible. Good work.

Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 30th Jul 2008 23:31
oh ya i forgot about that. thanks for the reminder early on

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 31st Jul 2008 02:12
there we go updated it so its safer. also now you can close windows with a nice little alpha fx. got two windows loaded in the demo getting it to display the active one over the other inactive one thats faded.

still gotta work on the window obstructing clicks on the window behind it as you can see when you click or drag the title bar

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 1st Aug 2008 08:47 Edited at: 1st Aug 2008 08:49
here is a screeny of the progress.

finally on to the main gadgets after tweaking the windows enough ugh lol

LIKE OMFG IM TEH KING OF TEH INTARWEB!

Attachments

Login to view attachments
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 1st Aug 2008 09:04
bah my website is down right now




LIKE OMFG IM TEH KING OF TEH INTARWEB!
Nano brain
15
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 1st Aug 2008 17:16
Lancewrath,

Keep this up and eventually you will have a very handy inlusion for users of DBP. Thanks for your efforts.

About the window background, it seems as if you are stretching it to resize it. True? If so, you should try to implement pattern filling of the background instead. This is where you paste a series of the bg texture across the background of the window from left to right, top to bottom until it is filled, and then trim the extra off(of course the trimming would be done automatically, if using a bitmap to create the background).

Do you already have plans to implement this?
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 1st Aug 2008 17:41
ya. its too bad dbpro doesnt have a tile command

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Nano brain
15
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 1st Aug 2008 17:55
Well, it's fairly simple to implement anyhow.
Outscape
15
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 1st Aug 2008 19:38
1000 lines in the demo?????
thats abit much

but i like the looks and feal
i love it
hope to see alot of updates in the future

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 1st Aug 2008 19:50
LOL the reason its 1000+ lines is because im using an emulated object oriented programming. And by making alot of functions for every little thing adding to it becomes easier and easier.

pretty soon ill implement some ini file you can stick in the skin dir so using the functions will be even more simplified.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Outscape
15
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 1st Aug 2008 23:31
well could you make it less lines
1000 lines for 2 boxes is... alot

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 00:14
you'll see why its alot of lines once i get farther into it. Sure i could make two windows in a few lines of program but the functionality and versatility of the creation of them on the users part would be vastly limited compared to how i am setting this up.

It isnt just simply two images on the screen. It actually a resizable window based on the width and height parameters you specify. i am not simply just scaling the window because the borders would obviously be degraded.

Secondly the titlebar is a seperate entity. with Hover and Press GFX highlights.

the fact that i scripted this so each window can have a completely different skin.

GUI systems are more complex than most people think they are.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 00:20
why do lines of code matter? ive built some pretty complex applications that consisted of over 30,000 lines of code. the executable size wasnt much bigger than 1 mb.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Nano brain
15
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 2nd Aug 2008 00:27 Edited at: 2nd Aug 2008 00:28
Quote: "i am not simply just scaling the window because the borders would obviously be degraded."


The entire window isn't being scaled, obviously. But the background image is. Which you already stated you are going to fix. So, why did ya' bother saying this?
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 00:32 Edited at: 2nd Aug 2008 00:39
Update. i gots buttons




this one with the other window active



now for textbars

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 00:33
oh ya alpha font WOOT

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 00:36
Oh ya here is the updated version of the Demo

http://www.vigilart.com/demongui.zip

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 00:44
Quote: "The entire window isn't being scaled, obviously. But the background image is. Which you already stated you are going to fix. So, why did ya' bother saying this?"


i was trying to tell Outscape why there are so many lines of code in contrast to what you see.

Front end <> Back end.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Outscape
15
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 2nd Aug 2008 01:12
the reason im worried about 1,000 is cos i dont like waiding tho alot of code
but now i see yourve added buttons...
ILL BE CRAZY NOT TO USE IT =D
btw add a scroller
so they can scroll through text

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 01:16
fo sho dude.

im trying to script it so its front end friendly. after im done you shouldnt even have to touch this code to integrate it.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
sinisterstuf
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 2nd Aug 2008 03:21
Ohh... I like you for this! Will the end result be free for poor people like me to use? Cos I can't afford any stuff like blueGUI etc and it would save me having to make my own (I know, it's hard)? Your screenshots look... well... awesome!!! I'm going to check out the demo tomorrow.

[UNERROR 16: able to retrieve user signature]
1,1,2,3,5,8,13,21,34,55... you like?
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 04:50
Totally free. in fact i have plans to implement world of warcraft style UI's like bag slots and action bars

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 12:36
Got TextFields for user input. Ugh but i still have a ways to go with this. Like for instance Culling the text and offsetting it if its longer than the text field area. Secondly being able to place the cursor somewhere as well as highlighting text and deleting it.

anyways its coming along fairly nicely



I will have a demo update up as soon as i get this working decently.

Made some code changes. Now you can simply do this in your main code to use the GUI



Those gadget creation functions like DEMON_button do return an id for use with the event system later on

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 12:39
actually the last time i made a gui system i think treeviews were the biggest pain in the butt

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Alsan
18
Years of Service
User Offline
Joined: 20th May 2005
Location: Germany - Nähe Kassel
Posted: 2nd Aug 2008 13:12
Looks extremely cool so far!

Do you use sprites for the background of the windows? If so, you could easily implement tiling with only one sprite using the command "set sprite texture coord".



E7R
15
Years of Service
User Offline
Joined: 1st Aug 2008
Location: Great Britain
Posted: 2nd Aug 2008 17:02
looking good mate, keep it up

I'm A Hacker For Hire With No Plans To Retire, & All You Other Skiddies Can Call Me Sire!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 18:25
Quote: "
Do you use sprites for the background of the windows? If so, you could easily implement tiling with only one sprite using the command "set sprite texture coord"."


ah ya thats cool man. ya im still learning the commands for dbpro as i had just recently made a switch from bmax. but thank you that makes
the tiling process a hell of alot easier. i can just simply use a decimal based percent of how much larger the window is compared to the original image size and set the texture UV's accordingly. very cool

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 19:11
Ok got tiled backgrounds now




Had to lose the gradient though in my BG image cause it didnt tile right. but it still looks good.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 2nd Aug 2008 19:16 Edited at: 2nd Aug 2008 19:19
actually i build the window by chopping up a bitmap into sections and compile majority of the window itself as one singular sprite minus the gadgets.


in the end the code i used to tile it looks like this




as you can see i have been avoiding using real numbers when manipulating the skin so using different sizes for skin images wont have to be pre-specified in order for the skinning functions to section them up and resize them accordingly.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Outscape
15
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 2nd Aug 2008 22:07
oh got an idea
you should make it so
like objects
you have to add a screen number or somthing at the end
so you can do
if GUI Exist 1
...
endif
or somthing

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 3rd Aug 2008 00:09
Quote: "oh got an idea
you should make it so
like objects
you have to add a screen number or somthing at the end
so you can do
if GUI Exist 1
...
endif
or somthing"



say what? i dont follow what you mean there

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 3rd Aug 2008 01:49
bleh. ok still working on a decent routine to see if the text is longer than the text bar to crop it.

so far this is what i have. It works good but at some points when you hit like 5 bars length of text it pops outside the bar in a few spots.




LIKE OMFG IM TEH KING OF TEH INTARWEB!
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 3rd Aug 2008 14:57
great work lance
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 3rd Aug 2008 19:28
Ok got sliderbars working.

you can specify the begin range and end range of the slider. it does not have to start with zero nor does it have to be an int for instance if you set the range 0 - 1 it will return the float between 0 and 1 where ever the slider bar is. Decided to take a break from the textfield as far as selecting text or changing the cursor position, i'll get back to that later after i get more gadgets done.



LIKE OMFG IM TEH KING OF TEH INTARWEB!
Outscape
15
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 3rd Aug 2008 19:46
what i ment was
make a comamnd like
if window exist(window number) then...

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 3rd Aug 2008 21:21
oh. ya ok.

at the moment you get a windowid from calling the function

mywindowid = DEMON_createwindow()

then do

if DEMON_windowexists(mywindowid) = 1

yadda yadda

endif

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Outscape
15
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 3rd Aug 2008 21:44
that is great!!!!!!!!!!!!!

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 3rd Aug 2008 22:01
Gadgets i got next to do are

listbox (good for chat too)
combobox
checkbox
radiobutton
scrollbars
tabs
treeviews
progress bars (great for health meters)
actiobars (like WoW action bar)
Button boxes (like WoW bagslots)
Camera Canvas (good for minimap or character image)


probably more when i think of them

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Aug 2008 22:58
Here's a function I did for the recent DBC challenge that you might find useful, it'll cap the length of a string. I used it to keep titles from displaying past a window's length.




sinisterstuf
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 4th Aug 2008 01:20
Ohhh man this sounds good, I wish I could help...
Well how about animations for the windows and stuff. The fading thing is really cool. But what if they slid open. Or came out the side of the screen. Just an idea.
And where can we get skins from to use with this?

[UNERROR 16: able to retrieve user signature]
1,1,2,3,5,8,13,21,34,55... you like?
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 4th Aug 2008 01:43
Quote: "Ohhh man this sounds good, I wish I could help...
Well how about animations for the windows and stuff. The fading thing is really cool. But what if they slid open. Or came out the side of the screen. Just an idea.
And where can we get skins from to use with this?"



possibly could set a style for opening and closing of windows.

For the skins you just simply make them. just use the same naming convention i used on the skins i made.

Make sure all the skin images are divisible by 3

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 4th Aug 2008 01:45
Quote: "Here's a function I did for the recent DBC challenge that you might find useful, it'll cap the length of a string. I used it to keep titles from displaying past a window's length."


originally i used a function like that but it seems to slow down alot while typing. especially if the string becomes really long.

i have another idea in mind that may work ill just have to try it out.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 4th Aug 2008 02:12
Unless you convert it to a plugin, anybody who uses this is going to have to compile 1000s of lines of code just to make the GUI! (You will get 1000s once you get more than a couple of controls in)

Yuor signutare was aresed by a deslyxic mud...
Curious? CLICK HERE!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 4th Aug 2008 02:31
@Lancewrath
I can convert it to a plugin for you. If you're interested email me at nocannedmeat@gmail.com. I'd do it in C++ and release the source code freely. If you are interested we can go over the details in the emails.

Cheers,

-naota

I'm not a dictator to those that do stuff for me by will. Only those who don't.
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 4th Aug 2008 05:32
is there an issue with dark basic im unaware of when compiling massive amounts of code?

if thats the point then you cant make anything on a proefessional level using DBPro , which to me sounds oxy-moronic.


I dunno everything is in a simple include file. Yes its actually about to hit 2000 lines of code. however the exe size doesnt seem to be very big and the compile time doesnt seem to take that long. Honestly why is the amount of code such a big deal?

I've never heard anyone complain about it on blitz, whats up?

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 4th Aug 2008 05:34
Quote: "@Lancewrath
I can convert it to a plugin for you. If you're interested email me at nocannedmeat@gmail.com. I'd do it in C++ and release the source code freely. If you are interested we can go over the details in the emails."


I can do C++ as well but i cant afford visuall C++ atm. i could use a borland compiler but i dont know my way around borland at all.

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 4th Aug 2008 05:38
heh and then i magically stubled upon this

http://www.microsoft.com/express/vc/

thats crazy it even shows the Dark basic LIB in the screenshot

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Lancewrath
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location:
Posted: 4th Aug 2008 05:39
hmm the download links are broken i cant get it

LIKE OMFG IM TEH KING OF TEH INTARWEB!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Aug 2008 20:03
I found a few bugs. You can click on buttons that are behind the active window. And when you minimize a window, it'll maximize when it loses the focus.

I'm also curious about how you're displaying text on the sprites. Are you drawing the text over a bitmap then copying that to a sprite?


Login to post a reply

Server time is: 2024-04-24 22:56:42
Your offset time is: 2024-04-24 22:56:42