News:

MegaGlests' game mods menu let's you install many new mods. Even more are available on the MegaGlest Wiki and the Mods forum.

Main Menu

CE-GUI branch: feature/ce-gui

Started by softcoder, 9 February 2014, 07:55:37

softcoder

I've started work on looking at replacing our UI with CE-GUI. So far its working out fairly easy, I was able to add this dialog box on the main menu in one day and its fully clickable, resizeable and dragable!



Whats great about CE-GUI is you can create themes via XML files and they even have a GUI editor. It was quite easy to integrate thus far.

Julius

That will be a big improvement to the look of MegaGlest!

I would suggest the use of this theme: http://cegui.org.uk/forum/viewtopic.php?f=9&t=6679

tomreyn

Looks like a good theme!

And at least so far, with just the one window without text displayed as in the screen shot above, FPS is not impacted at all for me, neither in menus nor in-game.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

#3
Yes its a great theme, theres what it looks like:

To see this in git add this to glestuser.ini:

CEGUI-Theme-Path=$APPLICATIONPATH/../../data/glest_game/data/cegui/themes/glossyserpent.1.0.7/cegui/
CEGUI-Theme-Name=GlossySerpent
CEGUI-Theme-Name-Cursors=GlossySerpentCursors




To see some of what is possible in ce-gui check out: http://cegui.org.uk/

titi

Thats nice I bet we will find some interested MG-artists soon who make our own theme too :-) .



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

Notice how 'clear' the font rendering is. This will likely solve the problem we had with our previous rendering of fonts showing blurry. You can really see the difference in the screenshot above.

tomreyn

I did notice this immediately. :) Also the text is now brighter, proper white (which I think it was supposed to be before, too).

Hopefully we won't loose the UTF-16/multi-byte/RTL capabilities this way, though?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

According to their website they offer full support. We should lose nothing. Checkout out their videos on the website i mentioned above. There are lots of demos of the widgets and how they work.

The editor to make themes etc (you can build menus, assign fonts, mouse pointer etc..) is called CEED and reference on the cegui website. It is python based.

titi

Just so we don't forget it: CE-GUI is Mit License so we must add the license text  in our docs section too.



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

softcoder

#9
Here is a screenshot of the main menu UI redone in CEGUI.

Using CE-GUI takes care of word wrapping in message boxes, adds scrollbars when the text is too large to fit the view area, ensures you cannot click under the messagebox on buttons below, allows you to drag the dialog around out of the way.



Using CEED (the CEGUI designer): (Help guide for how to use Ceed is here: http://static.cegui.org.uk/docs/ceed-snapshot11/user-manual.pdf)

Furthermore, text can use format tags to do all kinds of things: http://cegui.org.uk/wiki/Formatting_Tags_in_CEGUI


GunChleoc

Quote from: softcoder on 13 February 2014, 03:58:06
Using CE-GUI takes care of word wrapping in message boxes, adds scrollbars when the text is too large to fit the view area, ensures you cannot click under the messagebox on buttons below, allows you to drag the dialog around out of the way.
This is excellent news :)

Julius

That looks excellent! Now on to the in-game HUD which is quite horrible in the old version :p

Coldfusionstorm

Huraaay i can do it too :D.



Now to understand the schema and and other configuration files that makes it possible.

:/.
WiP Game developer.
I do danish translations.
"i break stuff"

softcoder

Here's another look at the misc tab of Options Screen using CEGUI: (ignore the stuff behind. its the old UI that has not been removed). **NOTE the language combobox shows each language in its native font!


softcoder

Here's another look at the misc tab of Options Screen using CEGUI: (ignore the stuff behind. its the old UI that has not been removed). **NOTE the language combobox shows each language in its native font!


GunChleoc


titi

Looking at the screenshots I see the old dialogs in background too ( you mentioned it too ).
I am a bit concerned about how the code will look like in the end if the old stuff stays in place. I think its better if you really remove the old stuff so we only get the new proper things. Even if some things might get accidently lost by this, it gives us a much more proper start using ce-gui. So don't hesistate, remove old stuff in the menus :) .



Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

tomreyn

I agree - we can always run 3.9.1 or even the develop branch next to it to compare.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

I left the old stuff only until i am finished replacing the code, as i did in the main menu ALL old code goes away when i am done (don't worry about that) :)

titi_son

Do we have sliders?
Because we could use them for the camera move speed for example.

The new UI looks really great.  :D
My first Tilseset: SPRING :) (included in Megaglest )


Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

kratos

It's a good idea, but maybe you can adjust esteticly the CE-GUI.

Julius

Got it running for the in-game HUD also by now?

softcoder

Not yet, had many distractions for MegaGlest but I have in recent weeks been continuing on this work.

kagu

I have to admit , from the day that I saw that this is coming , I'm longing for it.
Megaglest Chat
Please support:
1. CEGUI 2. In-process games 3. Registered Players
Playtime:
Every Sunday 21:00 - 01:00 CET

jammyjamjamman

#24
Actually, I was wondering with this new feature would it be possible to store new themes in the mod centre? It would be quite nice if the MG-user had an easy-to-add selection of themes to choose from that are created by the community
"All right, I've been thinking. When life gives you lemons? Don't make lemonade. Make life take the lemons back! Get mad! 'I don't want your damn lemons! What am I supposed to do with these?'" ~Cave Johnson, Portal 2