Nadevill Posted January 28, 2014 Share Posted January 28, 2014 I've been working on adding a "utility" slot to containers, a sort of output window for a function I am modding.I know ( or have a code to know) what item I want to place there.I want users to fully see the item with its image and even spoilage, stacks or percentage as in any normal container, only that slot be locked, as in users cant take the item, replace it, or eat it. even block clicking if neccecary (clicking just wont do anything). I override the containerwidget already, and modding the container itself in the mainmod.lua.how can I get closer to that goal? can I just render an image in code? Help would be appriciated. Link to comment https://forums.kleientertainment.com/forums/topic/31209-disabled-invslot-static-slots-itemtile-and-containers/ Share on other sites More sharing options...
Nadevill Posted January 30, 2014 Author Share Posted January 30, 2014 see mod-http://forums.kleientertainment.com/files/file/458-smarter-crock-pot/ The solution was to implement a class similar to InvSlot only with click methods that do nothing.Then to insert that new class into the containr through overriding containerwidget. Link to comment https://forums.kleientertainment.com/forums/topic/31209-disabled-invslot-static-slots-itemtile-and-containers/#findComment-410373 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