Ramibuk Posted October 31, 2013 Share Posted October 31, 2013 So for example if i right click on clothes, the "Rip bandages" will be hidden. Or even better where to look for possible actions with Events.OnPreFillInventoryObjectContextMenu ? Link to comment Share on other sites More sharing options...
RoboMat Posted October 31, 2013 Share Posted October 31, 2013 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 More sharing options...
Ramibuk Posted October 31, 2013 Author Share Posted October 31, 2013 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 More sharing options...
RoboMat Posted October 31, 2013 Share Posted October 31, 2013 I suggest you look at ISContextMenu.lua. I don't think there is a removeOption() function in there (IIRC), but maybe clear() is what you are looking for. Link to comment Share on other sites More sharing options...
Ramibuk Posted October 31, 2013 Author Share Posted October 31, 2013 (edited) Good thats place i was looking for Edited October 31, 2013 by Ramibuk Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now