EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 12-20-2004, 01:39 PM
Weegie Weegie is offline
A Brown Bear
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 13
Default Bag test

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>
Attached Thumbnails
Click image for larger version

Name:	bagtest.jpg
Views:	467
Size:	28.0 KB
ID:	389  
Reply With Quote
  #2  
Unread 12-20-2004, 03:29 PM
malnedra malnedra is offline
A Rumbleroot Sapling
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 68
Default

I ran into that trying to shrink the Slots. I never really found a reason for it.
Reply With Quote
  #3  
Unread 12-20-2004, 04:33 PM
Euda's Avatar
Euda Euda is offline
A Griffawn
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Najena
Posts: 74
Default

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
__________________
Howto: Install an Interface
01000101010100010011001000100000011011010110000101110000011100110010000001100110
01101111011100100010000001110100011001010110100000100000011101110110100101101110

Euda
Long retired enchanter of Luclin.
Reply With Quote
  #4  
Unread 01-06-2005, 11:23 AM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default 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.

Last edited by sunthas : 01-06-2005 at 11:30 AM.
Reply With Quote
  #5  
Unread 01-06-2005, 11:26 AM
Haliken Haliken is offline
A Grove Wisp
 
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 27
Default

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
Reply With Quote
  #6  
Unread 01-06-2005, 04:09 PM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

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
Parent.MaximumSize=96,112
Parent.Size=96,112
Remember to set the Visible property for those slots to false..
Reply With Quote
  #7  
Unread 01-06-2005, 04:15 PM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

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" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="46,20" MouseOverColor="#FFFF00" Name="Slot 1" ScrollExtent="42,42" Size="42,42" TreatAsButton="true" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="88,20" MouseOverColor="#FFFF00" Name="Slot 2" ScrollExtent="42,42" Size="42,42" TreatAsButton="true" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="130,20" MouseOverColor="#FFFF00" Name="Slot 3" ScrollExtent="42,42" Size="42,42" TreatAsButton="true" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="4,62"
it looks to me like this bag is
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

Last edited by sunthas : 01-06-2005 at 04:26 PM.
Reply With Quote
  #8  
Unread 01-06-2005, 04:47 PM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

Quote:
Originally Posted by sunthas
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" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="46,20" MouseOverColor="#FFFF00" Name="Slot 1" ScrollExtent="42,42" Size="42,42" TreatAsButton="true" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="88,20" MouseOverColor="#FFFF00" Name="Slot 2" ScrollExtent="42,42" Size="42,42" TreatAsButton="true" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="130,20" MouseOverColor="#FFFF00" Name="Slot 3" ScrollExtent="42,42" Size="42,42" TreatAsButton="true" /> 
  <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="4,62"
it looks to me like this bag is
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
Yes it adds room for 2 more slots every time it needs it..

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

Last edited by Talyns : 01-06-2005 at 04:58 PM.
Reply With Quote
  #9  
Unread 01-06-2005, 05:44 PM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

Quote:
Originally Posted by Talyns
Yes it adds room for 2 more slots every time it needs it..

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
Or Xby1 where the bag gets 1 more slot added to the right for each one it needs. So the bag would be a long horizontal bag only as wide as it needs? I think your solution should do that, I'll have to play with it tonight. My problem before was even when the slots were visible, the edge of the bag might cut the slot in half.
Reply With Quote
  #10  
Unread 01-06-2005, 05:51 PM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

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.
Reply With Quote
  #11  
Unread 01-06-2005, 06:52 PM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

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.
Reply With Quote
  #12  
Unread 01-06-2005, 06:56 PM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

Quote:
Originally Posted by sunthas
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.
Each slot in UI builder should have an OnShow property..

edit: Added picture
Attached Thumbnails
Click image for larger version

Name:	example.jpg
Views:	312
Size:	36.7 KB
ID:	601  

Last edited by Talyns : 01-06-2005 at 07:02 PM.
Reply With Quote
  #13  
Unread 01-07-2005, 01:32 AM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

another n00b question. How do I put those 3 lines of code in that one element? What seperator do I use?
Reply With Quote
  #14  
Unread 01-07-2005, 03:26 AM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

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.

Last edited by sunthas : 02-24-2013 at 09:09 PM.
Reply With Quote
  #15  
Unread 01-16-2005, 12:11 AM
Ambrosia Ambrosia is offline
A Brown Bear
 
Join Date: Jan 2005
Server: Antonia Bayle
Posts: 12
Default

Quote:
Originally Posted by Talyns
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.
Very stupid question here, since this is my first attempt with this UI Builder...

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=?
Reply With Quote
  #16  
Unread 01-18-2005, 10:32 AM
sunthas sunthas is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Unrest
Posts: 306
Default

Quote:
Originally Posted by Ambrosia
Very stupid question here, since this is my first attempt with this UI Builder...

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=?
no divider, spaces or line returns work fine so you if you are using the UI Builder just uses spaces

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.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:09 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI