Home Forum Downloads My Favorites Register FAQ

Go Back   EQInterface Forums > General Discussion > Compares & Patch fixes > Patch fix archive
User Name
Password

 
 
Thread Tools Display Modes
Old 02-09-2003, 01:00 AM   #1
KaisonIcebear
A Ghoul
 
Join Date: Aug 2002
Posts: 12
Interface Author - Click to view interfaces
Default how to add a charm slot to your inventory.

feel like fixing your own inventory window, to include the charm slot?

here is an idea where to start

what ya need.
and text editor textpad, notepad, wordpad, or any thing like it.


open your text editor now open with the text editor EQUI_Inventory.xml from your mod folder.


right below where ya see this
<?xml version = "1.0"?>
<XML ID = "EQInterfaceDefinitionLanguage">
<Schema xmlns = "EverQuestData" xmlns:dt = "EverQuestDataTypes"/>

add the below code


<!-- CHARM -->
<InvSlot item="InvSlot0">
<ScreenID>InvSlot0</ScreenID>
<!--<Font>3</Font>-->
<RelativePosition>true</RelativePosition>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>40</CX>
<CY>40</CY>
</Size>
<Background>A_InvEar</Background>
<EQType>0</EQType>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<!--<TooltipReference/>-->
</InvSlot>

the above code tells the game how to build the charm slot and how big where ya want it the such the above code will use the earring icon as a back ground.



right above where ya see
</Screen>

add the below code

<Pieces>InvSlot0</Pieces>

the above code tells the game that you want to build a charm slot in this window and where to look for instructions on how to do it.

now your not done here now comes the time consuming part with out using some of the other toys out there
ya will have to work with the coradits to fit it into your ui. the quickest way to go about this is to add the same coradnits as something else in your ui. then move it slowly so it is right next to it and where you want it. use the game in window mode to check your work change the code save it, switch back to the game reload the ui to see what ya did repeate till you have your desired look



you move the slot around the screen by changeing the numbers in the location tag

<Location>
<X>0</X>
<Y>0</Y>
</Location>

the <X>0</X> number moves it left and right on your screen higher the number further to the right it will be, lower the number closer to the left it will be. 0 puts it on the left edge of the window

the <Y>0</Y> number moves it up and down higher the number the lower it will be on the screen, lower the number the closer it will be to the top. 0 puts it on the top edge of the window




you change the size of the slot by changeing the numbers in the size tag

<Size>
<CX>40</CX>
<CY>40</CY>
</Size>

the <CX>40</CX> tells the game how wide you want the icon higher the number the wider it will be lower the more thin it will be.

the <CY>40</CY> tells the game how tall or short you want the icon higher the number the taller it will be, lower the shorter it will be.

for the icon to be square both numbers shoulb be the same.


this line of code <!-- CHARM --> means nothing it is ignored by the game only use is to leave your self notes or to add a line of credit or the such.


this tag <EQType>0</EQType> tells the game that it is a charm slot you are makeing will list the other inventory slot types for convenince warning the numbers below are not the same though out the diffrent types of types for instance 2 as an inventory slot is the head slot writen as a gauge it is the players mana

eq types
0 Charm
1 Left ear
2 Head
3 Face
4 Right ear
5 Neck
6 Sholders
7 Arms
8 Back
9 Left wrist
10 Right wrist
11 Range
12 Hands
13 Primary
14 Secondary
15 Left finger
16 Right finger
17 Chest
18 Leggs
19 Feet
20 Waist
21 Ammo


first time doing this or un sure or just want to play it smart. copy you EQUI_Inventory.xml before makeing any changes so you can quick and simple go back to a clean set of code if you mess up to much. dont be afrade to mess around with the code you can not hurt your game. worse case senireo all ya have to do is overwrite the file ya changed with the one ya saved. go for it best way to learn is to mess up. i dont know all there is to know bout xml but know a lot ask if ya have questions if i have an answer ya will get it. good luck and happy codeing.

direct your questions to the below post thanks

http://www.eqgui.com/showthread.php?s=&threadid=6715

Last edited by KaisonIcebear : 02-16-2003 at 05:24 PM.
KaisonIcebear is offline  
 




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 06:32 AM.


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