EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 12-18-2005, 03:57 AM
manoel manoel is offline
A Young Mystail Rat
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 5
Default Problem adding InvSlotx to mainhud

Hey folks

I'm trying to add a row with the 6 inventory bags to my main hud, but not having any luck. I can get the row and 6 icons to show up, but the contents of the slots doesn't show up. I compared to several other custom UI's, but can't figure out what I'm doing wrong. The DynamicData and Name fields are correct.

Anyone have a suggestion of what to check? Is there some trick to making dynamic data appear in a window it wasn't in before?

Thanks
Reply With Quote
  #2  
Unread 12-18-2005, 10:00 AM
Laffs's Avatar
Laffs Laffs is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Runnyeye
Posts: 1,404
Default

Make a new page under mainhud and call the file somthing like "eq2ui_mainhud_mywindow.xml"

Then for the actual page name its got to be called "Inventory" for it to work.

Hope that makes sense
__________________
Laffs UI Mods
I can only please one person per day. Today is not your day. Tomorrow doesn't look to good either !
(Wicann on Runnyeye)
Reply With Quote
  #3  
Unread 12-18-2005, 10:27 AM
Agathorn Agathorn is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Test
Posts: 405
Default

Also bear in mind that this is a semi hardcoded setup on EQ2's part, and while you can get them to display in MainHUD like Laffs has shown, they will not work for any drag and drop operations. If a user tries to drag and drop something in the mainhud inventory the game will CTD.
__________________
Test server native since day 1
Currently working on:
Serenity UI Suite
Take a look and give feedback!
Reply With Quote
  #4  
Unread 12-18-2005, 11:24 AM
manoel manoel is offline
A Young Mystail Rat
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 5
Default

Do I need to make a separate XML file for the other window to refer to? What I did was add a page to the eq2ui_mainhud_startbutton window so that I'm not creating a new window (I think this is what Agathorn is talking about)

I extended the window size to accomodate the new page then added the content below within the main page. The layout comes out right in UIBuilder and in-game, but the icons just look like clouded squares and don't do anything when I click them.

Code:
<Page AbsorbsInput="false" BackgroundColor="#00FF00" eq2usescomwndcontrols="true" Location="0,48" Name="AutoInventory" PackLocation="fixed,fixed" ScrollExtent="230,37" Size="230,37">
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="165,1" MouseOverColor="#FFFF00" Name="InvSlot5" ScrollExtent="30,30" Size="30,30" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="132,1" MouseOverColor="#FFFF00" Name="InvSlot4" ScrollExtent="30,30" Size="30,30" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="99,1" MouseOverColor="#FFFF00" Name="InvSlot3" ScrollExtent="30,30" Size="30,30" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="66,1" MouseOverColor="#FFFF00" Name="InvSlot2" ScrollExtent="30,30" Size="30,30" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="33,1" MouseOverColor="#FFFF00" Name="InvSlot1" ScrollExtent="30,30" Size="30,30" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="0,1" MouseOverColor="#FFFF00" Name="InvSlot0" ScrollExtent="30,30" Size="30,30" TreatAsButton="true"/>
</Page>
Reply With Quote
  #5  
Unread 12-18-2005, 11:40 AM
Laffs's Avatar
Laffs Laffs is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Runnyeye
Posts: 1,404
Default

They wont work like that sorry to say....

The only way to get it to work is the method I described above.
__________________
Laffs UI Mods
I can only please one person per day. Today is not your day. Tomorrow doesn't look to good either !
(Wicann on Runnyeye)
Reply With Quote
  #6  
Unread 12-18-2005, 12:57 PM
manoel manoel is offline
A Young Mystail Rat
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 5
Default

Ok, made a eq2ui_mainhud_test, used "Inventory" as the name, included it in the eq2ui_mainhud.xml, went in-game and "show_window mainhud.inventory", but the new window still just has the clouded icons.

Here's the contents of the eq2ui_mainhud_test.xml:

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="542,0" MaximumSize="286,50" MinimumSize="286,50" Name="Inventory" OnHide="visible=true" OnHoverIn="OnHide=&apos; &apos;" PackLocation="left,top" ScrollExtent="286,50" Size="286,50" UserMovable="true" UserResizable="true">
<Page AbsorbsInput="false" BackgroundColor="#00FF00" eq2usescomwndcontrols="true" Location="0,0" Name="TestPage" PackLocation="fixed,fixed" ScrollExtent="230,46" Size="230,46">
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="220,1" MouseOverColor="#FFFF00" Name="InvSlot5" ScrollExtent="42,42" Size="42,42" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="176,1" MouseOverColor="#FFFF00" Name="InvSlot4" ScrollExtent="42,42" Size="42,42" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="132,1" MouseOverColor="#FFFF00" Name="InvSlot3" ScrollExtent="42,42" Size="42,42" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="88,1" MouseOverColor="#FFFF00" Name="InvSlot2" ScrollExtent="42,42" Size="42,42" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="44,1" MouseOverColor="#FFFF00" Name="InvSlot1" ScrollExtent="42,42" Size="42,42" TreatAsButton="true"/>
<Icon BackgroundTint="#000000" DynamicData="/GameData.Items.Inventory" IconStyle="/IconStyles.inventory" Location="0,1" MouseOverColor="#FFFF00" Name="InvSlot0" ScrollExtent="42,42" Size="42,42" TreatAsButton="true"/>
</Page>
</Page>
Reply With Quote
  #7  
Unread 12-18-2005, 02:44 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

Quote:
Originally Posted by Laffs
They wont work like that sorry to say....

The only way to get it to work is the method I described above.
Thats not entirly true. If you have two top level nodes It'll work fine. You just can't have your inventory node neested inside another one.

example; eq2ui_mainhud_startbutton.xml
<?xml version="1.0"?>
<Page Name="Inventory" .. >
<Child Nodes/>
</Page>
<Page Name="StartButton" ..>
</Page>

Will work the same as if the Inventory page node was in its own file and you added with include in the eq2ui_mainhud.xml. I do this with my notes in eXtreme so the equi_mainhud.xml file isn't altered thus reducing the chances of the ui breaking with a LU. All EQ2 does is look for 1st generation descendant of the mainhud node and it treats them as windows in the mainhud module.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 12-18-2005 at 02:52 PM.
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 08:51 PM.


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