Jump to content
RAGE Multiplayer Community

Help with NativeUI, please


Recommended Posts

I'm creating an resource with NativeUI and I've some troubles. I can't find on the documentation so i really appreciate any help.

I created one menu with UIMenuListItem and i used the exemple on documentation: ui.ItemSelect.on(item => { }

The question are:

1) item.SelectedItem.DisplayText get the item's display text. But how could i get the item's caption, please?

ui.AddItem(new UIMenuListItem(
        "Select one color",        
        new ItemsCollection(["Blue", "Red", "Green"])

I want get the value: "Color" instead of "Blue". "Red" or "Green".
SOLVED: item.Text

2) The event: ui.ItemSelect.on(item => { } triggers after i press RETURN key. How could i trigger the event after i changed the item's value, without the need to press Return, please?

Thank you very much, have a nice day! 

Edited by joew
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...