Author Topic: Hud background.  (Read 6214 times)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Hud background.
« on: 1 May 2011, 04:49:39 »
 Before you guys release 3.51 i was wondering if you can add some sort of in game gui background graphic. Similar to conzar's version.
 https://forum.megaglest.org/index.php?topic=6384.0
(click to show/hide)
You dont have to do the custom arrangements i just want to be able to put a png or tga image behind the hud would that be too problematic to implement just that part?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Psychedelic_hands

  • Guest
Re: Hud background.
« Reply #1 on: 1 May 2011, 05:08:56 »
This can be achieved, with much better results with GAE's new widget code. So just wait till after the merge ;)

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Hud background.
« Reply #2 on: 6 May 2011, 01:43:07 »
This can be achieved, with much better results with GAE's new widget code. So just wait till after the merge ;)


Could you make a border such as this:
(click to show/hide)
I'm not talking about the layout, but making a heavily stylized image border. I know GAE could change lots of aspects with GUI but can it make borders such as these?
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: Hud background.
« Reply #3 on: 6 May 2011, 09:42:44 »
Yes. It would take a bit of work and some skills with 2d art but it is possible to reproduce that picture with GAE.
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hud background.
« Reply #4 on: 6 May 2011, 18:32:06 »
Bearing in mind that for some reason, this is MegaGlest's board (and seeing all discussion is about GAE, it should be moved there). We seem to be posting a lot of GAE topics here recently. :P

Yes. It would take a bit of work and some skills with 2d art but it is possible to reproduce that picture with GAE.
:o

I'd really love to see some more documentation on the GAE's widgets...
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zoythrus

  • Guest
Re: Hud background.
« Reply #5 on: 12 May 2011, 18:23:19 »
I'd really love to see some more documentation on the GAE's widgets...

this

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hud background.
« Reply #6 on: 13 May 2011, 04:29:22 »
I'd really love to see some more documentation on the GAE's widgets...

this
Yeah, trying to make a few more changes surprised me. Firstly, I'm a bit confused. We have a cfg file in the data folder, but also a txt file in the user folder. The txt file is much larger and seems more complete, and actually references things like the tooltip background, which the other (I think) does not. How does this work? Are both used? And of course, more documentation on available options and what they do would be nice, at least in brief.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Hud background.
« Reply #7 on: 6 June 2011, 12:46:53 »


This is something along the lines i want to do. Just a simple .png with an alpha channel placed behind interface buttons.

From what I've seen, I not sure if this is possible using widgets, even if it was it seems unnecessarily complicated.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hud background.
« Reply #8 on: 6 June 2011, 22:57:33 »
This is possible with GAE, which can now load images, etc. Sadly, there is pretty much no documentation except the example of the default widgets cfg and the source code, but it certainly does have very good potential. I'll be blunt and say MG should NOT implement this because that would just slow down the merge, which I say is top priority behind bug reports.

Thinking about it though, not sure how a raster graphic would do for a background image like that when people can use so many different screen resolutions... Would there be a way to resize for every screen size?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Hud background.
« Reply #9 on: 7 June 2011, 02:08:42 »
This is possible with GAE, which can now load images, etc.

What do you mean load images? If GAE could definitely do this then ill wait for the merge :). All i knew of was the widgets which didn't seem to do what i wanted.  I would imagine that the image would be scaled to fit the screen, with a normal screen/wide screen variation.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hud background.
« Reply #10 on: 7 June 2011, 05:07:51 »
This is possible with GAE, which can now load images, etc.

What do you mean load images? If GAE could definitely do this then ill wait for the merge :). All i knew of was the widgets which didn't seem to do what i wanted.  I would imagine that the image would be scaled to fit the screen, with a normal screen/wide screen variation.
I could be wrong, but the widget file loads all the menu textures, so I'd assume you'd be able to load your own textures too.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Hud background.
« Reply #11 on: 7 June 2011, 12:10:00 »
this should be really really easy to add, its just .... time. I will try my best to get some time to do it.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Hud background.
« Reply #12 on: 7 June 2011, 18:54:44 »
this should be really really easy to add, its just .... time. I will try my best to get some time to do it.
Thanks! No need to rush! If you guys do decide to implement this I could do some ui for megapack if you guys need.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hud background.
« Reply #13 on: 8 June 2011, 00:41:48 »
Because this is so critically important and it scares me to see more and more features implemented without enough focus on the merge, I post this again, this time bolded with big lettering:

I'll be blunt and say MG should NOT implement this because that would just slow down the merge, which I say is top priority behind bug reports.

After all, why waste time creating a flipping new feature when the merge does it better?!
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Hud background.
« Reply #14 on: 8 June 2011, 19:14:01 »

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: Hud background.
« Reply #15 on: 8 June 2011, 19:47:01 »
Really, poke?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Hud background.
« Reply #16 on: 9 June 2011, 01:02:04 »
Basically done now ( maybe still needs some poolishing like possibility to switch off HUD in options or via hotkey )

Just place a hud.png in a faction dir and its used.


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

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Hud background.
« Reply #17 on: 9 June 2011, 05:19:18 »
Awesome thank you! Cant wait to try it out! Would you use this for megapack? If i have some time this weekend i could make some UI for Megapack if you like!
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Hud background.
« Reply #18 on: 9 June 2011, 09:23:29 »
I don't know if everyone will like it, but you are welcome to create one. If I like it I will add it, but I think I will make the HUD optional ( switchable in the options menu ).
Huds look nice, but hide some parts of the screen, thats the problem :-D .

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

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: Hud background.
« Reply #19 on: 9 June 2011, 09:27:10 »
what happens at different resolutions and font sizes?

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Hud background.
« Reply #20 on: 9 June 2011, 11:45:18 »
Resolutions do not matter, but font sizes do ( and by this the resoltion a little bit too ). So better design a HUD where you leave some space where needed. All Text and buttons are rendered on top of the HUD so you will not miss anything ( it will just look bad in these cases )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: Hud background.
« Reply #21 on: 9 June 2011, 15:50:34 »
At last!, i know what im going to do what i get home!, oroerhaps i shoud fix some other stuff first, yes yes il do that!
WiP Game developer.
I do danish translations.
"i break stuff"

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: Hud background.
« Reply #22 on: 9 June 2011, 16:56:38 »
Cool! can't wait to add this to Vbros!
Get the Vbros': Packs 1, 2, 3, 4, and 5!

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Hud background.
« Reply #23 on: 9 June 2011, 21:09:06 »
in case someone needs my awful blue test hud  :angel:

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

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hud background.
« Reply #24 on: 9 June 2011, 22:25:47 »
Ok, so the resolution doesn't matter, but what about the aspect ratio, eg: 4:3 versus 16:9?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert