[WIP] libZDGUI v0.0.1 - ZDoom GUI widgets library for mods

Any utility that assists in the creation of mods, assets, etc, go here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

[WIP] libZDGUI v0.0.1 - ZDoom GUI widgets library for mods

Postby cybermind » Wed Apr 27, 2011 3:40 pm

New version of libZDGUI powered by GDCC is released. Currently it remains in alpha stage and should not be used for real projects.

Image

About libZDGUI.
libZDGUI is a graphical user interface (GUI) widget toolkit for use in mods for ZDoom-based games. It provides an extensible event-driven framework and a set of default widgets like buttons, windows, listboxes etc.

Features:
- Generic widget framework which could run any kind of widget combinations.
- Easy creation of new widgets.
- Mouse control (supports dragging)
- Easy addition of new fonts and cursors.
- Graphics system which uses clipping rectangles to draw overlapping widgets of any complexity, including support for scaled images.
- Widget focusing system which is able to set a modal focus for widgets.
- Utility module with C++ STL-like vectors, lists, queues and strings.

Default widgets:
- Window (basic resizable and draggable window)
- Button (generic image button)
- Label (with word wrapping)
- Container (could include any kind of other widgets, including other containers)
- Scrolling box (provides scroll bars to display content not fit on screen)
- List box (containing string values)
- Checkbox
- Radiobutton (grouped in containers)
- Slider (horizontal and vertical)
- Image (any image)


Additional information and how-to is in README.md file

GitHub: https://github.com/Mistranger/libzdgui

Old post about tech demo:
Spoiler:
Attachments
libzdgui.7z
libZDGUI v0.0.1
(195.86 KiB) Downloaded 128 times
libzdgui.zip
(OUTDATED) libZDGUI Tech Demo
(74.98 KiB) Downloaded 217 times
Last edited by cybermind on Mon Jan 30, 2017 1:16 pm, edited 4 times in total.
User avatar
cybermind
 
Joined: 03 Jan 2011

Re: [WIP] GUI Library 0.1

Postby The_Funktasm » Wed Apr 27, 2011 4:32 pm

That's incredibly interesting, and I'm going to have to look into some of the code later.
The_Funktasm
Banned User
 
Joined: 17 Mar 2009
Location: done making ZDF free sprites

Re: [WIP] GUI Library 0.1

Postby MetalPapat » Wed Apr 27, 2011 5:43 pm

That's so cool. There is a lot of possibilities for this kind of thing. Like a map or status screen or just inventory system.
User avatar
MetalPapat
Groovy
 
Joined: 21 Jul 2007
Location: France

Re: [WIP] GUI Library 0.1

Postby Nash » Sun Feb 12, 2012 10:17 am

I like how you select which windows draw in front, and clicking on a window will properly select that particular window.

Any chance of seeing the source on this?
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: [WIP] GUI Library 0.1

Postby wildweasel » Sun Feb 12, 2012 2:42 pm

Nash wrote:I like how you select which windows draw in front, and clicking on a window will properly select that particular window.

Any chance of seeing the source on this?

Holy topic-bump, Nash. =P

But yeah, I'm sure the source to this would be useful. If not, then I know of a certain in-development project that might serve as an adequate replacement...though I'm unsure if I'm at liberty to discuss the details.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: [WIP] GUI Library 0.1

Postby Nash » Sun Feb 12, 2012 3:35 pm

Yeah sorry for the bump... it's just that this thread doesn't have any feedback so I'm afraid the OP assumes there's no interest. So I bumped it in the hope that he sees it and considers releasing the source...
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: [WIP] GUI Library 0.1

Postby Captain Proof » Sun Feb 12, 2012 4:22 pm

I just noticed this, I am gonna try it out as soon as I finish catching up on Walking Dead.

EDIT:The code needs to be released, with some work done it might be really useful.
User avatar
Captain Proof
Yeah, I am as sleazy as this avatar looks
 
