![]() |
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 |
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 :) |
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.
|
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"> |
They wont work like that sorry to say....
The only way to get it to work is the method I described above. |
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"?> |
The icons also have to be on there respective pages as well for eg
Your weapons icons must be under the page called "Equipment" etc etc just how they are in the true inv |
Quote:
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. |
I usualy throw in "to my knowlage" lol didnt that time heh :p
Nice bit of info Landiin m8 :) So it will show the items still that way and the startbutton still works as per usual? with that method you described? |
Quote:
|
I'm not sure what I'm missing or doing wrong, still (maybe I just haven't had enough coffee yet :D )
How would my icons be under a different page? Right now I just have the "Inventory" page and the "TestPage" object within that. All the custom UI's I have seen follow basically what I'm using now. The Default UI has "AutoInventory" within "GeneralPage" within "Inventory". Sorry if this is already explained somewhere, but I haven't been able to find the info yet (obviously) and the UIBuilder docs I know are still in the works. |
Code:
<Page AbsorbsInput="false" eq2usescomwndcontrols="true" Location="7,47" Name="EquipmentPage" PackLocation="fixed,fixed" ScrollExtent="229,33" Size="229,33"> |
Also, needs to be Inventory, not inventory. Case sensitive. Both in the XML and in /show_window
|
Yep, that was basically my problem. I completely forgot about the case sensitivity. "/show_window mainhud.inventory" brought up the right window, but no content.
I'm wondering if my problem adding it to the MainHUD.StartButton is the same basic issue. For now I've got it as a separate window which is more than enough. I'll probably play around with the StartButton window a bit more, though, to see if I can figure out why it's broken there. Thanks for all the help and suggestions :) |
| All times are GMT -5. The time now is 05:41 PM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI