Giter VIP home page Giter VIP logo

menuapi's Issues

Suggestion: Update to RegisterKeyMapping

I was going to do this, I forked the repo and everything, but I determined that I just don't have the time right now. It would be good to update where possible though because it improves resource performance.

Menu crashes on initialize

image

This error outputs when the menu initializes, here's the code:

private void CreateMenu()
        {
            // Setting the menu alignment to be right aligned. This can be changed at any time and it'll update instantly.
            // To test this, checkout one of the checkbox items in this example menu. Clicking it will toggle the menu alignment.
            MenuController.MenuAlignment = MenuController.MenuAlignmentOption.Right;

            // Creating the first menu.
            Menu menu = new Menu("Mascotas", "subtitle");
            MenuController.AddMenu(menu);

            // Adding a new button by directly creating one inline. You could also just store it and then add it but we don't need to do that in this example.
            menu.AddMenuItem(new MenuItem("Normal Button", "This is a simple button with a simple description. Scroll down for more button types!")
            {
                Enabled = true,
                LeftIcon = MenuItem.Icon.TICK
            });
        }

The type 'Control' is defined in an assembly that is not referenced.

Hey when trying to set
"MenuController.MenuToggleKey = -1;"
I get a an error saying "The type 'Control' is defined in an assembly that is not referenced. You must add a reference to assembly 'CitizenFX.Core.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null;"
Also get the same error when trying to do basically anything with the 'MenuController' class. Any idea of how to fix it?
Also I have been able to get in-game before trying to add MenuAPI as a reference to the project.

Invisible Menu

Hello, I tried almost all the versions of MenuAPI and they all work but the menu seems to be invisible? Im able to control the menu but I cant see anything.

Im on windows 8.1 with latest version of gtav and fivem

any ideas?

Any idea?

I have updated to the latest version and this keeps happening to me, any idea why it is? when you open any menu then you can reopen it by hitting the L key

image

Thanks for this project <3.

M opens multiple menus

M is the interaction menu keybind on mine and when I press it, it opens the main vmenu and the other menu that I created using menuapi. Is there a setting within the api to stop the main key from opening it? I want the main vmenu to open but not this separate menu.

MenuAPI Exports

Hi!
The system looks great, and I've been experimenting with it for a little bit.
My entire codebase is in JavaScript, and there's really nothing that compares to this API as of yet.
Would it be possible to expose all the functions, events etc. with exports?

If so, is this planned?

Setting a menu ("", description) hides HeadTextures

if i create a menu like

Menu MenuVariable = new Menu("", "this is a description");
MenuVariable.HeaderTexture = new KeyValuePair<string, string>("texture", "texture");

if the title is set to "" (empty) the HeaderTexture is hidden... to show the HeaderTexture i have to use an empty char (space bar key) like " "

Input stucks

Hello everyone, i got control stuck after using arrow up at the menu. It's changing menu position upper for some time and then it's completely stopped, i cant press any key, but can move mouse (can't press exit menu). That's problem still after closing menu (last pressed key stuck for some time and then stucks completely). After removing MenuAPI problems gone.

[Request/suggestion] Exposing delay variable for user input

[Request/suggestion]
Hi, it would be nice to have delay variable (used for faster left/right inputs in menu when holding down button) exposed for user to tune. I'm talking about line 484 and 512 of MenuController.cs:
if (times > 2) { delay = 150; }
I was looking for a way to speed up left/right inputs for sliders/lists (with bigger lists it takes long time to scroll through them) and thought it would be nice to have some sort of public var to tune the delay.

OnMenuClose.. close too much

i'm here agin to piss you off again XD i don't know if this is intentional but i think so.. whenever i call OnMenuCLose.. the code in the event is executed even if i'm passing to a submenu.. for example the problem is like.. if i use OnMenuClose to delete a scripted camera that should still exist with the submenu.. the camera gets deleted when passing to the submenu

PreventExitingMenu not working

Okay, I have one menu, with only one item, and I have this code:

MenuController.MenuAlignment = MenuController.MenuAlignmentOption.Right;
MenuController.PreventExitingMenu = true;

The aligment is working, I can set it to the left/to the right, but the PreventExitingMenu not doing anything. I can still exit the menu with the esc button, the backspace etc..

Menu opens by pressing M

Hey, I don't have any keybind set to M in my whole code, however when I press that it opens a submenu of a submenu. I've tried by removing the submenu, but then it opens the main menu.

Permission to use a feature

Hi tom, it's manu.. sorry for adding an issue for this but i didn't know how else to contact you since you disabled PMs in your discord XD some people asked me to add to NativeUI the dynamic ItemData for UIMenuItem that you have in your MenuAPI, of course before doing such thing i think it's right to ask permission to you, of course giving proper credit into the Commit message. Since they ask a feature from your menu even if it's only 1 line it's a must to talk about it with you first. That asked i wish you all the best ๐Ÿ‘ ๐Ÿ˜„ and damn your work is REMARKABLE!

Menu Glare

I'd love to see a toggle in the Menu class to draw the MP_MENU_GLARE Scaleform on the header (like in GTA Online):

image

Here's an example of an implementation in NativeUI citizenfx/NativeUI@738186c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.