Available on NuGet.
Changelog (click to expand)
Features
- Added support for skippable
UIMenuItems (#85):- Use
UIMenuItem.Skipped = true;to make the item skippable. - When a skipped item is selected, the selection will jump to the next non-skipped item. If all items are skipped,
UIMenu.CurrentSelectionwill be set to -1.
- Use
- Added support for 'no selection' state in
UIMenuwith items:- When there is no selection, the navigation bar will not be drawn.
UIMenu.CurrentSelection = -1;indicates this state.- BREAKING CHANGE:
UIMenu.CurrentSelectionno longer wraps around, so code likeCurrentSelection++/CurrentSelection--will not wrap around and select the first/last item when it reaches>= MenuItems.Count/< 0. Now the value must be -1 or in the range [0, MenuItems.Count), otherwise it throwsArgumentOutOfRangeException.
- Added
BlipExtensions.GetIconTokenextension method (#133):- Used to get token string needed to display the blip sprite inlined in formatted scaleform text.
- Can be used with
Rage.BlipandRage.BlipSprite:Game.DisplayHelp($"Go to ~{myBlip.GetIconToken()}~.");Game.DisplayHelp($"Go to ~{BlipSprite.Waypoint.GetIconToken()}~.");
- Combine with
HudColorto change the blip color:Game.DisplayHelp($"Go to ~{HudColor.Red.GetName()}~~{myBlip.GetIconToken()}~~s~.");
Fixes
Assets
3
Available on NuGet.
Changelog (click to expand)
Features
- Added
Localizationclass (#100):- Includes various properties/methods related to localization.
- Allows to override or create new text labels with custom strings.
- Added support for accessing textures embedded in fragments (
.yft) or drawables (.ydr) in native functions such asDRAW_SPRITE(#101):- To access an embedded texture, use
embed:model_nameas the texture dictionary. For example, texture dictionaryembed:prop_bbq_2and texture namep_v_bbq_2. - The model needs to be loaded first to be able to access the texture.
embed:model_namecan be used withRAGENativeUI.Elements.Spritebut the model needs to be loaded by the user. The class assumes that it is always loaded, soSprite.IsTextureDictionaryLoadedalways returns true andSprite.LoadTextureDictionary()does nothing.
- To access an embedded texture, use
- Added
UIMenuPanelclasses (#113):- Interactive panels displayed below a
UIMenu, after the description. - Implementations added in this release:
UIMenuGridPanel: grid where the user can choose a 2D point between(0, 0)and(1, 1)(from GTA Online character creator).UIMenuSliderPanel: slider bar where the user can choose a value between0and1(from GTA Online character creator).UIMenuStatsPanel: displays multiple named values (from Los Santos Customs menu).
- Use
UIMenuItem.Panelsto set the panels shown when this item is selected. - Use
UIMenu.PanelsOverrideto set the panels shown always instead of theUIMenuItem.Panelsof the selected item.
- Interactive panels displayed below a
- Added option to disable background postfx in
TabViewwith theTabView.PlayBackgroundEffectproperty. - Published NuGet package.
Fixes
- Fixed crash when
UIMenuItem.Textis null (#96). - Fixed incorrect custom menu banner position when the game is windowed (#97).
- Fixed stretched menus in ultrawide resolutions (#98).
- Fixed incorrect foreground color of selected
UIMenuItemwhenTabInteractiveListItemis unfocused. - Fixed
TabMissionSelectItemnot drawingMissionLogos that use game textures (#108). - Fixed issue in some multiple display setups causing the camera to rotate when opening a menu (#109).
- Fixed crash in
TabSubmenuItemwithout items (#122). - Fixed incorrect behaviour of
TabView.VisiblecausingTabView.IsAnyPauseMenuVisibleto always return true in some cases (#125).
Assets
3
PreviousNext