Graphical User Interface. A term used to describe the tools available to the player to interact with the game.
18
votes
8answers
790 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), ...
1
vote
0answers
12 views
UIToolkit VerticalScrollable dont hide when is moving
im experiencing a weird bug with the Vertical Scroller (mainly in iOS, but even in the Editor): when a vertical scroller is still "moving" (so when it'snt totally stop) it's impossible hide this ...
6
votes
3answers
126 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
vote
2answers
134 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 ...
0
votes
1answer
75 views
Can threads be used to run resource consuming methods without -ever- freezing UI?
Until recently I was sure that running expensive operations in threads can prevent UI freezing, but now I'm not.
Is it not guaranteed that a threaded operation will not hog the main thread's ...
2
votes
1answer
190 views
How to make a simple HUD with no library
I am writing a simple game in c++ using opengl in a windows system.
I have the scene and I need some informative text to appeared to the left top/bottom of the screen
I am printing these messages ...
0
votes
1answer
48 views
Unity3D GUILayout Window Wont Show Components
I am fairly new to Unity, but picking things up quick. This is actually one of the first problems I have come across that has me stumped.
I am trying to print a good amount of components onto my GUI ...
-1
votes
4answers
170 views
Is it worth taking the time and making a game scripting engine instead of directly coding?
I don't know exactly everything there is to game programming and I forget things so I like to write libraries that are easy to use so I can use the thing that's hard to do such as file serialization. ...
0
votes
2answers
90 views
Best approach for Event driven UI
Had an idea for a modification to a game, however the core functionality heavily involves UI, and the API for the mod is event based.
The player will have there own custom data object, so I know one ...
2
votes
1answer
81 views
How can I prevent clicks from going through a GUI.Box?
I have a GUI.Box that I slide in from the side of the screen. How can I prevent mouse interaction from going to any objects under it (another GUI.Button for instance, or for that matter an ...
3
votes
1answer
148 views
Tech Tree layouts for games?
I'm trying to do a tech tree GUI for my game, but i have limited width and the tree has alot of branches, the problem is if I make them small to fit the width, the tech tree is too small to read.
For ...
1
vote
1answer
74 views
Deciding when to switch focus between UI elements
I've been coding a simple logic game recently and there is a UI decision that has been bothering me.
Since certain blocks of logic are going to be used across many levels (e.g. logic to reverse the ...
6
votes
3answers
299 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 ...
2
votes
1answer
122 views
Is jButton in Java suitable for a Game GUI?
Recently I have encountered the issue of trying to add a GUI into my game using Swing. The game will randomly & infrequently flash the jButton or Swing component when I add it to my jFrame. I'm ...
0
votes
0answers
70 views
How to efficiently render resizable GUI elements in DirectX?
I wonder what would be most efficient way to render the GUI elements.
When we're talking about constant-size elements (that can still be moving), the textures' atlas seems to be good.
But what with ...
2
votes
2answers
274 views
Clutter for game GUI
I'm pretty new to game development, having only written a simple 3d game for a class project, but I'd like to get started on a bigger project.
I'm writing an MMORPG to run in both the browser (WebGL) ...
-1
votes
1answer
214 views
Animation Trouble with Java Swing Timer - Also, JFrame Will Not Exit_On_Close [closed]
So, I am using a Java Swing Timer because putting the animation code in a run() method of a Thread subclass caused an insane amount of flickering that is really a terrible experience for any video ...
2
votes
1answer
95 views
OpenGL and Java user interface architecture/comunication [closed]
I'm working on the UIs for a turn based tactical rpg made with Java and LWJGL.
I'd like to make a set of "dynamic" UIs similar to those of the game Torchlight 2. I would like to know if there are any ...
0
votes
0answers
56 views
What would be the best mean for a gui with a lot of FX in Unity
The game I am working on (we are in R&D) is based almost exclusively on a windowed gui with a lot of FX (fading, growing, etc). We will also likely need custom widgets (like a sound recording ...
3
votes
1answer
161 views
GUI device for throwing a ball
The hero has a ball, which shall be thrown with accuracy in a court on iPhone/iPad. The player is seen from above, in a 2D view. In game play, the player reach is between 1/15 and 1/6 of the height of ...
3
votes
1answer
117 views
Rendering only a part of text FTGL, OpenGL
I'm using FTGL library to render text in my C++ project.
I can easily render text by using:
CFontManager::Instance().renderWrappedText(font, lineLength, position, text);
Unfortunately there is a ...
1
vote
2answers
178 views
Events Driven Library XNA C#
Language: C# w/ XNA Framework
Relevant and Hopefully Helpful Background Info:
I am making a library using the XNA framework for games I make with XNA. The Library has a folder(Namespace) dedication ...
1
vote
2answers
104 views
Informing GUI objects about screen size - Designing
I have a problem with designing classes for my game which I create.
In my app, there is:
class CGame which contains all the information about game itself,
e.g. screen width, screen height, etc. In ...
1
vote
2answers
350 views
How to add text box in slick2d?
I wanted to let the player rename the character of my game. So I thought that making a text box and when he clicks the ok button, the text inside the text box will make it to a string and render it on ...
2
votes
3answers
167 views
Should I be worrying about limiting the number of textures in my game?
I am working on a GUI in XNA 4.0 at the moment. (Before you point out that there are many GUIs already in existance, this is as much a learning exercise as a practical project). As you may know, ...
2
votes
1answer
245 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 ...
2
votes
2answers
239 views
Separating UI and logic in Objective-C at iOS based Games
How to separate UI and logic in Objective-C based mobile games?
To develop games, I use Cocos2d library.
I need a good reference to separate my UI code from game logic code.
0
votes
0answers
102 views
Why is my arrow texture being drawn in odd places? [closed]
This is a script I wrote that places an arrow on the screen, pointing to an enemy off-screen, or, if the enemy is on-screen, it places an arrow hovering above the enemy. Everything seems to work, ...
4
votes
3answers
447 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
vote
1answer
213 views
What's the recommended way of doing a HUD for an android game?
Basically the question is in the title.
I'm creating a RTS game and I will need buttons like attack move / attack ground, etc. I am not using any engine.
When people do games in OpenGL for android ...
0
votes
3answers
189 views
Buffer System For Items
I am going to reference this image of what I want to accomplish in JavaScript.
This is the Diablo buffer system. This question may be a bit advanced (or possibly not even allowed). But I was ...
-1
votes
1answer
279 views
How to start creating an interface for a game in Blender or Unity? [closed]
I am trying to learn to create some simple games. In the game that I conceive, I need a graphical interface in my game. The interface need some components like dropdown list, textbox, radio buttons, ...
0
votes
1answer
183 views
How to make smooth animations
Say I want to write a card game. I have a hand of cards and I want to be able to draw a smooth animation of a card moving from the hand to the table. I am looking for suggestions on how to elegantly ...
2
votes
1answer
1k views
Should I use XNA or Unity to build a video game? [closed]
My friend and I are planning to make a video game (like Slender) where the character is stuck in a building, when lightning strikes, and the lights go out and your objective is to find the back-up ...
0
votes
1answer
164 views
How do I prevent dynamic GUI elements from overlapping in Unity?
I'm working on a birds-eye-view for our Unity3D game world, where each point of interest has a label hovering above it. The problem is that sometimes they overlap, although there is more than enough ...
3
votes
3answers
139 views
Keeping track of focused widget in GUI tree
I'm designing a GUI framework based on trees of widgets. Widgets are general control and container structures that are everything from panels to buttons to file dialogs. Widgets have an array of ...
2
votes
3answers
302 views
Application toolkits like QT versus traditional game/multimedia libraries like SFML
I currently intend to use SFML for my next game project. I'll need a substantial GUI though (RPG/strategy-type) so I'll either have to implement my own or try to find an appropriate third party ...
3
votes
1answer
193 views
Revamping my GUI to be more efficient and less brute
I am building a Java game from scratch right now. So far, it runs fine, but the issue is with my GUI and how it works. Basically, it's a tile-based game. Each time the person moves a different image ...
5
votes
4answers
417 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 ...
1
vote
0answers
168 views
Framework to implement an in game gui editor
I need to do an in game gui editor. The game engine has his own widgets elements and I don't want a gui library that substitute it.
The most difficult task is the implementation of the functionality ...
14
votes
3answers
1k views
What are some good (retro) symbols for magic/mana/energy?
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?
0
votes
1answer
199 views
Can't remove JPanel from JFrame while adding new class into it
Basically, I have my Frame class, which instantiates all the properties for the JFrame, and draws a JLabel with an image (my title screen). Then I made a separate JPanel with a start button on it, and ...
0
votes
0answers
168 views
using OGRE with a GUI kit [closed]
I am currently working on a level editor for my game. The rendering in the editor will be done by Ogre3d however I'm still unsure which GUI kit I should pick, so I wanted to ask whether anyone has ...
-1
votes
1answer
175 views
What is the best way to make UI for an Isometric game in java
What do you think is the best way to make UI for an isometric game.. I dont have much experience in UI so im not sure where to start.
I need something the mouse can interact with and that works good ...
1
vote
0answers
198 views
Keeping crosshairs & GUI onscreen - SFML
I read this question, but didn't understand the implementation suggestions with SFML on C#.
For example, right now I'm just trying to make sure that the mouse crosshairs stay onscreen constantly. I ...
2
votes
1answer
365 views
Slick & NiftyGUI. Nifty initialize exception
I found my self into trouble when trying to run a Slick game with a Nifty Game State.
This is the code:
@Override
protected void initGameAndGUI(GameContainer container, StateBasedGame game)
...
2
votes
1answer
857 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 still a BasicGameState but to add a ...
5
votes
1answer
192 views
How to highlight non-rectangular hotspots?
So my question is highly related to Creating non-rectangular hotspots and detecting clicks.
Yet again, I've irregular hot-spots (think the game Risk). So basically, we can detect clicks on these ...
2
votes
3answers
376 views
Can't use the hardware scissor any more, should I use the stencil buffer or manually clip sprites?
I wrote a simple UI system for my game. There is a clip flag on my widgets that you can use to tell a widget to clip any children that try to draw outside their parent's box (for scrollboxes for ...
2
votes
1answer
243 views
How should I connect objects when using the MVC paradigm?
This has been confusing me for the past week as I am trying to make my first actual game. It's only my 2nd year learning Java so I am really trying to learn how to program like a professional ...