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.

Code Snippets / vGui Codename Workbench

Author
Message
Raven
21
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 7th Jun 2005 20:06 Edited at: 7th Jun 2005 20:35
There isn't much to this yet, as it is just really buttons for now.
The plan is to add features slowly but steadily building up the framework in the areas people need.

This is purely a button interface, with limited options. Right not it just creates text buttons. What I plan on doing is making this in DB/P, creating everything I need in the language; right now it handled 100 Entities (Rendering, Collision Check and Activity Callback) without any slow-downs.

While it is a fairly small number of objects and graphics, this includes the slow DB/P text routine. This will be changed later to something that can provide much more speed and control.



I want to make it to allow for a lot of quick customisability.
So people who use it can simply create thier own OnPaint() functions without worrying about the complex handling of all the entities and such. Yet leave in enough complexity to allow people who need it to use information directly.

Have a little play and let me know what you think of this though.

Here's an exmaple of how to use it:


These whole section will be completely recoded, I'm still not sure on the naming convention; but the best part of Alpha's is you can tinker without worrying about compatibility ^_^

What I will work on next now I'm happy understanding what can and can't be done with DB/P is the Window System, this includes the Main Window itself.

Now don't get exciting, as I won't be making external windows (that would be too much of a pain in the arse to achieve) but you will have full internal window control.

Raven
21
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 7th Jun 2005 20:36
Quick heads up, I figured it was just a problem with how I included the file; but turns out you need to grab all the Globals and Types... throw them into your main source file.

Sorry about that.

Raven
21
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 7th Jun 2005 21:03 Edited at: 7th Jun 2005 21:08
wow who'd of thunk a version.0.2 already
well I completely fixed the issue with including thanks to Kentaree, also completely fixed the Debug Function; along with event issues.

So effectively speaking it's now 'Bug-Free' code.
(or atleast does what it's suppose to heh)

UserInterface.dba


ExampleUI.1.dba


Well enjoy

MikeS
Retired Moderator
23
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 8th Jun 2005 07:39
I like it, it's very slick. It's very robust as you say.



A book? I hate book. Book is stupid.
(Formerly Yellow)
dj blackdragon3710
21
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 8th Jun 2005 07:41
well raven, of all the past flame wars against eachother, I have to say that this is some great code....

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<
Three Score
22
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 8th Jun 2005 07:50
Wow!
very very nice
so can we change things such as color and such easily without having to modify function code?

formerly shadows of emptiness
Raven
21
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 9th Jun 2005 01:03
Next version yes.
I'll have a built-in Color-set, but you'll be able to place an array in the directory you run the application ([appname].exe.color) and that will be used instead.

I plan to put some serious thought in to how to go about the painting routines. I think what I'll so is have a structure with flags, so you can change the overall look of something with your own paint routines without touching the framework.

So like

uiVisualStyle.Button = uiTrue

and then it would use a function called .. ownerButton_OnPaint() instead. Allowing you to create your own button painting routine, that way if there are any rendering bugs you can let it use the internal one again.

Another think I would like to do, is changing how things are rendered, so you can use a ([appname].style). That would contain an entire Visual Style for the application your creating.

Before I get too deep in to development I'm going to try out my idea's on the code above, and make sure that I can keep it stable before moving on to more complex tasks.

dj blackdragon3710
21
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 9th Jun 2005 01:28
sounds extremely awesome Raven...and looks it too.

<<<<<Used to be "djblackdragon" with being registered in January, 2003, no matter what it says on the left<<<<<
ALPHA ZERO PRODUCTIONS
22
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 10th Jun 2005 08:07
can you post a screenshot please ?

Your signature has been erased by a mod - Do not advertise in your sig
Raven
21
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 10th Jun 2005 08:16 Edited at: 10th Jun 2005 08:16
Will be working on v.0.3 shortly see what I can add.
Right now I'm working on my website (again), but I'll probably get bored again in an hour.



Login to post a reply

Server time is: 2026-07-03 05:01:56
Your offset time is: 2026-07-03 05:01:56