Jump to content
RAGE Multiplayer Community

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

ragempdev

   3 of 4 members found this review helpful 3 / 4 members

sharing is karing

Link to comment
Jaimuzu

   0 of 1 member found this review helpful 0 / 1 member

🥰🥰🥰🥰🥰

  • Like 1
Link to comment
Flow

· Edited by Flow

  

Thanks for your efford

Link to comment
×
×
  • Create New...