Questions tagged [menu]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
13
votes
2answers
13k views

How do I make a pop-up window with Scene2D?

I have a main-menu screen with a logo and a bunch of buttons. When the Login-button is pressed, I pop up a dialogue asking for a username and password. This works fine, other than the "popping up". ...
9
votes
5answers
1k views

How can I update Display settings from an Options screen without restarting?

I'm currently creating a 2D RPG in C++11 with Allegro 5 and boost. My goal is to somehow update my game settings when an option is changed in the Options Menu. I don't want to force the user to ...
7
votes
2answers
3k views

How to design a multi-step game menu system?

I am getting started with game programming. I am designing a game that starts by taking you through a series of menu screens. I am interested in learning how this is typically structured in ...
5
votes
2answers
2k views

how to represent a nested menu system?

I'm wondering what would be a clever way of making a layered menu system, in terms of what data structures to use. An example of what I mean: A unit has the ability to construct buildings, and to ...
4
votes
1answer
1k views

How are game menus logically structured?

I've been struggling with making a game menu system in Unity for some time now. I spent time developing a way to help myself understand how game menus are connected together. Right now, I'm calling it ...
4
votes
2answers
1k views

How to create a native windows menu / ribbon for a DirectX 11 app

I need to create menu items on top of my DX11 windowed app - similar to most windowed applications (File, Edit, etc...). How can I achieve this ? There is a hMenu ...
4
votes
2answers
9k views

LibGDX MainMenu with ScrollPane - Select Level and press Play

In my level Menu, I am using tables that have images and text to identify each game level. Those tables are in a table that is inside a ScrollPane so the player can browse the levels available. Here ...
3
votes
1answer
2k views

Unity, how do I pause the Audio in the Level? [closed]

I wanna pause the Audio if I press the Pause Button also, I need help.. Pause Script: ...
3
votes
1answer
352 views

Create context menu in Scene view

I created some MenuItemfunctions for navigating, which are currently displayed on the menu toolbar. The C# code: ...
2
votes
1answer
422 views

UI looks different between editor and in game

I am very confused about Unity's UI system. This is how my inventory menu looks in the Editor: And this is the view in game: Settings Can someone please explain why this happens?
2
votes
1answer
109 views

Transitioning through menus in Unity: what is the best option performance-wise? [closed]

I'm making a menu manager and I'm not sure what should I do to make a transition from one menu to the other. What is better to be used performance wise? Here is the step in my mind. Simple enable or ...
2
votes
1answer
92 views

How can I change view to orthographic using a menu?

I'm writing the custom menu using MenuItem and I'm stuck trying to make scene view orthographic when 5 is pressed. What is the ...
2
votes
1answer
688 views

UI/Menu that works with and without VR (Unity, WMR)

I'm working on an app that I want to be useable without and with VR (with a Windows Mixed Reality HMD like the Samsung Odyssey). For non-VR I'm simply using a canvas in "Screen Space - Camera" and a ...
2
votes
1answer
688 views

C# XNA - How to create a menu with bools and textures?

I thought I could use bools to be able to select options in my menu. But the options should be textures. To show that an optino is selected I have 2 textures like ...
1
vote
3answers
110 views

c - Starting an user defined function after the current one ends

The game I am creating displays a menu before starting, the user may select to start the game, or do some stuff. When the user selects an option, I need to call another function which actually does ...
1
vote
1answer
4k views

What Type of Options should be on the Game Settings Menu? [closed]

I have seen a post about the main menu options here: UI: Main Menu options for mobile games. What options should be listed? What do users want to see? But I want to know what kind of options should/...
1
vote
1answer
2k views

How to find the minimum number in a float array C# Unity

i have a for loop that detects the position of every game object in a list and gets the difference between that object and an object anchored in the center and then stores all values in a float array. ...
1
vote
1answer
3k views

Change screen from main menu to game

I'd like to know how I can change the screen from the Main Menu to the Game itself but im having quite the trouble and I would appreciate the help. What I want to do is when I press btn.Play it ...
1
vote
1answer
833 views

Creating a Slide-Up Menu

How can I create a menu that slides up while "un-fading" as illustrated in this video? As you can see in the video, the menu also falls down a bit in the end which gives it a realistic feel. I ...
1
vote
2answers
638 views

XNA Level Select Menu

I'll try to explain this the best I can. I'm trying to create a level select menu for a game I'm making. The menu is basically a group of blocks numbered 1-16, similar to something like the Angry ...
1
vote
1answer
707 views

How to make a horizontal scrolling menu in Game Maker Studio 1.4?

I know how to place the items you see in the picture, my problem is how do I move them? How do I know if the player is swiping right or left? I made the items with a ...
1
vote
1answer
3k views

My [MenuItem()] is not being added to the menu

In Unity 5, I created a ScriptableObject class which adds itself to the Main Menu: ...
1
vote
2answers
2k views

Pausing the game

I've had a look around and kept finding about using Time.TimeScale = 0 to pause the game, although this is the normal way to do it, it is not exactly what im looking for. When my menu button is ...
1
vote
2answers
500 views

Unity: Interactive menu with sprites changing with buttons

I have a menu where the player gets to choose which team and kit he will use to play. However I don't really know how to change the sprite each time the left or right arrows are pressed. I already ...
1
vote
1answer
91 views

Observer pattern for clickable 2D Elements?

So i am currently thinking about the best way to handle and implement clickable 2D menu elements in a very simple DirectX Game. I very much like the idea of having subscribers to a event where they ...
1
vote
1answer
496 views

Working out velocity/time based on physical pixels moved

In my game I integrate like so: (Please assume all variables to be declared) ...
1
vote
0answers
10 views

