Skip to content

RAGENativeUI 1.8

Compare
Choose a tag to compare
@alexguirre alexguirre released this 27 Jun 00:00
· 77 commits to master since this release

Available on NuGet.

Changelog (click to expand)

Features

  • Added Localization class (#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 as DRAW_SPRITE (#101):
    • To access an embedded texture, use embed:model_name as the texture dictionary. For example, texture dictionary embed:prop_bbq_2 and texture name p_v_bbq_2.
    • The model needs to be loaded first to be able to access the texture.
    • embed:model_name can be used with RAGENativeUI.Elements.Sprite but the model needs to be loaded by the user. The class assumes that it is always loaded, so Sprite.IsTextureDictionaryLoaded always returns true and Sprite.LoadTextureDictionary() does nothing.
  • Added UIMenuPanel classes (#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 between 0 and 1 (from GTA Online character creator).
      • UIMenuStatsPanel: displays multiple named values (from Los Santos Customs menu).
    • Use UIMenuItem.Panels to set the panels shown when this item is selected.
    • Use UIMenu.PanelsOverride to set the panels shown always instead of the UIMenuItem.Panels of the selected item.
  • Added option to disable background postfx in TabView with the TabView.PlayBackgroundEffect property.
  • Published NuGet package.

Fixes

  • Fixed crash when UIMenuItem.Text is 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 UIMenuItem when TabInteractiveListItem is unfocused.
  • Fixed TabMissionSelectItem not drawing MissionLogos 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 TabSubmenuItem without items (#122).
  • Fixed incorrect behaviour of TabView.Visible causing TabView.IsAnyPauseMenuVisible to always return true in some cases (#125).