Jump to content

New Container Widget

Recommended Posts

I'm trying to add a new container widget with a different size, but using the code:

inst.components.container:SetNumSlots(#slotpos)inst.components.container.widgetslotpos = slotpos--inst.components.container.widgettype = "chest"inst.components.container.widgetanimbank = "ui_new"inst.components.container.widgetanimbuild = "ui_new"inst.components.container.widgetpos = Vector3(0,200,0)inst.components.container.side_align_tip = 160		

just gives an error.


I looked into how the other containers work, and they are all declared in containers.lua


Is there anyway to make a new widget without modifying containers.lua(which I believe could cause incompatibilities?)

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