How can I get my custom Unity editor menu items to work if they're in a package?

I'm trying to get new items to appear in Unity's Assets→Create menu. I'm defining these inside another project which is referenced as a package. The general goal here is to share my editor scripts a ...
1
vote
1answer
60 views

Libgdx - overlapping stages - textbutton unclickable

I've created a few TextButtons for a menu that render on top of another stage area, however the textbuttons that i've created for menu aren't clickable or don't provide any events. The MenuComponent ...
1
vote
0answers
65 views

Implementing navigatable achievement menu in javascript

I am in the process of learning javascript for game design, and wanted to make a separate achievement page that the user can navigate to that will allow them to check their achievements on various ...
1
vote
0answers
95 views

How to play a sound for a Game Jam Menu Template button in Unity

I'm using the "Game Jam Menu Template" plugin from the asset store in a project of mine and I'm having a bit of a problem with it. See, I'd like it so that a particular button in the menu plays a ...
1
vote
1answer
166 views

Certain random content rendering differently

On the main menu of my game there is (obviously) several buttons. 2 of which, in different positions on different screens, render a different colour to the rest. As you can see below, "New game" ...
1
vote
0answers
2k views

How do I use CC_CALLBACK for external classes in Cocos2dx v3.2?

I've been having problems with using 'CC_CALLBACK_#' (i.e. CC_CALLBACK_0, CC_CALLBACK_1). It works alright if I am using it to call a function from the class (Using 'GameScene' class for this example) ...
1
vote
3answers
5k views

How to make a horizontal scrolling menu in Unity 3d 4.5 [closed]

I want to make a horizontal scrolling menu that will hold the levels of a game but I have a little idea about how to make it so it would be very great if anyone help me with it.
0
votes
1answer
145 views

How to change something inside an switch statement? [closed]

So my question is how would you draw a list of strings, and then if a case of the enum is a certain way, then draw them a different way? Here is an example of what I mean: ...
0
votes
1answer
2k views

Create a game start-up menu screen with Lua/love 2d

I just got started programming games and decided to try out love2d since I'm learning lua. I was wondering if anyone knows how I can create just a simple 2-3 button menu when you start up the game. ...
0
votes
1answer
70 views

Button image on game menu is updating too slow

I'm using SDL2 and i'm facing a problem with my game menu buttons. Every time i detect that the mouse pointer is over a button of the menu i update the image of the button (from ...
0
votes
1answer
254 views

3D Menu Attached to an Object?

So I'm gathering information for my project, and one of the things I want to achieve is to create a very sophisticated crafting system and weapon modification but I want the weapon customization to ...
0
votes
2answers
2k views

A single libgdx gamescreen with pop-up menu, getting ready, hud and game over?

Is it possible and practical to have only one screen, like a GameScreen class, where the menu, getting ready (plus instructions), hud (only score) and game-over screens can pop-up when needed. Can I ...
0
votes
1answer
1k views

Screen management: How to switch between screens

How can I switch between different screens that implement Screen?
0
votes
1answer
6k views

How do I set a background image in OpenGL/GLFW?

I'm writing a simple 2D game with C++ and OpenGL/GLFW, and my current step is to create a menu. I finished with buttons, but I think it looks a little bit boring (with only 4 buttons and a black ...
0
votes
2answers
4k views

Unity3D : Retry Menu (Scene Management)

I'm making a simple 2D game for Android using the Unity3D game engine. I created all the levels and everything but I'm stuck at making the game over/retry menu. So far I've been using new scenes as a ...
0
votes
1answer
526 views

Xna menu navigation with controller

I have a menu that you can navigate with the keyboard, but I also want it so you can navigate it with the controller thumb sticks. But my problem is that if you push down or up on the thumb sticks it ...
0
votes
2answers
2k views

Responsive GUI with Unity and C# script

I'm working on my character menu for an RPG in Unity. I have my menu set up with different buttons for different categories. All is well, except when I re-size my screen, my layout is sized ...
0
votes
1answer
26 views

How to queue a paid function to run in Unity after an IAP button purchase completes to fund it?

My app will feature tokens to fund some in app functions. If someone clicks a menu button to run a paid function and has insufficient tokens, they should be prompted with a new token purchase menu to ...
0
votes
1answer
352 views

How can I structure in-game menus?

I'm working on a multiplayer RPG using only C++ and SDL2. I've already made the main menu and a map editor, and I'm preparing to make the actual game. The main menu and map editor were easy to ...
0
votes
1answer
134 views

How to implement a component-based model for menus in Unity?

I'm trying to create a "sims-like" context menu when an item / game object is clicked. This comes as an add-on question from this question: How to design context menus based on whatever the object ...
0
votes
1answer
444 views

How to disable MenuItem in play mode in Unity?

I created a function which snaps an object to pivot with a hotkey of Shift + S. When I play the game in which I run using Shift and move backwards using S I accidentally call the function. How can I ...
0
votes
1answer
64 views

Is there a term of art for the collection of non-gameplay screens or pages

Is there a term of art for the collection of non-gameplay screens or pages in a game. I am thinking of screens such as: title screen options menu (key bindings, volume, graphics quality) credits ...
0
votes
1answer
127 views

Need help in making buttons for MenuScreen in Java

I'm making a Menu for my game and I made the MenuState(class) and made a MouseManager(class, implemented MouseListener and MouseMotionListener) and they are different class in different folder. Here ...
0
votes
1answer
2k views

Navigating Libgdx Menu with arrow keys or controller

I'm attempting to make my menu navigable with the arrow keys or via the d-pad on a controller. So Far I've had no luck. The question is: Can someone walk me through how to make my current menu or ...