i did quite some work with the UI Editor last days and got most things working.
But there is one thing i spent hours of trial and error without any result..
I want to move the Inventory Container Frames 00 and 01 to two different Positions. I managed to push them up and down as they seem to be locked to the inventory button Container frame but i want to position them free on the screen.
Probably because you are setting it relative to inventory button container frame which has a specific dialog size and you are trying to move the frame out from the button container frame dialog.
You can try the following, for example, you want to move the frame to top of the screen:-
1. Create a dialog with a size that is larger than the frame, say (1000,300) at (0.50) relative to top of screen.
2. Show last created dialog for (Player Group(Player))
3. Hide the background image of last created dialog (optional)
4. Create a panel for last created dialog using the template "UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanel00"
5. Move last created dialog item to -> say (0, 20) relative to top of dialog for (Player Group(Player))
Try to experiment something like the above and see whether you are getting any more error issues.
Thank you for the hint. Im going to try it this evening. I think the error i got said that the frame couldnt be loaded out of the path i entered. But from what i can say the entered path was correct. At least i can refer the frame with this path in the ui Editor. Maybe the format of the path has to be different when doing it via triggers?
Maybe i can upload my Trigger in a new map if i still dont get it to work today so you can have a look what im doing wrong ..
Hookup Panel "UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanel00" to the Game ui
Nothing wrong with the format but because the Game UI is standard and with it the dialog frame sizes. When you try to position say a frame out from the standard ui, that is out of the bounds of the frame dialog, and because the dialog size is fixed, you will get the said error:-
I think the error i got said that the frame couldnt be loaded out of the path i entered.
You can try the example that I gave you in the above, by creating a new dialog and with it the frame panel and see if it works. If the issue still persists, perhaps you can attach a picture of your triggers to see what went wrong.
You can mess around with the frame anchors where in the example below, I set the anchor side to Top offset by -40 and Right in the Mid (Middle) position.
First, create a new layout in the UI Editor, name it and add the below (Example only):
<!-- This should be last so it always renders on top of all other inventory frames. --> <Frame type="Image" name="Cursor"> <Anchor side="Top" relative="$parent" pos="Min" offset="0"/> <Anchor side="Left" relative="$parent" pos="Min" offset="0"/> <Width val="32"/> <Height val="32"/> <RenderPriority val="1024"/>
Edited, can't create an Inventory Panel because they are Blizzard Only but however, you can move them around. Just go to the Game UI Data and in the Custom Layout Files section, add the layout file with the description as shown in the above. Hope this helps.
If i get you right, you mean i need to add it to the Game UI Data File in DATA EDITOR in the Custom Layout File Section?
I created a new Layout in UI Editor, copied your code in it... saved.. went to the Data Editor in the GAME UI Layout File and added it in Custom Field. But it doesnt has any effect for me. :(
Are you able to attach a demo map where you did it??
I assume that you attached the layout file as per the image? Otherwise, it will not work.
Aside from that, do you receive any error message?
In regard to a demo map, I haven't tried it yet. But since I only received a message that it was attempting to add a desc with the same name of an already existing child, I assume that it works. Anyhow, I will try to attach a demo map probably by tomorrow to set up demo units, inventory units and triggers, etc.
The following an attached demo map. You need triggers to create inventory dialogs, pick-up items, use items etc.
FYI, I just picked someone else's demo map because I do not have the time to go through all the details. Do give credits to the owner of the map if used. Thanks.
Hey mates,
i did quite some work with the UI Editor last days and got most things working.
But there is one thing i spent hours of trial and error without any result..
I want to move the Inventory Container Frames 00 and 01 to two different Positions. I managed to push them up and down as they seem to be locked to the inventory button Container frame but i want to position them free on the screen.
Please help me :-)
That are the desired frames:
You can use the function Move Dialog Item.
In reply to WilliamJay:
but it dont works. :(
Probably because you are setting it relative to inventory button container frame which has a specific dialog size and you are trying to move the frame out from the button container frame dialog.
You can try the following, for example, you want to move the frame to top of the screen:-
1. Create a dialog with a size that is larger than the frame, say (1000,300) at (0.50) relative to top of screen.
2. Show last created dialog for (Player Group(Player))
3. Hide the background image of last created dialog (optional)
4. Create a panel for last created dialog using the template "UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanel00"
5. Move last created dialog item to -> say (0, 20) relative to top of dialog for (Player Group(Player))
Try to experiment something like the above and see whether you are getting any more error issues.
Thank you for the hint. Im going to try it this evening. I think the error i got said that the frame couldnt be loaded out of the path i entered. But from what i can say the entered path was correct. At least i can refer the frame with this path in the ui Editor. Maybe the format of the path has to be different when doing it via triggers?
Maybe i can upload my Trigger in a new map if i still dont get it to work today so you can have a look what im doing wrong ..
Thx again
Hookup Panel "UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanel00" to the Game ui
Nothing wrong with the format but because the Game UI is standard and with it the dialog frame sizes. When you try to position say a frame out from the standard ui, that is out of the bounds of the frame dialog, and because the dialog size is fixed, you will get the said error:-
I think the error i got said that the frame couldnt be loaded out of the path i entered.
You can try the example that I gave you in the above, by creating a new dialog and with it the frame panel and see if it works. If the issue still persists, perhaps you can attach a picture of your triggers to see what went wrong.
In reply to WilliamJay:
In reply to WilliamJay:
The error says: Couldnt create Frame from [Path]
You can mess around with the frame anchors where in the example below, I set the anchor side to Top offset by -40 and Right in the Mid (Middle) position.
First, create a new layout in the UI Editor, name it and add the below (Example only):
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Desc>
<Frame type="Frame" name="GameUI/UIContainer/ConsoleUIContainer" file="GameUI">
<Frame type="InventoryPanel" name="InventoryPanel">
<Anchor side="Top" relative="$parent" pos="Max" offset="-40"/>
<Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
</Frame>
<Frame type="InventoryContainer" name="ContainerPanel00">
<Anchor side="Top" relative="$parent" pos="Max" offset="-40"/>
<Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
</Frame>
<Frame type="InventoryContainer" name="ContainerPanel01">
<Anchor side="Top" relative="$parent" pos="Max" offset="-40"/>
<Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
</Frame>
<Frame type="InventoryContainer" name="InventoryButtons">
<AcceptsMouse val="true"/>
<Anchor side="Top" relative="$parent" pos="Max" offset="-60"/>
<Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
<Frame type="CommandButton" name="Button05">
<Anchor side="Top" relative="$parent" pos="Max" offset="0"/>
<Anchor side="Right" relative="$parent" pos="Mid" offset="#InventoryButtonGap"/>
</Frame>
<Frame type="CommandButton" name="Button04">
<Anchor side="Top" relative="$parent/Button05" pos="Max" offset="0"/>
<Anchor side="Right" relative="$parent/Button05" pos="Min" offset="#InventoryButtonGap"/>
</Frame>
<Frame type="CommandButton" name="Button03">
<Anchor side="Top" relative="$parent/Button04" pos="Max" offset="0"/>
<Anchor side="Right" relative="$parent/Button04" pos="Min" offset="#InventoryButtonGap"/>
</Frame>
<Frame type="CommandButton" name="Button02">
<Anchor side="Top" relative="$parent/Button03" pos="Max" offset="0"/>
<Anchor side="Right" relative="$parent/Button03" pos="Min" offset="#InventoryButtonGap"/>
</Frame>
<Frame type="CommandButton" name="Button01">
<Anchor side="Top" relative="$parent/Button02" pos="Max" offset="0"/>
<Anchor side="Right" relative="$parent/Button02" pos="Min" offset="#InventoryButtonGap"/>
</Frame>
<Frame type="CommandButton" name="Button00">
<Anchor side="Top" relative="$parent/Button01" pos="Max" offset="0"/>
<Anchor side="Right" relative="$parent/Button01" pos="Min" offset="#InventoryButtonGap"/>
</Frame>
<Frame type="Frame" name="ContainerSizeFrame">
<Anchor side="Top" relative="$parent/Button00" pos="Min" offset="0"/>
<Anchor side="Right" relative="$parent/Button05" pos="Max" offset="0"/>
</Frame>
</Frame>
<!-- This should be last so it always renders on top of all other inventory frames. -->
<Frame type="Image" name="Cursor">
<Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
<Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
<Width val="32"/>
<Height val="32"/>
<RenderPriority val="1024"/>
<LayerCount val="2"/>
<TextureType val="Normal" layer="0"/>
<Texture val="@@UI/ButtonBorderNormal" layer="0"/>
<TextureType val="Normal" layer="1"/>
</Frame>
</Frame>
</Desc>
Then, go to the Game UI Data in the Editor and in the Custom Layout Files section, add the new layout file.
Edited, can't create an Inventory Panel because they are Blizzard Only but however, you can move them around. Just go to the Game UI Data and in the Custom Layout Files section, add the layout file with the description as shown in the above. Hope this helps.
In reply to WilliamJay:
I assume that you attached the layout file as per the image? Otherwise, it will not work.
Aside from that, do you receive any error message?
In regard to a demo map, I haven't tried it yet. But since I only received a message that it was attempting to add a desc with the same name of an already existing child, I assume that it works. Anyhow, I will try to attach a demo map probably by tomorrow to set up demo units, inventory units and triggers, etc.
The following an attached demo map. You need triggers to create inventory dialogs, pick-up items, use items etc.
FYI, I just picked someone else's demo map because I do not have the time to go through all the details. Do give credits to the owner of the map if used. Thanks.
In reply to WilliamJay:
I thank you very much for all your work and help so far. Im going to check it this evening after work.