In-Game Interface how??

ruichaves

28-07-2007 00:32:18

How to implement a in-game interface??

QuickGUI could do this stuff??

Jekteir

28-07-2007 01:02:45

QuickGUI does not capture input, it only responds to input when you tell it the input is there. So you would need an input library (e.g. OIS) to actual get user input. Obviously, QuickGUI doesn't handle 3D graphics, being a GUI for 2D stuff. But it should be able to supply useful 2D 'HUD'-style controls for in-game user interface, yes, if you provide it with the input information, and use the events on the QuickGUI buttons to result in real actions in-game.

ruichaves

28-07-2007 01:12:36

So, if i want to put a image with life bar, it's possible to do it with quickgui??

Or i have to do something else?!!

Can you do an example, to put some stuff to show something to the player ?

Jekteir

28-07-2007 01:17:43

This post:

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=4664

has a link the the QuickGUI source files, which include a samples folder with sample code in it. That has examples of how to create game elements, including a lifebar. The image of what that demo creates can be seen at the top of that post.

kungfoomasta

28-07-2007 01:25:10

hey ruichaves! You need to dig into the code and run the demo, man! :wink:

I'd just like to add that the ProgressBar widget has been fixed, and will be in the next release. There was a problem described by thecaptain in another thread.. anyhow its solved. You can use the v0.9.5 progress bar widget until 0.9.6 is released.

ruichaves

28-07-2007 03:19:10

So, if i want to put a image with life bar, it's possible to do it with quickgui??

Or i have to do something else?!!

kungfoomasta

28-07-2007 04:50:23

What kind of image? Make something in Photoshop and explain what it looks like at 0%, 25%, 50%, 75% and 100%, and I can tell you if QuickGUI can do it. :)

ruichaves

29-07-2007 23:53:00

Hi again!

Well, what i want to do is to show the ammo bar and the life bar, and other stuff in the game...

the mockup (@ 25% lol...)



It's possible to do it, or i need to make it with overlays??

Kunfumasta, how is going the improvements in quickgui?? Do you have the render working?? when you release that??

8)

kungfoomasta

30-07-2007 06:34:01

I haven't added support for vertical progress bars, but I don't think that would be difficult at all. If you can wait for next release, I will make sure vertical progress bar is supported.

Still working on v0.9.6, hope to have it done soon. :)

thecaptain

30-07-2007 19:57:57

I was thinking about adding support for ProgressBars that go from the right as well. There would be a simple flag in the constructor for that.

Verical progressbars would also be easy to implement, although, you'd probably want a different widget image for them.

ruichaves

30-07-2007 21:09:10

I was thinking about adding support for ProgressBars that go from the right as well. There would be a simple flag in the constructor for that.

Ok, thanks!


Verical progressbars would also be easy to implement, although, you'd probably want a different widget image for them.

Yes, i want too lol...