zUsername Posted July 20, 2015 Share Posted July 20, 2015 How to make container or chest only have 1 slot?I'm try to add this codeanimbank = "ui_cookpot_1x4",animbuild = "ui_cookpot_1x4",But it's have 4 slot and I'm set SlotNum to 1 it's work but it's look so weird.So hope you guys will help me. Thanks in advance. Link to comment https://forums.kleientertainment.com/forums/topic/56322-container-has-only-1-slot/ Share on other sites More sharing options...
DarkXero Posted July 20, 2015 Share Posted July 20, 2015 @zUsername.Like this?If you want a 1x1 image for background you will need to make one.Onety Chest.zip Link to comment https://forums.kleientertainment.com/forums/topic/56322-container-has-only-1-slot/#findComment-655926 Share on other sites More sharing options...
zUsername Posted July 20, 2015 Author Share Posted July 20, 2015 @zUsername.Like this?If you want a 1x1 image for background you will need to make one. thanks you. But I already have the file one slot.Can you give size of background for 1 slot ? Thanks you very much. Link to comment https://forums.kleientertainment.com/forums/topic/56322-container-has-only-1-slot/#findComment-655938 Share on other sites More sharing options...
DarkXero Posted July 20, 2015 Share Posted July 20, 2015 (edited) Can you give size of background for 1 slot ? UI backgrounds are images. Static images. You have 2x4, 5x3, 3x2, 3x3, 3x4, 1x4, 2x3, 2x5, 2x8, 2x6.Anything else you have to make it yourself. The nice clean way would be to decompress any of the zip in the anim folder, then run krane with it, then make a spriter project with cut images, or new images made by yourself. What I did here was cut the cookpot atlas and copy and rename the build, still using the anim from cookpot. It's clear in this Onety Chest that it's the cookpot anim because you can't click on stuff a bit below the background, but then again I don't want to make a button. I have to add.I found that I could resize a current background via editing the containerwidget class.The result is in Onety Chest Final.I use a rescaled ui_chest_3x3 to make a 1x1.Onety Chest.zipOnety Chest Final.zip Edited July 20, 2015 by DarkXero Link to comment https://forums.kleientertainment.com/forums/topic/56322-container-has-only-1-slot/#findComment-655982 Share on other sites More sharing options...
zUsername Posted July 21, 2015 Author Share Posted July 21, 2015 UI backgrounds are images. Static images. You have 2x4, 5x3, 3x2, 3x3, 3x4, 1x4, 2x3, 2x5, 2x8, 2x6.Anything else you have to make it yourself. The nice clean way would be to decompress any of the zip in the anim folder, then run krane with it, then make a spriter project with cut images, or new images made by yourself. What I did here was cut the cookpot atlas and copy and rename the build, still using the anim from cookpot. It's clear in this Onety Chest that it's the cookpot anim because you can't click on stuff a bit below the background, but then again I don't want to make a button. I have to add.I found that I could resize a current background via editing the containerwidget class.The result is in Onety Chest Final.I use a rescaled ui_chest_3x3 to make a 1x1. Thanks you again. It's work so great.One again thanks you so much @DarkXero <3 Link to comment https://forums.kleientertainment.com/forums/topic/56322-container-has-only-1-slot/#findComment-656100 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