Questions tagged [gui]

Graphical User Interface. A term used to describe the tools available to the player to interact with the game.

Filter by
Sorted by
Tagged with
66 votes
9 answers
107k views

Good GUI for OpenGL? [closed]

I am starting to learn OpenGL with FreeGLUT using the Superbible and the knowledge I have from my elementary graphics to brush up on my skills. To get more from this experience I want to integrate a ...
47 votes
7 answers
38k views

Immediate GUI - yae or nay? [closed]

I've been working on application development with a lot of "retained" GUI systems (below more about what I mean by that) like MFC, QT, Forms, SWING and several web-GUI frameworks some years ago. I ...
  • 1,134
34 votes
9 answers
29k views

What is the difference between a HUD and a GUI in a game?

Does anyone know the difference between a graphical HUD (head-up display) and a GUI (graphical user interface) in a game? Is a HUD part of the GUI and just displaying information? That would mean that ...
34 votes
9 answers
9k views

Why should I choose to design a health bar rather than heart containers?

When designing any hero-based game, be it adventure, RPG, brawler, or similar, you eventually need to decide on your health system. Barring any regenerative systems with zero UI (like Call of Duty), ...
33 votes
4 answers
11k views

How do you approach resolution independence in raster based graphics content?

Those games that are not fortunate enough to run on a locked platform spec, like handhelds, need to run across various resolution formats and aspect ratios. In a 3D game you might have a HUD or menu ...
  • 2,331
26 votes
9 answers
30k views

What C++ GUI library can you suggest? [closed]

I'm building my own game engine in C++ and I'm currently deciding on what user interface I should use. Should I use a library? Should I make my own?
  • 741
23 votes
7 answers
2k views

Interfaces 101: Making it Pretty

I've made a few games which I've actually released into the wild. There's one particular issue I run into over and over, and that's the issue of the interface/theme of the game. How can you make non-...
  • 11.3k
23 votes
7 answers
16k views

HTML5 Game (Canvas) - UI Techniques?

I'm in the process of building a JavaScript / HTML5 game (using Canvas) for mobile (Android / iPhone/ WebOS) with PhoneGap. I'm currently trying to design out how the UI and playing board should be ...
  • 487
20 votes
6 answers
2k views

What coordinate system to use to handle 2D UI?

Following on from the aspect ratios question, I'm interested to hear what other people are using when working on 2D UI systems (most likely their own home-grown solutions). Specifically, how do you ...
  • 6,018
17 votes
4 answers
67k views

Unity new UI - Dynamically change the functions called by GUI elements

Looking to dynamically change the value in the button OnClick and slider On Value Changed . If I had to guess on how this was done, get a reference to the button/gui element. Next get the Button ...
17 votes
7 answers
1k views

UI mockups to the code

My UI designer has made a lovely photoshop PSD of the UI and everything pretty. The biggest problem I'm having is converting some of the more elegant fonts used into something renderable in-game. Is ...
17 votes
4 answers
2k views

What are some good (retro) symbols for magic/mana/energy? [closed]

Much like a heart is used a lot for health and lives in old retro games... ...what would be a good icon to use for Energy, Mana and/or Magic points?
  • 1,595
16 votes
1 answer
17k views

Making a HUD/GUI with OpenGL (LWJGL)

I'm at the stage in my game development where I need to make a HUD or GUI. I've never gotten to this part, so I don't know how its done. I tried rendering a simple quad at a fixed position on the ...
  • 906
15 votes
2 answers
4k views

Entity/Component System and UI "Entities"

I'm still green to entity/component systems. I find that since I have useful components for drawing sprites (or spritesheets) and handling input (mouse/touch clicks), I naturally want to reuse these ...
  • 11.3k
14 votes
1 answer
20k views

How to match font size with screen resolution?

So I'm working on a game using LibGDX, and I have a problem. To make my game fit most resolutions, I created a base asset for each aspect ratio, for example, a main menu background image, I made it ...
13 votes
2 answers
2k views

In a GUI, should input be handled when the button is pressed or released?

In the menu system for our game (selecting levels, options, etc.), the player presses the a button on the gamepad to go to the next screen. I coded the menu system to wait until the button is released ...
13 votes
2 answers
12k views

