The New GUI

The New GUI

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

The New GUI

Post by jouninkomiko »

Ok guys, I'm making a sticky post for details on the new GUI system in development. I have decided to use http://www.cegui.org.uk, which is a fairly complicated, not very well documented (yet) GUI system that can render in OGRE, OpenGL, or D3D, which is very cool. Once coded up, the GUI can be defined in external xml files. Also, a new feature added to the library recently allows for skinning, which is the point of this post. We need people to go to this site, learn how the skinning system works (in particular, falagard, the name of the system) and make a skin for the GUI. I personally think it would be cool for someone to take the art from OTA and make a skin out of that, and also make a new age one. CEGUI as a whole is, as I said, complicated, so I'm spending a bunch of time writing my own test applications and reading others code so I can understand how it works. I'll be posting those apps here for those curious and those who would like to help somehow.
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Post by Masse »

thats damn good news 8) if i get REALLY bored i might take a look at the skinning :wink: but i might have too much stuff todo allready :-)
User avatar
BvDorp
Posts: 439
Joined: 14 Oct 2005, 12:09

Post by BvDorp »

Wow this looks awesome! Will this system support for all features asked? For now I see:

- Chatting
- Settings dialog
- Level selections etc (allows for single player?)

And can we integrate the lobby into this or will it stay out of Spring?

Perhaps we can go to some system like BF uses: mod selection, single player, multi player, all in the same GUI.
jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

Post by jouninkomiko »

i havent checked out the code to betalord's lobby, but if all of his functionality is outside in dlls, then skinning a lobby and embedding it into spring itself is not inconceivable.

As for the other features, those are more of a pre-game gui. atm i am focusing on the in-game gui, but other guis will be easier to put in. especially after i've gone through the trouble of learning cegui
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

I might look into making a skin. Dunno how good it will look, but we will see.
User avatar
Weaver
Posts: 644
Joined: 07 Jul 2005, 21:15

Post by Weaver »

I have some ideas I'd like to try with this.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

The lack of almost any sort of documentation whatsoever is hampering my efforts slightly. But I am stubborn, and will persavere. Good luck with your experiments Weaver.
User avatar
Weaver
Posts: 644
Joined: 07 Jul 2005, 21:15

Post by Weaver »

The Falagard tutorial, for those who haven't found it yet.

http://www.cegui.org.uk/wiki/index.php/ ... umentation
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post by Michilus_nimbus »

Does this mean you're going to do a complete rewrite of the new gui?
Does this mean there's actually going to be a new gui?

Hurray!
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Well now that I have remembered that all the GUI stuff is actually stored in the totala1.hpi or whatever it is, I have started to make some real progress.

And I did find those 'tutorials'. They suck.
User avatar
DeathHawk
Posts: 278
Joined: 19 Oct 2005, 02:02

Post by DeathHawk »

its Finally happening The new GUI finally arriving i dont know about u guys but i am siked!!!! :-) !!!
renrutal
Posts: 84
Joined: 28 Apr 2005, 16:45

Post by renrutal »

/me imagines a perfect modular cl/g-ui interface combo that will revolutionize the RTS market

*yawn* too troublesome to code ;)
Torrasque
Posts: 1022
Joined: 05 Oct 2004, 23:55

Post by Torrasque »

Good luck Jouninkomiko.

I've got a little fear. All the skin I've seen was rough, thick. I liked the thinness of the "old newGui" and I hope something similar could be done.

What is your plan to incorporate this lib to Spring. It seem complicated :(
jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

Post by jouninkomiko »

haha yes, it is very complicated. the problem at the moment is the lack of documentation and tutorials, but i am in the middle of discussions on the forum, and i am going to find their irc channel and ask enough questions to get started. the plan at the moment is to create the widgets needed for the base in-game gui, which can then have a variety of skins applied. if you like the way the gui looks right now... make a skin for it! the more skins we have, the easier it will be to test. my plan right now is to have an external application to run the interface for testing purposes. when it is functional enough, i will drag it into spring, and remove the old code that is no longer needed.

Artists should go here, to the bottom of the page.

http://www.cegui.org.uk/wiki/index.php/Tutorials
renrutal
Posts: 84
Joined: 28 Apr 2005, 16:45

Post by renrutal »

The very first skin is usually very complicated to get, but when you get it, it all downhill from there, for everyone.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

OK ive done some of it, but this is just to tedious for me. If anyone else want to make continue making the skin, you can get what I have completed so far from here:
http://maelstrom.wik3d.com/files/Skin.7z

Just unzip that file into the CEGUI Demos/datafiles/imagesets/ directory after downloading http://www.cegui.org.uk/modules/mydownl ... d=4&lid=56

Good luck with it.
EDIT: Fixed links
Last edited by Maelstrom on 22 Dec 2005, 09:17, edited 1 time in total.
renrutal
Posts: 84
Joined: 28 Apr 2005, 16:45

Post by renrutal »

Just one warning to the future CEGUI skinners:

Version 0.5 is coming and a lot of things will be dropped, so pay attention to what you're developing. Visit their site and check the Development Roadmap.
User avatar
Weaver
Posts: 644
Joined: 07 Jul 2005, 21:15

Post by Weaver »

Maelstrom, the program is looking for png and you have given us a tga image. I changed the extension in the .imageset but I think the size might be wrong too.
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Damnit, did i send the wrong file? OK, Now it should all work. Download the thing in the other post again. The PNG I was using was hidden off the side of the window. I really dont like this skinning program btw, but if it gets the job done...
renrutal
Posts: 84
Joined: 28 Apr 2005, 16:45

Post by renrutal »

Also for anyone who wants to test CEGUI in a standalone app first, I suggest downloading the CEGUI source code, and build the Samples directory.

Falagard demo and Demo8 are really great testing cases. Specially Demo8 which uses the Lua scripting language to handle all the gui code.

Jouninkomiko, you could use Demo8 as the basis of Spring's GUI code.
Post Reply

Return to “Engine”