Aquaterion Posted January 11, 2015 Share Posted January 11, 2015 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 https://forums.kleientertainment.com/forums/topic/48933-new-container-widget/ Share on other sites More sharing options...
DarkXero Posted January 11, 2015 Share Posted January 11, 2015 http://forums.kleientertainment.com/topic/47353-guide-getting-started-with-modding-dst-and-some-general-tips-for-ds-as-well/?p=600043 Link to comment https://forums.kleientertainment.com/forums/topic/48933-new-container-widget/#findComment-600374 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