Graphical User Interface. A term used to describe the tools available to the player to interact with the game.
0
votes
1answer
39 views
how to fix pushing and popping error?
when i write a code with begin and end area ,i get this error,
though i did it right,am quite sure that EndArea() is executed in the algorithmic flow of the code,and not escaped ,how to fix that??
...
2
votes
1answer
59 views
How can I minimize visual clutter in an ASCII rougelike game?
I'm currently designing an old-school rouguelike, similar to games like Nethack or Dwarf Fortress. While I love the ASCII graphical style they employ (which my game will also employ), they also suffer ...
3
votes
1answer
46 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 ...
-2
votes
1answer
50 views
How do I make a high score in Unity?
I want to make a GUI box displaying a high score, but I have no idea how to do it. How do I make a high score in Unity?
Here is what I have done so far:
using UnityEngine;
public class Highscore : ...
1
vote
2answers
41 views
How to change the size of a draw GUI?
I tried to create a HUD button with a sprite of dimensions 1200x1200 to decrease it by code, but I could not.
Code:
draw_sprite(spr_btnBig,0,100,100);
image_xscale=0.05;
image_yscale=0.05;
...
0
votes
0answers
22 views
Heads Up Display Scaling
I am currently making a heads up display or HUD for a game that is student project made in our own c++ engine.
I want the HUD to work with any aspect ratio and the problem I can't really get my head ...
0
votes
1answer
27 views
User input text in pygame
I want a text box to appear on the screen. I am doing this by:
TextButton= pygame.draw.rect(Screen,Red, (100, 100, 150,50),2)
How can I allow the user to enter a text into this text box in Pygame? ...
3
votes
0answers
19 views
Execution order of uGUI events in Unity?
I'm trying to understand how UI events fit into the overall Unity update loop. Specifically, I want to manually call onClick via script, and then modify the effect of that event within the same frame.
...
2
votes
1answer
72 views
Logic only GUI library
I'm not sure whether this place is the correct for asking this. If it's the wrong place I'm sorry, please tell me if so!
I'm making a small game for fun which would uses an own engine with OpenGL and ...
0
votes
0answers
11 views
Rect transform values greyed out due to driven values - but need to get them from script
I use layout groups to mimic the WPF XAML layout and I need to get the RectTransform width and height in my script to calculate the elements' width and to fit them. Thing is, as my panel's ...
1
vote
1answer
29 views
How can I prevent the knob from resizing when I use the Slider?
I am using the Unity Slider component. I have a custom background and custom knob. But whenever I move the slider, my knob's size becomes distorted. It is 100x100 pixels, and when I set it to its ...
0
votes
1answer
51 views
Causing Update loop with Coroutine Unity
Total Noob Alert! < 7 days with C# and Unity
My Win Game screen becomes SetActive and my Player is SetActive false when you are standing in a trigger and crouch. That all works fine except you ...
0
votes
2answers
55 views
Recreate UI or move it out of view?
Which method would be best? What are the pros and cons? For example, if I have a main menu screen, I can easily start my game loop right as the user presses 'Start'. Which would be better, moving the '...
0
votes
0answers
22 views
How can set up a “custom rendering region” for tilemaps?
PhaserJS has a great support for rendering and handling tilemaps, but I miss a crucial feature.
Assume that I need some portions of the screen (or more specifically, the canvas serving as a "domain" ...
0
votes
2answers
59 views
How can I separate gameview from UI most efficiently in Unity?
Let me provide an image to illustrate what I mean. It is from a game called Runescape.
0
votes
2answers
65 views
Layered UI architecture
I'm working on GUI system and I want to implement tooltips and dialogs.
Base components hierarchy looks like this:
So every panel extend ComponentContainer class, and other controls like button ...
1
vote
0answers
23 views
GuiSan | SDL2 - Setting colour key of render target results in having an black screen
At the moment i am experimenting with guisan within my little project. Everything is done sofar with SDL_Texture except Guisan which utilize SDL_Surfaces instead SDL_Texture for rendering itself.
Per ...
1
vote
1answer
68 views
How to create UI with multiple panels for multiple resolutions
I am trying to create scene that has multiple panels, but only one is visible. When user clicks on appropriate button a transition is happening: camera moves to the right revealing panel on the right ...
2
votes
1answer
94 views
Unreal engine 4 - UI blury
My unreal engine UI does not look sharp and is blurred on my 1080p monitor. Subsequently, the viewport is slightly blurry and edges are jagged . I have changed the setting of the viewport to cinematic ...
0
votes
2answers
58 views
Hold button down by mouse?
When I hold down a button by mouse for 5 seconds, print a message. How to do this ? I wrote this script but is not working. I don't know if there other methods.
Public float clock;
Public Button out;
...
-1
votes
1answer
91 views
Any Reason for a “Canvas”-Based Approach for Isometric Game GUI?
When designing game engine GUI systems, I know a lot of game engines (notably Unity, and Unreal) use a sort of "canvas" system. But, in an isometric game, where the camera is orthographic anyway, this ...
0
votes
0answers
22 views
XML defined UI loading
For the past few days I have been working on an XML defined UI system where I define my UI in XML files, parse them and use sprtiebatch(sharpdx.toolkit) to draw the UI elements. I have a texture atlas ...
0
votes
1answer
50 views
Resize Label automatically with the text content in LibGDX?
In LibGDX, I want to add some long text content to several Labels. I'm creating those labels in a loop, and the text content is different in each iteration. I want the Label to have a size that fits ...
0
votes
1answer
44 views
LibGDX How to set spacing between list items in a Scene 2D Select Box Widget?
I have created a Select Box (Scene2D widget) which holds a list of items, to be selected. My code works fine, but I would like to make a little more spacing between each list item in the dropdown list ...
0
votes
0answers
25 views
Multi-Layer RTS Action Bar
Most RTS use a 3x3 or 3x4 action bar to control the unit, build things or use abilities. Some buttons are directly triggering an action like "attack" or "retreat", some will open a new leay, e.g "...
0
votes
0answers
21 views
How can I prevent a GameObject within a ScrollView from moving?
I have a ScrollView. It has children, most of which I want to scroll, but some of which I want to remain still. Think of something along the lines of a spreadsheet where the title rows/columns don't ...
0
votes
1answer
81 views
Best way to draw a textfield in OpenGL, when performance really matters?
I'am creating my own GUI library in LWJGL (opengl for Java).
I already managed in creating buttons and panels, and I've also got the hover and active states of the components implemented. This ...
0
votes
3answers
33 views
Unity - Easier way to resize group of buttons to the same size
I have a canvas with buttons, with a script attached to each button. This script creates an array for buttons and resizes every button to the same size as the longest one in that array (the button ...
0
votes
1answer
128 views
Raycasting with a selection rectangle box
I'm currently making a level editor for my game and want to implement a selection tool to make it easier to select multiple voxels at once.
My question is what the most efficient way is to get all the ...
0
votes
0answers
45 views
Optimized menu system: SetActive() vs. nested Canvases vs. nested CanvasGroup
Our game is 100% based on the new UI. I want to know your opinion about best performance optimized solution to make menus and screen transitions using the new UI.
Our original solution:
A root ...
0
votes
1answer
43 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 ...
1
vote
1answer
59 views
UI clicks hitting game objects below
I have a canvas with a panel with set width / height inside. The canvas rendermode is set to ScreenSpace Overlay.
My clicks on the panel are falling through and hitting the game objects below ...
0
votes
1answer
21 views
Preserve top right position and relative size to screen
I have the following circle laid out where I'd like it at 1920x1080: http://imgur.com/a/PmvVA at 1280x720 it takes the same amount of relative screen space.
When the aspect ratio changes I want the ...
0
votes
1answer
83 views
How to match UI background size with text length in Unity?
I am making an FPS game in which when you are near an item a UI Text appears at the bottom center of the screen indicating the name of the item and the button to pick it up (let's say [E]).
It works ...
1
vote
2answers
56 views
Canvas not filling up the whole screen in Unity 5
i am trying to make my canvas auto resize to any screen size. these are my canvas scalar settings:
UI mode: change with screen size
match height and width
reference resolution: 600x800
i looked up ...
0
votes
0answers
32 views
Game Object will NOT stretch across entire content area
I'm loading prefabs into a content area using a content size fitter and vertical layout group. I've tried multiple things to get the loaded prefabs to stretch across the entire content size (including ...
4
votes
1answer
66 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* ...
-3
votes
1answer
37 views
Unity 2D UI Scrollview Stretch settings not staying
So I'm trying to make a Scrollviewer and inside that will be aload of boxes stacked on top of each other (the boxes have information in them - like the boxes in this screenshot here but they will ...
0
votes
0answers
7 views
Triggering an animation key manually added to the automatically generated animator controller on a button
I have a canvas parenting a panel, parenting some buttons. all the buttons have their own animators that i have automatically generated by clicking "Auto Generate Animation" in the button's Inspector ...
7
votes
1answer
328 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.
1
vote
1answer
50 views
Unity: Trying to add an in-scene 'press E to open' tag as UI element
In Unity 5.4.1 I'm trying to add a tag that says 'press E to open' to a door as you approach it. I've got a RayCast pointing forward from the player, detecting the door and , connected to my ...
1
vote
1answer
189 views
How to display Render Target live to HUD widget in UE4
I'm making a security camera system in Unreal Engine 4. It allows the player to 'activate' the monitor, which should display the Render Target texture or the material made from it on the HUD. However, ...
0
votes
1answer
135 views
Can't set Source image for UI image
I am new to Unity. few days back i have started learning to make games using Unity Engine & I started making a very basic car racing game. In order to add an On-screen SpeedOMeter for my car I ...
1
vote
1answer
109 views
Unity fade all UI elements which belong to one Canvas
Like the question describes I want to fade out/in all UI-Elements belonging to a parent canvas.
So things I got are :
A World-Canvas which contains multiple UI-Items
A script which can fade one ...
0
votes
1answer
80 views
How to implement buttons in Java?
I'm new to java and I want to know how to implement buttons for my menustate. Right now all I did is I made pictures of the buttons (play and exit) and just used g.drawImage to draw my Image to the ...
2
votes
1answer
110 views
How to render a PNG-file on the screen with SDL? [duplicate]
I'm coding a 2D platformer in using C++ and SDL2. I've started by coding the GUI, however I'm unsure how to get the menu buttons onto the screen and in the right positions.
How do I load the PNG ...
0
votes
0answers
21 views
How to set the layer texture2d image in unity
I am working on onscreen arrow indicator. I have placed some sphere on the screen and attached the code below to each gameobject. And also I have a canvas,which consist of a panel.
public Texture2D ...
-1
votes
1answer
60 views
When mouse on a button image appear?
my canvas have three buttons and images. What i need is make the mouse showing an image when it enter the button without click on it.
public GameObject button1;
public GameObject button2;
public ...
0
votes
0answers
64 views
Unity 5: How to handle stacks of “windows”
I'm having a hard time coming up with a clean and simple way of implementing a window manager of sorts. I have placed some limitations below:
Windows can never move and its positions are fixed at ...
1
vote
1answer
33 views
Is there a way to start UI animation transition with code in unity?
I have made an animation for a button in unity's UI prefab, but i want it to start only at certain times, when i command it with code. How can i do this?