Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[DEV TOOL | REL] RAGENativeUI

Featured Replies

  • Replies 68
  • Views 207.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • alexguirre
    alexguirre

    RAGENativeUI 1.6 Changelog Added MIT license. Added TabInteractiveListItem. Added BaseCollection class. Added DisplayItemsCollection class, IDisplayItem interface and D

  • alexguirre
    alexguirre

    RAGENativeUI has been updated to version 1.4  Changelog Fixed UIMenu.SetMenuWidthOffset() throwing NullReferenceException if the UIMenu didn't have a subtitle. Added MenuPoo

  • RAGENativeUI 1.5.1  Albo1125 released this 8 minutes ago Added UIMenuListItem._holdTime This fixes an issue causing menus to instantly switch back when scrolling through th

  • 1 month later...
1 hour ago, alexguirre said:

RAGENativeUI has been updated to version 1.4

 Changelog

  • Fixed UIMenu.SetMenuWidthOffset() throwing NullReferenceException if the UIMenu didn't have a subtitle.
  • Added MenuPool.Remove().
  • Added UIMenuSwitchMenusItem.
  • Added UIMenu.Reset() and MenuPool.ResetMenus().

Is this version backwards compatible? I.e do mods need to be updated to work with the new version?

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

52 minutes ago, PNWParksFan said:

Is this version backwards compatible? I.e do mods need to be updated to work with the new version?

Yes, it's backwards compatible.

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • Author

RAGENativeUI has been updated to version 1.4.1

 Changelog

  • Added support for RAGEPluginHook v0.39. Doesn't support previous versions.
  • Common.GetPressedKeys() now returns an ICollection instead of an IList.
  • Removed unnecessary BarTimerBar.Text property.
  • 3 weeks later...

Not sure this is the correct place to ask for help, but...

I'm trying to figure out how to use the UIMenuListItem so that I can browse through different menu (typically, evey item in that list corresponds to a new menu with a new set of options... Like the Interaction Menu from LSPDFR)

I came up with this:

private static UIMenu mainMenu;
private static UIMenu talkMenu;
private static UIMenuListItem ActionsList;
/* ...
lots of items for the menu are declared here
... */

private static MenuPool _menuPool;

public void main() {
	
	/**
	  * MAIN MENU
	  *
	  */
	mainMenu = new UIMenu("Main Menu", "fdgdfgd");
	_menuPool.Add(mainMenu);

	// creating objects for mainMenu
	List<dynamic> actions = new List<dynamic> {"Main menu","Talk menu"};
	ActionsList = new UIMenuListItem("Action", actions, 0);
	/* ... items are initialized here ... */
	/* ... items are added, etc ... */
	
	
	/**
	  * TALK MENU
	  *
	  */
	talkMenu = new UIMenu("Talk Menu", "fdgdfgd");
	_menuPool.Add(talkMenu);

	// creating objects for talkMenu
	List<dynamic> Actions = new List<dynamic> {"Main menu","Talk menu"};
	ActionsList = new UIMenuListItem("Action", actions, 1); // same action redefined, with index 1 (is that correct?)
	/* ... items are initialized here ... */
	/* ... items are added, etc ... */
}


public static void OnListChange(UIMenu sender, UIMenuListItem list, int index) {
	if (sender != mainMenu || sender != talkMenu || list != ActionsList) return; 

	if (sender == mainMenu) {
		// show talkMenu
	} else if (sender == talkMenu) {
		// show mainMenu
	}
}

 

Two question from here:

  1. Is there a more elegant way of doing it? (Typically, I handle it in the event OnListChange, which might not be the best... Plus, I have the same Item on both menus (the Actions one))
  2. How do I show the menu via this kind of UI Item? (the list thing) -> talkMenu.Visible = true?

Edit : the code above is just "theory crafted", meaning it hasn't been tested, and will probably not work. It's just to help picturing my idea.

Edited by liberto

  • Author
5 hours ago, liberto said:

<snip>

You might want to use UIMenuSwitchMenusItem for what you need.

It requires a List of UIMenu instances, you have to add the same UIMenuSwitchMenusItem instance to all the menus you added and to know the current menu, use UIMenuSwitchMenusItem.CurrentMenu, I recommend to use this to make the menus visible, making a different menu from the current one can cause some issues.

  • 1 month later...
  • Author

RAGENativeUI has been updated to version 1.5

 Changelog

  • Improve scrolling controls (not as sensitive as before).
  • Add UIMenu.HoldTimeBeforeScroll, UIMenuListItem.HoldTimeBeforeScroll and UIMenuListItem.ScrollingEnabled.
  • Fix being able to modify an UIMenuListItem if disabled.
  • Add UIMenuListItem.Items to be able to modify the items after its creation.
  • Fix texture flickering in UIMenu.DrawBanner().
  • Add overloads of methods with GraphicsEventArgs as parameter with Graphics as parameter.
  • Mark methods with GraphicsEventArgs parameters as obsolete.
  • Add TabView.DrawTextures() and TabItem.DrawTexture() providing support to draw custom textures in TabMissionSelectItem and any other future item that requires it.
  • Add Sprite.TextureDictionary, Sprite.IsTextureDictionaryLoaded and Sprite.LoadTextureDictionary().
  • Mark Sprite.TextureDict, Sprite.IsTextureDictLoaded and Sprite.LoadTextureDict() as obsolete.
  • Add UIMenu.CounterOverride.
  • Add Common.WriteFileFromResources().
  • Mark Sprite.WriteFileFromResources() as obsolete.
  • 1 month later...

RAGENativeUI 1.5.1

@Albo1125 Albo1125 released this 8 minutes ago

  • Added UIMenuListItem._holdTime
    • This fixes an issue causing menus to instantly switch back when scrolling through them with a list.

https://github.com/alexguirre/RAGENativeUI/releases

My YouTube: Click here. 

My Discord Server - https://discord.gg/0taiZvBSiw5qGAXU

Useful post? Let me and others know by clicking the Like button.
Check out my many script modifications! 
Having issues? LSPDFR Troubleshooter by Albo1125.

  • 6 months later...
  • Author

RAGENativeUI 1.6

Changelog

  • Added MIT license.
  • Added TabInteractiveListItem.
  • Added BaseCollection class.
  • Added DisplayItemsCollection class, IDisplayItem interface and DisplayItem class.
  • Added UIMenuListItem.Collection. Marked UIMenuListItem.Items as obsolete.
  • Added new constructors to UIMenuListItem. Marked old constructors as obsolete.
  • Add InstructionalButtons.
  • Add UIMenu.AddItem overload that accepts an index.
  • Added static Draw methods to the Rectangle, ResRectangle, Text, ResText and Sprite classes.
  • Added MissionPassedScreen, based off Guad's code: https://github.com/Guad/NOOSE/blob/master/MissionPassedScreen.cs
  • MenuPool and TimerBarPool now inherit BaseCollection.
  • Renamed UIMenuItem.Position method to SetVerticalPosition. Marked Position method as obsolete.
  • Added color properties to UIMenuItem(BackColor, HighlightedBackColor, ForeColor and HighlightedForeColor). Marked UIMenuColoredItem as obsolete.

 

Download: https://github.com/alexguirre/RAGENativeUI/releases/tag/1.6

Edited by alexguirre

  • 5 weeks later...
  • 1 month later...
  • 1 month later...
2 minutes ago, Tommy528 said:

This is very frustrating...... Is there anyone who can upload a working version of the file?

The file is fine, it's just incorrectly labeled as a ZIP when in fact it's a RAR. 7-zip can open it. 

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.