Unity UI square that fills width OR height

I'm trying to create a board with this requirements: It SHALL be square. It SHALL fit available width OR height. It SHALL be centered in the canvas. It MAY be wrapped into as many additional ...
  • 1,043
13 votes
1 answer
16k views

Render in a imGui Window

How do i render my game scene into an imgui window? I want to get from this: to this :
user avatar
12 votes
9 answers
15k views

How to go about GUI elements?

Note: I plan on making my own GUI system. It will be good for learning, lightweight, only have bits I need, ties in with the game, etc. I was thinking about how to do it. The elements I mean are: ...
12 votes
3 answers
4k views

What is the best way to make a main menu system?

I know that's it's easy to make buttons that highlight when you move your mouse over them, but when it comes to sub-menus I'm kinda stuck. Anyone got some tips on the best way to have a main menu with ...
  • 377
12 votes
1 answer
5k views

Separating physics and game logic from UI code

I'm working on a simple block-based puzzle game. The game play consists pretty much of moving blocks around in the game area, so it's a trivial physics simulation. My implementation, however, is in ...
user avatar
10 votes
1 answer
33k views

How to create gui image with script

So I've been fiddling around with the new UI system recently -- and one problem I have is adding images of my sprites to the ui. I know I can create a prefab of an image gameobject with the sprite ...
  • 261
9 votes
2 answers
25k views

Button stays highlighted after being clicked - Unity3D 4.6 GUI

Sometimes, after clicking a button created by unity's new UI Button, the button stays in its highlight state. Note that Button script has Color Tint set as it's <...
9 votes
3 answers
28k views

How to dynamically create an UI text Object in Unity 5?

I have been searching for something that should be simple, but Unity 5's documentation on that is fairly outdated. What I want to achieve is to be able to create UI Text totally from script, i.e. ...
9 votes
2 answers
42k views

How to detect mouse over for UI image in Unity 5?

I have an image that I have setup to move around and zoom in and out from. The trouble is the zoom can be done from anywhere in the scene, but I only want it to zoom when the mouse is hovering over ...
  • 2,729
8 votes
4 answers
4k views

In OpenGL, is it a bad idea to "combine" immediate mode and retained mode for the sake of GUIs?

Suppose I have a 3D scene being drawn with glDrawArrays(...) and I want to render something simple, like a 2D overlay. Would it be a bad idea to use immediate mode ...
8 votes
3 answers
9k views

zoom to cursor calculation

I want to be able to zoom in and out of the map using the scroll wheel. I want to zoom towards the cursor like Google Maps does, but I'm completely lost on how to calculate the movements. So far, all ...
user avatar
8 votes
5 answers
7k views

Are there any good UI widget toolkits for Pygame? [closed]

Are there any good, modern widget toolkits for Pygame? I've looked at PGU, but it's apparently unmaintained.
  • 265
8 votes
3 answers
6k views

Font outline in OpenGL, FTGL

I'm using FTGL library to render fonts in my game, but I have completely no idea how to create an outline around text. Achieving a shadow could be easy, because I can simply do it like this: (pseudo ...
8 votes
1 answer
13k views

Is it possible to overlay EditText box on a GLSurfaceView on Android?

I am trying to add a "PlayerName" box on top of a opengl menu background, is this possible? I've tried various layouts, but they don't seem to allow an EditText box to appear on top What is the ...
8 votes
2 answers
4k views

How to make a scrollbar?

I am making my own UI for my game, no libraries used, basic UI with simple controls and I am almost done. Now, let's say I need to display lots of information, controls or items which obviously won't ...
8 votes
2 answers
22k views

How can I render an OpenGL scene into an ImGui window?

The picture rapresents what i want to achieve. I read, somewhere on the Internet, that you can render the fbo and pass that fbo as a texture to render into the ImGui window. The problem is that I don'...
user avatar
8 votes
3 answers
2k views

Is gameswf usable? [closed]

The project page indicates that it's pre-alpha code, and suggests the actionscript support is weak. Flash UIs are nice, so I was wondering if anyone has experience getting gameswf to the point where ...
  • 1,084
8 votes
1 answer
43k views

How do I set the exact local position of a RectTransform?

