RAGENativeUI 1.8
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 asDRAW_SPRITE
(#101):- To access an embedded texture, use
embed:model_name
as the texture dictionary. For example, texture dictionaryembed:prop_bbq_2
and texture namep_v_bbq_2
. - The model needs to be loaded first to be able to access the texture.
embed:model_name
can be used withRAGENativeUI.Elements.Sprite
but the model needs to be loaded by the user. The class assumes that it is always loaded, soSprite.IsTextureDictionaryLoaded
always returns true andSprite.LoadTextureDictionary()
does nothing.
- To access an embedded texture, use
- 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 between0
and1
(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 theUIMenuItem.Panels
of the selected item.
- Interactive panels displayed below a
- Added option to disable background postfx in
TabView
with theTabView.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
whenTabInteractiveListItem
is unfocused. - Fixed
TabMissionSelectItem
not drawingMissionLogo
s 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
causingTabView.IsAnyPauseMenuVisible
to always return true in some cases (#125).