RAGENativeUI 1.8.1
Available on NuGet.
Changelog (click to expand)
Features
- Added support for skippable
UIMenuItem
s (#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.CurrentSelection
will be set to -1.
- Use
- Added support for 'no selection' state in
UIMenu
with items:- When there is no selection, the navigation bar will not be drawn.
UIMenu.CurrentSelection = -1;
indicates this state.- BREAKING CHANGE:
UIMenu.CurrentSelection
no 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.GetIconToken
extension method (#133):- Used to get token string needed to display the blip sprite inlined in formatted scaleform text.
- Can be used with
Rage.Blip
andRage.BlipSprite
:Game.DisplayHelp($"Go to ~{myBlip.GetIconToken()}~.");
Game.DisplayHelp($"Go to ~{BlipSprite.Waypoint.GetIconToken()}~.");
- Combine with
HudColor
to change the blip color:Game.DisplayHelp($"Go to ~{HudColor.Red.GetName()}~~{myBlip.GetIconToken()}~~s~.");