Jump to content

Recommended Posts

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.

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.

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