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
32
votes
3answers
10k 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 ...
66
votes
9answers
99k 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 ...
26
votes
9answers
25k 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?
16
votes
1answer
16k 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 ...
5
votes
1answer
28k 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 ...
4
votes
2answers
15k views

How to make curved GUI in Unity?

I'm really new in Unity. I want to make a curved GUI by myself. How would I make one? I'm using Unity 5.6.
7
votes
4answers
839 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 ...
1
vote
2answers
2k views

How to make a gui button follow a path after a touch?

I would like a button in my gui menu to follow a specific path if we selected it, I am wondering how I could do it: if we touch the button, then it can only move on the specific path, it is an arc ...
23
votes
7answers
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-...
5
votes
4answers
996 views

Console-type interface in game

I am currently programming a very simple 2d game in C# with XNA. I was wondering how to implement a console-type interface in a game or graphical software like there is in Skyrim or Counter-strike or ...
17
votes
4answers
66k 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 ...
9
votes
2answers
36k 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 ...
7
votes
3answers
510 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?
3
votes
1answer
2k views

Prevent Unity click go trough Canvas

I'm currently facing this problem: If I click on a Button on my Canvas, the currently selected Unit moves towards the location under the Button. Is is there any option to solve this? I'm using the A* ...
0
votes
1answer
365 views

How can I attract & repel the mouse cursor from particular UI controls?

This question came from some of my students. I wanted to share it here so others can find & improve on the solutions we've found so far. In particular, my answer below doesn't behave as well as I'...
41
votes
7answers
33k 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 ...
17
votes
7answers
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 ...
12
votes
1answer
15k 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 ...
12
votes
1answer
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 ...
8
votes
3answers
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 ...
7
votes
2answers
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. ...
8
votes
1answer
8k 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 :
8
votes
4answers
3k 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 ...
4
votes
4answers
32k views

What are the steps to instantiate a button in Unity?

Given a Canvas test_canvas containing a Button test_button and an empty GameObject that manages instantiation and scripts and ...
2
votes
1answer
2k views

Using Nifty GUI with Slick2D

As seen here NiftyGUI has it's own GameState classes, I want to know if for adding UI to one state of my game I need to make that state NiftyOverlayGameState or ...
8
votes
3answers
23k 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. ...
2
votes
2answers
10k views

Responsive (dynamically changing) Grid Layout Group cell sizes in Unity3D UI

I am trying to get my hands on the (not that) new UI system by experimenting a bit. I tried to do some Sudoku style layout. (cause lets start simple). Well, seems not that simple for me right now. ...
2
votes
3answers
3k views

SharpDX/D3D: How to implement and draw fonts/text

I am playing with SharpDX (Direct3D for .NET) without using "Toolkit", already finished with basic rendering 3D models. But now i am wondering how to program/create fonts for game (2D), or how to ...
2
votes
1answer
874 views

XNA GUI: Creating a 'scroll pane' widget

I'm trying to create a simple GUI system and am currently stuck on how to implement a textarea with a scrollbar. In other words, the text is too large to fit into the view area. I want to learn how to ...
8
votes
3answers
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 ...
5
votes
2answers
9k 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'...
3
votes
2answers
2k views

How can I keep a GUI on-screen without moving/resizing it according to camera motion?

I'm trying to make a GUI library with SFML, and everything's done except for one problem: making the interface stay still even when the camera moves or zooms in and out. This would be easy to fix if ...
3
votes
1answer
365 views

In tools development, what languages and technologies are currently in use?

I am an aspiring tools developer currently in university. Normally I use both C++ and C# to and from but as my time at university is coming to an end, what language and technologies are worth focusing ...
2
votes
2answers
4k views

Libgdx actor bounds are wrong

The Actor's boundaries are not centered at the ButtonText but I used the setBounds() method. The higher the Y position is, the less centered is the boundary. The weird thing is that i only created and ...
2
votes
1answer
2k views

Rotating a button in Unity UI by -180 on the Y and it stops working

If I rotate my button by -180 on the Y axis I can't even click on it. If for example I rotate it 180 on the Z axis everything is fine. Why does this happen and how can I fix it ?
2
votes
3answers
12k views

UNITY : I want to make my UI text fade in after 5 seconds

I know this question has been asked and asked but none of the topics i visited gave me an answer. I'm making a game programmed in c# where you control a boat and i want my UI to appear smoothly by ...
1
vote
1answer
380 views

Why particle effect alway rendered after UI though they have same sorting layer and same sorting order?

Why particle effect alway rendered after UI though they have same sorting layer and same sorting order? I searched a lot of information about it,every one said that both of effect and UI are ...
0
votes
2answers
480 views

How do I access my existing script from a different script attached to a different gameobject?

I have my health (script) component on my player GameObject that gets boosted whenever we tap on that GameObject. However, I want to add a separate GUI texture button GameObject and tap on that to ...
0
votes
1answer
1k views

Python 3: How can I make my Text-based game windowed?

I've been making a text-based RPG in Python, and I'm a bit lost in transitioning from a console to a window. I'm not trying to do anything fancy (I think). I'd like my text to display normally, as it ...
0
votes
1answer
382 views

How to only allow one space in an InputField?

I've been messing with this for a while now and I can't get this to work 100%. I'm using an InputField for players to enter a character name, and I want to allow a first and last name. Here's how I've ...
0
votes
1answer
4k views

Creating a list of buttons dynamically in code

I have a list of contacts. I need to create a scrollable list of buttons that are created dynamically so I can add each contact name as the button text. How would I do this all in code? My biggest ...
0
votes
1answer
136 views

Spawning a Sphere and trying to move it [closed]

I've been trying to build upon a blog post on Gamasutra http://www.gamasutra.com/blogs/DarrelCusey/20130221/187128/Unity_Networking_Sample_Using_One_NetworkView.php In this I would like to spawn a ...