Skip to content

RAGENativeUI 1.8.1

Compare
Choose a tag to compare
@alexguirre alexguirre released this 01 Aug 21:01
· 57 commits to master since this release

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.CurrentSelection will be set to -1.
  • 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 like CurrentSelection++/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 throws ArgumentOutOfRangeException.
  • 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 and Rage.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~.");

Fixes

  • Fixed Localization.DoesTextExist/GetText not working correctly in b2372 (#130).
  • Fixed timer bars overlapping the instructional buttons in b2372 (#129).
  • Fixed incorrect item colors in TabInteractiveListItem when an item is selected but its tab is not focused (#127).