About This File

Improvements over the previous nativeui:

  • Added `UIMenuDynamicListItem`.
  • Descriptions are no longer cut off at 99 characters, but now support 99 * 3.
  • `UIMenuListItem` and `UIMenuSliderItem` can now store extra data.
  • Improved description line wrapping.
  • Description caption is now only updated when necessary.
  • Description background is now only updated (recalculated) when necessary.
  • Bettered the position of the left arrow for list items.
  • Added new badges (Sale, Arrows and Voice Icons).
  • Added `Menu.RemoveItem(item: UIMenuItem)`.
  • When binding an item to a menu, automatically add that item if it isn't in the menu items list already.
  • Added `MenuOpen` event when `menu.Visible` is changed.
  • When hovering over the currently selected ListItem's title text, the cursor will be MiddleFinger, just like in the original menus.
  • `GoLeft` and `GoRight` now correctly handles disabled items.
  • Added experimental automated menu pool system (It's a bit effy right now).
  • MENUS ARE NO LONGER SHOWN BY DEFAULT.
  • Added `closeChildren: boolean = false` parameter to `menu.Close()`. An optional parameter specifiing whether or not you want to close all children with the menu.

NOTE BRIEFLY:

  • The description and optimization updates for me saved over 20-30 FPS while a menu is open.
  • You might want to be careful with menu pools right now. I haven't went deep into it but for simple menu pools it works GREAT.
  • `MenuClose` event is NOT emitted when Visible is set to false. This is to allow users to reopen menus at it's same state, for e.g searching through a store.
  • The GitHub will not match the file here. So please download the file from GitHub (dist/index.ts) or compile it yourself.

 

https://github.com/karscopsandrobbers/RAGEMP-NativeUI


What's New in Version 1.0.0   See changelog

Released

No changelog available for this version.

  • Like 4



User Feedback

Recommended Comments

Some Documentation? If i simple replace my current version with new version, menu does not open when triggered

Share this comment


Link to comment
Share on other sites
1 hour ago, Flow said:

Some Documentation? If i simple replace my current version with new version, menu does not open when triggered

When they are actually triggered, ie you are actually making them visible or is it because you are expecting them to open like before?

Quote

- MENUS ARE NO LONGER SHOWN BY DEFAULT.

 

Edited by Brophy

Share this comment


Link to comment
Share on other sites

No they are closed by default. Have to double check when i am at home how i open them exactly. Tester told me that they simple do not open on key press.

 

PS: Jep my bad. tought i had it in my code but now i remember.

if (!ui.Visible) ui.Open();

Thanks

Edited by Flow

Share this comment


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now