Jump to content

Remove option from item context menu


Ramibuk

Recommended Posts

Hm ... not without overwriting the vanilla function I guess :/

 

I don't understand your second question. I have written my own Inventory Context menu for my Unpack Bags mod so maybe you can take a look at that. 
 

I also have written a tutorial on Inventory Context Menus, but I need to overhaul that some time:

http://pz-mods.net/guide/how-to-create-inventory-context-menus/

Link to comment
Share on other sites

I put question wrong i guess,but I saw it it your tutorial you pointed above:

 

function UIDestroyItems.createMenu(_player, _context, _items){..._context:addOption("Destroy Item", clickedItems,            UIDestroyItems.onDestroyItem, player, item);...}Events.OnPreFillInventoryObjectContextMenu.Add(UIDestroyItems.createMenu); 

 

I thought if _context variable present list of context options, there can be maybe something like _context:removeOption()

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...