RoboMat Posted August 31, 2013 Share Posted August 31, 2013 Heyho, I've created another tutorial over at pz-mods.net which explains how to use inventory context menus. How to create Inventory Context Menus It especially shows you how to differentiate between single items, stacks and multiple stacks of items. Hope it helps! P.S.: http://thecodinglove.com/post/47120159615/when-my-code-works-on-the-first-try Eggplanticus, kinyoshi, Suomiboi and 1 other 4 Link to comment Share on other sites More sharing options...
Eggplanticus Posted August 31, 2013 Share Posted August 31, 2013 Great tutorial! I learned some useful info from it. By the way, I would put if #clickedItems > 1 then return; endAbove the for loop to get rid of redundant tests. Although... I guess it only executes once anyhow. Also, this function is broken:function UIDestroyItems.onDestroyItem(_items, _player, _item) _item:getContainer():Remove(_item); _player:Say("I end RoboMat 1 Link to comment Share on other sites More sharing options...
RoboMat Posted September 1, 2013 Author Share Posted September 1, 2013 Thanks! Fixed the broken function and add your suggestion to the bottom of the post Link to comment Share on other sites More sharing options...
Zicem Posted April 3 Share Posted April 3 can we get an updated link? or an updated tutorial. 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