Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Tutorials & Info. > XML Tutorials & Info.
User Name
Password

Reply
 
Thread Tools Display Modes
Old 03-30-2004, 06:21 PM   #1
Laroden
A Snow Griffin
 
Join Date: Mar 2003
Server: The Nameless
Posts: 55
Default Container Modding

I am currently learning XML myself, and recently modded the default containers to have the primary and secondary slot ontop of the other 8 slots for quick weapon switching. This tutorial will show you how to do the same, along with explaining a little of what each line of code is doing.

Okay, so the first part is getting rid of the the centered area above the container slots that shows the bag icon. This is done by finding and removing the following code:
Quote:
<Button item = "Container_Icon">
<ScreenID>Container_Icon</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>26</X>
<Y>38</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<!--<TooltipReference/>-->
<Style_Checkbox>false</Style_Checkbox>
<!--<RadioGroup/>-->
<Text/>
<TextColor>
<R>255</R>
<G>255</G>
<B>255</B>
</TextColor>
<ButtonDrawTemplate>
<Normal>A_RecessedBox</Normal>
<NormalDecal>A_DragItem</NormalDecal>
</ButtonDrawTemplate>
<DecalOffset>
<X>0</X>
<Y>0</Y>
</DecalOffset>
<DecalSize>
<CX>40</CX>
<CY>40</CY>
</DecalSize>
</Button>


That removes the container icon, and creates a place for us to put the two inventory slots.

First, we're going to want to put in the primary slot, to do this place the following code in place of the code we just removed.

Quote:
<InvSlot item = "PrimaryContainer">
<ScreenID>PrimaryContainer</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>6</X>
<Y>38</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
<Background>A_InvPrimary</Background>
<EQType>13</EQType>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<!--<TooltipReference/>-->
</InvSlot>


The <InvSlot item = "PrimaryContainer"> creates the inventory slot we're going to use. Everything between that tag and and the </InvSlot> will define the properties of this particular slot. First of all, the <ScreenID> Can't clash with any other screenIDs in the UI, so you have to make sure to name it something unique, such as PrimaryContainer (indicating that its the primary slot inventory slot that's held in the containers). The next important part is the <Location> and whats between them. It uses simple x and y coordinates (x is horizontal, y is verticle) to place the box. In this case <X>6</X> <Y>38</Y> places the box directly above the first inventory slot, with a spacing of 4 points.

Next important tags are the <Size> <Background> and <EQType> tags. The <Size> is pretty self explainitory. It defines the size of the box for your items. In this case, we're keeping them the same size as the rest of the boxes in the container, 40,40 (CX,CY). The <Background> tag is also self explainitory, as it defines which background image is going to be used in the icon. In this case, we're using the default UIs graphic for the primary slot, though you can make your own if you wish. And lastly is the <EQType> which tells everquest which inventory slot it actually is. In this case <EQType>13</EQType> refers to the primary slot.

The rest of the information in the tag really doesn't pertain to what we're doing for this mod, so I won't bother explaining it.

So now, we need to add in the secondary slot, which is done with the following code: (I trust that you won't need this code explained.)
Quote:
<InvSlot item = "SecondaryContainer">
<ScreenID>SecondaryContainer</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>46</X>
<Y>38</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
<Background>A_InvSecondary</Background>
<EQType>14</EQType>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<!--<TooltipReference/>-->
</InvSlot>


Now, before we can finish, we need to scroll down to the bottom of the document where we find the <Pieces> tags. These tags define which pieces (or <InvSlot>s are going to be used on this particular screen.)

So, below the <Pieces>Container_Label</Pieces> but above the <Pieces>ContainerSlot1</Pieces>, we want to put in:

Quote:
<Pieces>PrimaryContainer</Pieces>
<Pieces>SecondaryContainer</Pieces>


And that's it, we're done. If you save this to your own UI folder (maybe uifiles/containermod) and load it up, when you open your containers you'll have the primary and secondary slots at your disposal.

I hope this tutorial was helpful to you.
__________________
Laroden is offline   Reply With Quote
Old 03-30-2004, 06:22 PM   #2
Laroden
A Snow Griffin
 
Join Date: Mar 2003
Server: The Nameless
Posts: 55
Default

Reserved for future tutorial links and update information.
Laroden is offline   Reply With Quote
Old 10-19-2005, 09:25 AM   #3
deanoah
A Hill Giant
 
Join Date: Jan 2005
Server: Prexus
Posts: 36
Default Bandolier

Ok, looks kewl, just had a "duh" moment... I don't need this anymore, great exercise in learning, but... the bandolier replaces the need for this.. imo
deanoah is offline   Reply With Quote
Reply



Thread Tools
Display Modes

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


All times are GMT -5. The time now is 11:38 PM.


vBulletin Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© MMOUI