How to make a HUD?

Started by Disastorm, August 23, 2008, 07:00:09 PM

Previous topic - Next topic

Disastorm

Is there any classes or anything that let you make a HUD like in-game text windows, Health Bars, Skill buttons, etc??

EgonOlsen

In the util-package, there's the Overlay-class that does something like that. Either use that or do a (scaled) blit from a texture. Don't use the blit-methods that are taking an int[] unless you are limited to software rendering anyway. They are quite slow in hardware.

Melssj5

I make it using the blitting methods. But my HUD is not a great thing. a Radar, a crosshair, 2 life meters (one graphical and one using numbers)
Nada por ahora

Jonas

If your using software mode you could use Swing/Awt to make GUI's too.

In hardware mode that is a bit more tricky..I think Fenggui is pretty easy to use for basic GUI stuff then.

Of course, if you only need lifebars/other simple stuff then drawing them using an Overlay is probably the most simple approach.
Simple things should be simple, complex things should be possible - Alan Kay

Disastorm

#4
How would you put a FengGUI onto the jpct window?

cyberkilla

Quote from: Disastorm on August 25, 2008, 01:09:40 AM
How would you put a FengGUI onto the jpct window?

I believe that they have documentation on their website.
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG