View Single Post
  #1  
Unread 02-09-2005, 09:36 PM
ger's Avatar
ger ger is offline
Steward of the Faithful
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 580
Default Bag mod won't resize correctly by number of slots

Okay folks, time to show my XML ignorance. Got a request for a 3/4 version of my no-overlap with grab-handle and started working to fill it, but I've run into a problem and I can't figure out what it is.

When I set the page scrollextent/size to what should be the maximum possible bag size (assuming a 20 slot bag) it crops part of the last line of a 12 slot bag. When I tweak scrollextent and size so that a 12 slot bag displays correctly it crops part of the bottom row of a 6 slot bag. I can't for the life of me figure out what I've done wrong, but I'm hopinh you guys and gals can. Code to follow.

Code:
<?xml version="1.0" encoding="utf-8"?>
  <Page Activated="true" eq2usescomwndcontrols="true" Location="0,0" MaximumSize="256,256" MinimumSize="32,32" Name="Bag" ScrollExtent="128,182" Size="128,182" UserMovable="true">
    <Button LocalTooltip="Close" Location="112,2" Name="WC_CloseButton" PackLocation="right,top" PackLocationProp="0001/0001,0001/0001" ScrollExtent="14,14" Size="14,14" Style="/ButtonStyles.close_button" Tooltip="Close" UserMovable="true"></Button>
    <Image Activated="true" GetsInput="true" Location="2,2" Name="WC_MoveButton" ScrollExtent="14,14" Size="14,14" SourceRect="122,476,136,490" SourceResource="/images/window_elements_generic.dds" Stretch="false"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="0,0" MouseOverColor="#FFFF00" Name="Slot 0" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="32,0" MouseOverColor="#FFFF00" Name="Slot 1" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="64,0" MouseOverColor="#FFFF00" Name="Slot 2" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="96,0" MouseOverColor="#FFFF00" Name="Slot 3" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="0,32" MouseOverColor="#FFFF00" Name="Slot 4" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="32,32" MouseOverColor="#FFFF00" Name="Slot 5" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="64,32" MouseOverColor="#FFFF00" Name="Slot 6" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="96,32" MouseOverColor="#FFFF00" Name="Slot 7" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="0,64" MouseOverColor="#FFFF00" Name="Slot 8" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="32,64" MouseOverColor="#FFFF00" Name="Slot 9" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="64,64" MouseOverColor="#FFFF00" Name="Slot 10" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="96,64" MouseOverColor="#FFFF00" Name="Slot 11" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="0,96" MouseOverColor="#FFFF00" Name="Slot 12" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="32,96" MouseOverColor="#FFFF00" Name="Slot 13" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="64,96" MouseOverColor="#FFFF00" Name="Slot 14" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="96,96" MouseOverColor="#FFFF00" Name="Slot 15" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="0,128" MouseOverColor="#FFFF00" Name="Slot 16" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="32,128" MouseOverColor="#FFFF00" Name="Slot 17" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="64,128" MouseOverColor="#FFFF00" Name="Slot 18" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
    <Icon BackgroundTint="#000000" IconStyle="/IconStyles.examine" Location="96,128" MouseOverColor="#FFFF00" Name="Slot 19" ScrollExtent="32,32" Size="32,32" TreatAsButton="true"/>
  </Page>
__________________
Reply With Quote