Jump to content

ItemActionEntryWear.OnActivated()


Recommended Posts

Can someone explain how XUiC_ItemActionEntry is initialized or where from? I want to use ItemActionEntryWear.OnActivated() If I use it directly I keep getting null reference errors. Or any examples if someone has worked with ItemAction classes.

From what I understood 

XUiC_ItemActionList keeps the XUiC_ItemActionEntry which keeps the BaseItemActionEntry which has the ItemActionEntryWear

I have a custom equip slots and I want to use the wear function which is ItemActionEntryWear.OnActivated()

The windowAction something is inside the Inspect window when you select an Item which has the wear active.


 

Edited by w2lf
color (see edit history)
Link to comment
Share on other sites

Nevermind figured it out. ItemController was null.
 

 ItemActionEntryWear itemActionEntryWear = new ItemActionEntryWear(xUiC_ItemStack);
 itemActionEntryWear.ItemController = xUiC_ItemStack;
 itemActionEntryWear.OnActivated();
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
×
×
  • Create New...