Log in to reply
 

[TOOL][WIP][C++/SHV] Lightweight Menu Library



  • Lightweight menu library

    Comparison
    Left: Interaction menu, Right: Native Menu


    Speed comparison between interaction menu and this native menu.


    Native Menu is going to be a C++ library to get Rockstar-like menus in your ScriptHookV mods.

    SOURCE & Example

    Features

    • :ballot_box_with_check: Simple fast menu
    • :ballot_box_with_check: Simple nesting model
    • :ballot_box_with_check: Native controls
    • :ballot_box_with_check: Custom rebindable keyboard controls
    • :ballot_box_with_check: Incremental navigation speed
    • :ballot_box_with_check: Item descriptions with word wrap

    WIP/Missing:

    • :tools: Visually similar to GTA V's menus (WIP)
    • :negative_squared_cross_mark: Badges
    • :negative_squared_cross_mark: Custom banners
    • :negative_squared_cross_mark: Mouse/cursor support
    • :negative_squared_cross_mark: Safe zone adaption (current base: smallest)
    • :negative_squared_cross_mark: Aspect ratio adaption (current base: 16:9)
    • :question: Library usage

    A few months ago, I wanted a menu for some of my mods, since none NativeUI-like menu was available. It looked and worked quite differently when I first got my hands on the original source code - since then I've added, removed, refactored a bunch of things, making it look and feel like it does now.

    Usage and release

    Right now, I'm not sure what release approach should be taken here. During the development I used it in my own mods by just building the source files along with the mod project, but now I'm getting to a phase where I actually want to distribute it, I'm wondering about the implementation preferences of possible users. There are basically two options:

    • Full source code. This means the project can be cloned/copied from Git, where you actually build the source along with your project. This gives control over what menu version you're using and might prevent incompatibilities from happening. It will also allow you to change some implementation details if desired. Every change in the menus you wish to incorporate, will need a recompilation of your project though.
    • As a library. This means you'll be linking against NativeMenu.lib, and the user has a NativeMenu.dll - just like ScriptHookV.lib/ScriptHookV.dll. This puts me in control of distributing menus, but for the off chance of me messing with the API, you'll need to update your mod, or me having to distribute it as another library name to prevent incompatibilities.

    Are there any preferences under SHV mod developers? Please let me know.

    Releases

    No official releases yet, as it's still rather WIP. I'd like to add AR and safe zone adaption and make a final decision on the menu usage.


    The menu's still in development, so I'll still be adding/changing features. Beware of this if you choose to use it now already. The final goal would be to have a featureset similar to NativeUI.



  • Menu usage poll

    So I have an indication of how/what the preference is. In case it'd be a library like NativeUI, I'll probably need to work longer on it.



  • Pretty cool.
    But why does everybody like the default menu style so much? xD



  • @ikt Amazing work, A substitute for NativeUI was indeed very much needed. Any FPS hit while accessing these mod menu in game screen?



  • @MAFINS
    Thanks! Default aesthetics work probably. :p

    @ashishcw
    None, but beware that it's for SHV, not SHVDN sadly.



  • @ikt ah yeah, right, as the title reads, my bad, I missed it. Anyways, good work.
    I wonder if any one would be making new menu plugin available for C#, AFAIR, LeeC was working on some similar thing for C#, I am unsure though. Thanks anyways.



  • @ashishcw What's wrong with NativeUI?



  • @MAFINS
    Eats ~30 FPS when opened.


  • TRANSLATOR

    @ikt the 1 / 4 should place next to C++ MENU SHOWCASE

    and the blue bar between menu items and item description should only show when item is more than 10



  • @ikt Is good to see modders interested in enhance the menu experiences.
    Other guys like LecLee or Rarefacer are developing good menu styles with not performance issues:

    LeeC2202 Menu

    Rarefacer Menu


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.