I have a game object that creates a keyboard in side of my world canvas. I am working out the offset positions for each key, and appear to be doing that correctly. However, when I set the positions in ...
  • 5,203
8 votes
1 answer
1k views

Custom Editor - keep default look but add more

What I would like to know is if there is a easy way using OnInspectorGUI, to replace the inspector with one that includes just one or two additional fields (so that it looks identical to the non-...
8 votes
1 answer
287 views

Is it possible to make calculations in a Quake 3/Live hud?

I would like to add a new field to a Quake 3/Quake Live HUD that shows the following number: min(health + armour, health * 3) * (1.5 if guard_rune else 1) This ...
  • 348
7 votes
3 answers
530 views

What is the name for the little numbers that appear over characters' heads when they lose health?

...you know the ones. Something like "value overlays" or "value pop-ups" describes them quite well, but I was thinking they might have a real name?
  • 6,498
7 votes
4 answers
872 views

Creating non-rectangular hotspots and detecting clicks

Say for a game with irregular hotspots (say Risk, or a strategy game like Paradox's Hearts of Iron or Crusader Kings), how do you Define a non-rectangular hotspot of irregular shape (much like a ...
  • 2,742
7 votes
3 answers
70k views

Changing color of UI Text in Unity into custom values

There are a few objects in the scene as well as a title. I want the title to change its text and color based on the object that is mouse-overed. The script below is added to each object that is ...
7 votes
2 answers
11k views

How can I round out the corners of a quad in OpenGL?

Even though I think the image is pretty self-explanatory, I'm going to explain what I am trying to achieve: I was working on a game, and I needed a GUI framework, that I decided to build myself. As a ...
user avatar
7 votes
5 answers
652 views

What are the pros and cons of non-unique display names?

I know of at least big title game (Starcraft II) that doesn't require unique display names, so it would seem like it can work in at least some circumstance. Under what situations does allowing non-...
  • 824
7 votes
3 answers
207 views

Where to show user shot's power on touch screen?

I want to show user shot power in standart way (the more user holds finger on the screen the stronger is shot) Where is the best place to show this icon on touch screen(when I use mouse it's better ...
  • 1,470
7 votes
3 answers
4k views

How can be data oriented programming applied for GUI system?

I've just learned basics of Data oriented programming design, but I'm not very familiar with that yet. I've also read Pitfalls of Object Oriented Programming GCAP 09. It seems that data oriented ...
  • 1,647
7 votes
4 answers
25k views

How can I create a button with an image in libGDX?

I am new to LibGDX. I am trying to develop a game for Android (so it will support different screen sizes), but I don't know how to put a button with an image. I tried ImageButton but I can't resize it....
7 votes
2 answers
3k views

Can a standalone WPF application create an interface that looks like a Flash interface?

It seems like WPF was created as the application answer to Adobe's Flash. Silverlight is used for creating web pages. But, can that same functionality be pulled into a standalone WPF application. ...
  • 462
7 votes
1 answer
2k views

Gui Implementation techniques

I've been working with a few game oriented gui libraries trying to find a good fit. More specifically, a GUI that will work on Windows,Linux,iPhone, and Android with minimal special code. In my ...
  • 7,522
7 votes
2 answers
913 views

What in-game user interfaces are available? [closed]

I'm wondering what options are available for in-game interface libraries (not OS-level interfaces) and what are your opinions about them? Please put only one library per answer and follow this ...
6 votes
4 answers
554 views

What standards should designers/artists follow when giving UI assets to coders?

How do you or your company require designers to deliver their assets to coders? Do they deliver a PSD? A series of 24-bit PNGs? If you are a coder, what would you include in a best-practice ...
user avatar
6 votes
2 answers
872 views

Graphical Interface Design

I have the following problem: Although I know some of color theory, and the interface design ideals (about how it must be usable, and etc...), my interfaces are REALLY ugly. fugly, eye bleed material, ...
  • 1,382
6 votes
1 answer
389 views

What is the specific name of this UI component? [duplicate]

Is there a specific name for this kind of ui component? Sometimes it only renders a symbol (without text) so using name like TextComponent is imo not very fitting.
  • 161

1
2 3 4 5
14