Joined: 27 Aug 2008
Location: Henderson

Re: [WIP] GUI Library 0.1

Postby Nero » Sun Feb 12, 2012 10:03 pm

I'm all on board for the source to be released. I'm studying this and a couple other gui mods in lieu of creating my own. I'd like to see how this is accomplished and a compiled acs file isn't helping.

So bump away!
User avatar
Nero
Royal Boredom....Why can't I do this in Windows?
 
Joined: 06 Sep 2006
Location: Middle of Nowheresville Il.

Re: [WIP] GUI Library 0.1

Postby Angelofthefallen » Mon Feb 13, 2012 12:57 am

I'd love to get a look at this code. Been looking to make an RPG mod, this could really help with the inventory system.
User avatar
Angelofthefallen
✠Nightmare Fuel Commander✠
 
Joined: 15 Jun 2008
Location: Looking Over Your Shoulder ;)

Re: [WIP] GUI Library 0.1

Postby Captain Proof » Mon Feb 13, 2012 9:50 am

Angelofthefallen wrote:I'd love to get a look at this code. Been looking to make an RPG mod, this could really help with the inventory system.

I didn't even think of that, I was thinking of making a Space Hulk style Motion Detector.
User avatar
Captain Proof
Yeah, I am as sleazy as this avatar looks
 
Joined: 27 Aug 2008
Location: Henderson

Re: [WIP] GUI Library 0.1

Postby Ravick » Mon Feb 13, 2012 11:37 am

Can't take a look now, but i will when I get home. Just a question: Is there a way to allow player to type a string in game?
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

Re: [WIP] GUI Library 0.1

Postby Nero » Mon Feb 13, 2012 6:55 pm

In what context specifically?
User avatar
Nero
Royal Boredom....Why can't I do this in Windows?
 
Joined: 06 Sep 2006
Location: Middle of Nowheresville Il.

Re: [WIP] GUI Library 0.1

Postby Ravick » Tue Feb 14, 2012 2:32 pm

Well, I'm doing a mod that has its own maps, and also allows "gameplay modding" if playing the IWAD maps, or loading it with other map mod.

So the menu has an 'episode' that loads a map where player can choose options in a console and specify what IWAD he is using and other stuff. The IWAD specification is just to set the map names to be loaded when player leaves the map. But there is also mods with custom map names, so I want to allow player to specify the map name format.

Would also be very useful to create a way to player to write something in the game, specially because there is a lot of 'usable' computers in my mod, so I could make more variable stuff with it.

I know Blue Shadow's numbers console, but if i'd use the same method it would be hard to make all the letters of the keyboard.
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

Re: [WIP] GUI Library 0.1

Postby cq75 » Wed Feb 15, 2012 9:05 pm

It seems like there is no way to get all of the letters of the keyboard See GetPlayerInput

What you could do, though, is bring up an on-screen keyboard and have the player move a cursor to a key using the movement keys and pressing FIRE to select it. That's how I made the floor selection screen for the elevator of my Blake Stone mod, the player would move the cursor to floor 1-9 and hit fire. Your system would be a lot bigger, and likely more tedious to use, though.
User avatar
cq75
I've given myself a number, and taken away my name.
 
Joined: 27 Dec 2009
Location: Just beyond the line horizon

Re: [WIP] GUI Library 0.1

Postby Ravick » Thu Feb 16, 2012 6:57 am

Yeah, I was afraid of that :(

I've seem the same idea of the on screen keyboard in Blue Shadow's doom3 keypad, I didn't know your mod (Can you post a link, please? :) )

Yes, it'd be tedious to use (and code!), it's 26, and more other characters. I think I will make a 'slot' system, that changes the characters in order by the "foward" and "backward" keys, but just to type map names, not to use in the computers.
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

Next

Return to Editors / Asset Manipulation

Who is online

Users browsing this forum: No registered users and 1 guest