![]() |
Having problems with bag resizing...
1 Attachment(s)
For 7th slot...
OnShow="Parent.MinimumSize=263,111 Parent.MaximumSize=263,11 Parent.Size=263,111" +43 for each 6 bags... But I am having a problem where if I start out with a 12 slot, (or any slot bag for that matter... then I place a bigger slot bag in the same spot... then place the smaller bag back in the original spot... the size will not reset for the smaller bag... See the attached image for details. |
Look at a version of the bag mod where each slot had an actual onshow event that determined sizing of the frame and the overall bag. Use the mod by ger or My depechenode's Advanced 3/4 Bag w/titles (which I used ger's mod for MY bag as well, I just changed a few things to my liking). Either one will show you how to use the sizing part.
Basically each slot will look to see if it is being shown if so resize the bag frame to fit. If not, resize ridding the dead space. But all is tied to onshow events. |
Hmm.. Try:
OnShow="Parent.Size=263,111 Parent.MinimumSize=263,111 Parent.MaximumSize=263,11" Reason being when using spaces inbetween script commands it is read from right to left.. You have to set the max size then the min size then set the actual size.. |
Talyns that didnt fix it... I dont think that would make a difference anyways as the size will be configured anyways as soon as you set the maximum and minimum sizes.
Depechenode, I think you missed the point of my post... I have added actual onshow events that determine the size of my bag. However, the onshow event only makes the bag bigger... once you close the bag it doesnt run an onhide event. So the bag doesnt get smaller. Look at the image. Once the big bag is open, it onshows slot 6, 12, 18, and 24 which sets the size to 240. When I close the bag, it does not hide slots 6, 12, 18 and 24. So the next time a bag is opened, it doesnt onshow any slots, it just assumes that 24 is open. I tested both the mods you reocmmended above Depechnode... they BOTH have the same exact problem I am having... the only difference is you cant tell they are having the problem because they have no background. |
Ok I thought that fixed it for me but I tested my mod again and it didn't work.. That was to fix another bug with resizing to larger sizes :o
Ok to fix the bug change the OnHide of the Bag Window Page to: 'slot 0.visible'=false 'slot 1.visible'=false 'slot 2.visible'=false 'slot 3.visible'=false 'slot 4.visible'=false 'slot 5.visible'=false 'slot 6.visible'=false 'slot 7.visible'=false 'slot 8.visible'=false 'slot 9.visible'=false 'slot 10.visible'=false 'slot 11.visible'=false 'slot 12.visible'=false 'slot 13.visible'=false 'slot 14.visible'=false 'slot 15.visible'=false 'slot 16.visible'=false 'slot 17.visible'=false 'slot 18.visible'=false 'slot 19.visible'=false 'slot 20.visible'=false 'slot 21.visible'=false 'slot 22.visible'=false 'slot 23.visible'=false 'slot 24.visible'=false 'slot 25.visible'=false 'slot 26.visible'=false 'slot 27.visible'=false 'slot 28.visible'=false 'slot 29.visible'=false 'slot 30.visible'=false 'slot 31.visible'=false 'slot 32.visible'=false 'slot 33.visible'=false 'slot 34.visible'=false 'slot 35.visible'=false addeum: Tested briefly seemed to fix it.. |
| All times are GMT -5. The time now is 10:38 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI