123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|651|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Question of the Day -> QOTD : Menu, or GUI?!

Thu, 02 Apr 2009, 15:31
Jayenkai
Whenever I make a menu in a game, I make a quick Button() function, and draw it to it's position every frame, with DrawImage, or Text, or Rects or whatever it needs..

Sure, I could do it as a proper GUI style thing, with bits only redrawing when they need to.. But it's inside a game!! Just draw it, click where needed, and get on with the game, already!!

QOTD : Do you "GUI" or do you just draw stuff?

-=-=-
''Load, Next List!''
Thu, 02 Apr 2009, 20:37
JL235
I don't think it's unreasenable to re-draw a button on every frame, if it's in a game. It's normal to redraw the whole screen in a game; there are good reasons why we do this.

The problem I see is when people use this same game structure to make an application where there is no good reason to clear and redraw the entire application 60 times a second. It's just innefficient.

As for image or "lots of drawing commands", depends entirely on how expensive drawing it without an image is. If it's cheap, then I'd do it that way because your saving on memory.
Fri, 03 Apr 2009, 00:56
Afr0
I haven't done alot of games that required GUIs lately, but I found that whenever I would be 'prototyping' a MMO, implementing a proper GUI clientside would always be a big time drain.
So that's one of the reasons I'm concidering getting Blitz3D again, because you can just have the player input his name and password into the 'console', and off you go!!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Fri, 03 Apr 2009, 03:40
JL235
I disagree quite heavily Afro. That is a very good approach for prototyping, but any real game requires a proper GUI interface. I'm currently thinking of taking some stuff I have and making it into a proper GUI toolkit.
Fri, 03 Apr 2009, 06:02
Mog
I made a rudimentary GUI for my projects that was mostly just alpha fading lines forming gadgets. It was quite messy but looked really nice in motion and effect, even if the wordwrap was sort of wonky...

-=-=-
I am Busy Mongoose - My Website

Dev PC: AMD 8150-FX, 16gb Ram, GeForce GTX 680 2gb

Current Project: Pyroxene