![]() |
Bag test
1 Attachment(s)
trying to do a bag mod here.(first part of image) Problem is, when it loads in the world, its somewhat clipped (second part of image). Upon right clicking window settings and clicking "default location" it assumes the default location and opens up or unclips (third part of image). Anyone have an idea what might be happening?
Code <?xml version="1.0" encoding="utf-8"?> <Page Activated="true" eq2usescomwndcontrols="true" Location="26,217" MaximumSize="1024,1024" MinimumSize="20,20" Name="Bag" ScrollExtent="426,82" Size="426,82" UserMovable="true"> <Button LocalTooltip="Close" Name="WC_CloseButton" PackLocation="right,top" PackLocationProp="-426/0001,0000/0001" ScrollExtent="15,15" Size="15,15" Style="/ButtonStyles.close_button" Tooltip="Close" UserMovable="true"></Button> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="15,1" MouseOverColor="#FFFF00" Name="Slot 0" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="56,1" MouseOverColor="#FFFF00" Name="Slot 1" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="97,1" MouseOverColor="#FFFF00" Name="Slot 2" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="138,1" MouseOverColor="#FFFF00" Name="Slot 3" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="179,1" MouseOverColor="#FFFF00" Name="Slot 4" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="220,1" MouseOverColor="#FFFF00" Name="Slot 5" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="261,1" MouseOverColor="#FFFF00" Name="Slot 6" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="302,1" MouseOverColor="#FFFF00" Name="Slot 7" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="343,1" MouseOverColor="#FFFF00" Name="Slot 8" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="384,1" MouseOverColor="#FFFF00" Name="Slot 9" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="15,41" MouseOverColor="#FFFF00" Name="Slot 10" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="56,41" MouseOverColor="#FFFF00" Name="Slot 11" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="97,41" MouseOverColor="#FFFF00" Name="Slot 12" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="138,41" MouseOverColor="#FFFF00" Name="Slot 13" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="179,41" MouseOverColor="#FFFF00" Name="Slot 14" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="220,41" MouseOverColor="#FFFF00" Name="Slot 15" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="261,41" MouseOverColor="#FFFF00" Name="Slot 16" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="302,41" MouseOverColor="#FFFF00" Name="Slot 17" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="343,41" MouseOverColor="#FFFF00" Name="Slot 18" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="384,41" MouseOverColor="#FFFF00" Name="Slot 19" ScrollExtent="40,40" Size="40,40" TreatAsButton="true"/> </Page> |
I ran into that trying to shrink the Slots. I never really found a reason for it.
|
I got this problem when I shrank the size of the bag slots on a bag mod I did.
What I did to fix is just expand height of the parent bag window a good deal until it showed everything. Weird problem I must say heh |
Horizontal Scaling Bags
It looks like you are trying to do bags similar to what I want. The bags seem to scale fine vertically but not horizontally. Sony makes the bags are 4 slots wide and x slots tall based on the number of slots of the bag. I noticed that the bag mod I had installed only showed the first few rows in the uibuilder but had no problem expanding vertically to show all rows of a 20 slot bag. I would like to do that same thing but horizontally.
I figure there has to be something in the xml that says its allowed to expand one direction but not the other, because it cuts off if I add slots horizontally. I'm a n00b at UI building so sorry If my thoughts are out of wack. |
More likely, there's something hardcoded that's giving you this grief. Your best bet is to look for ways to get around it (making it extra big so when it sizes down what you want will still show, uhm or something). Be creative, likely this'll be a pain like EQ1's container window.
Quib |
I just made a bag layed out like this for my UI..
To get around the sizing problem I hid slots 2,4,6,8,10,12,14,16,18 in UI Builder and set there OnShow event to resize the window to what I needed.. EX Code (From my UI) for slot 2 OnShow property Code:
Parent.MinimumSize=96,112 |
So your bag is 2 slots vertical and works its way to the right as we add more slots?
/edit: I have so much to learn. Code:
<Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="4,20" MouseOverColor="#FFFF00" Name="Slot 0" ScrollExtent="42,42" Size="42,42" TreatAsButton="true" /> 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, x, x+1, I want the bag to work like this 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, x, x+1, x+2, ..., x+n |
Quote:
The rest of the message makes no sense to me.. You're trying to layout a bag that is 10x2 and adds the second row when needed? edit: changed 12x2 to 10x2 :) |
Quote:
|
Yep my solution should be able to handle it..
You would have to set slots 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 to Visible false.. Then for each of those slots change the OnShow Property to the code I posted and substitue the sizes to the sizes you would like the window to be For instace if your bag is sposed to be 178,62 for 4 slots you would change the OnShow property of slot 3 to Parent.MinimumSize=178,62 Parent.MaximumSize=178,62 Parent.Size=178,62 the next slot would be: 178+42 Parent.MinimumSize=220,62 Parent.MaximumSize=220,62 Parent.Size=220,62 next slot would be: 220+42 etc. etc. |
you sorta get sick of 42 after awhile dontcha? Where is the OnshowProperty? I don't see it in the default bag UI but perhaps its an option that will end up in mine after I edit them. I did notice the hide/show other elements feature in the UIBuilder.
|
1 Attachment(s)
Quote:
edit: Added picture |
another n00b question. How do I put those 3 lines of code in that one element? What seperator do I use?
|
I've gotten close to what I want. I went more with your idea to use two rows instead of one big row. and make the bag wider by 2 each time. still trying to figure out how to get the backdrop to scale with the bag size.
I think this is originally insomniac's bag mod, I should figure out who so they get the props they deserve. |
Quote:
How do you get the multiple lines in the OnShow Property box? Is there some sort of field divider I need to include between Parent.MinimumSize=, Parent.MaximumSize=, and Parent.Size=? |
Quote:
OnShow="Parent.MinimumSize=100,100 Parent.MaximumSize=100,100 Parent.Size=100,100" Or OnShow="Parent.MinimumSize=100,100 Parent.MaximumSize=100,100 Parent.Size=100,100" Both work fine. I ended up abandoning the horizontal bags after playing with this for awhile, I ended up shrinking the name of the bag to a smaller font and making two lines of the bag name display and it solved my problem without creating extra headaches. |
| All times are GMT -5. The time now is 05:01 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI