Your inventorycontainer frame is nesting only 6 commandbuttons. If you want 8 items, you need 2 more - 06 and 07.
The way frames work is that they inherit their initial positioning from the parent frame. So, if a frame inside a frame is created with an anchor "top right", then it will go to the top right area of the parent frame. Thus, you must use $parent$parent in the relative field.
EDIT: Also, since yer making each button 76x76, you need to make the container size 76*1 (since there's only 1 row) and width the size of (76*8) + (spacing*7)
Here are the problems you are running into with why it does it like that:
1. The commandcard is not centered.
You have set the width of the command card to be 1200, this will result in 600 px from the center to each side.
The first button of the command card will thus be 600px from the center, and the 5th will be 296px (600-(4*76)) from the center.
to solve this problem you can just resize the command card with to be the exact size you want it to be by changing the width value
2. the info panel is anchored in the middle of the screen.
the anchors are set so that the info panel should appear centered. Change the anchor as followed:
top anchor: relative $this
left anchor: relative $this
bottom anchor: relative $parent
right anchor: relative $parent
the problem is the one that is not 20 or -20. it causes an overlap with the commandpanel and catches the mouseclicks that are intended for the commandpanel.
ow and you can remove quite a bit of the code at the commandpanel. It might be that my changes there also affected the mouseover, I'll add those adjustments here in a moment.
Edit:
This is the settings I used for the test for the commanpanel:
I'm trying to layout, the command console, inventory and unit panel but really struggling.
Inventory on the bottom 8 slots, hero abilities above 6 slots. Below is how I would like it (drawn) and how it ended up in game.
I attached the map, any chance of some guidance or if someone could help? Thank you.
@Fullachain: Go
If you're using anchors and not succeeding, try using $parent$parent or even $parent$parent$parent.
Thanks, but still having real trouble. I added the code.
Find it so confusing. I'll keep trying.
@Fullachain: Go
Your inventorycontainer frame is nesting only 6 commandbuttons. If you want 8 items, you need 2 more - 06 and 07.
The way frames work is that they inherit their initial positioning from the parent frame. So, if a frame inside a frame is created with an anchor "top right", then it will go to the top right area of the parent frame. Thus, you must use $parent$parent in the relative field.
EDIT: Also, since yer making each button 76x76, you need to make the container size 76*1 (since there's only 1 row) and width the size of (76*8) + (spacing*7)
See first post.
Spend a few hours trying again, managed to get a bit closer.
Added a better picture to show what I'm trying to do.
Any help is appreciated as I'm a bit lost.
@Fullachain: Go
Here are the problems you are running into with why it does it like that:
1. The commandcard is not centered.
You have set the width of the command card to be 1200, this will result in 600 px from the center to each side.
The first button of the command card will thus be 600px from the center, and the 5th will be 296px (600-(4*76)) from the center.
to solve this problem you can just resize the command card with to be the exact size you want it to be by changing the width value
2. the info panel is anchored in the middle of the screen.
the anchors are set so that the info panel should appear centered. Change the anchor as followed:
top anchor: relative $this
left anchor: relative $this
bottom anchor: relative $parent
right anchor: relative $parent
Hope this helps.
Thanks alot, got most of it working now. Just 2 things
@Fullachain: Go
1. the tooltips should still appear at their old location, unless you changed that. It is another frame, don't know which one right away.
2. that is the battlenet friends button background that you see there.
@Fullachain: Go
You can hide the battle.net friend frame by offsetting it to a negative value (off the screen).
EDIT: You can also do this for the menu at the top if you need to get rid of it.
Thanks guys.
I still can't make command card tooltips appear, mouse over them you see nothing and CAN NOT click them.
Can only be used via hotkeys. I don't understand?
I attached the map, if you want to see.
@Fullachain: Go
the problem lies with the last frame definition (inside the inventory panel):
the problem is the one that is not 20 or -20. it causes an overlap with the commandpanel and catches the mouseclicks that are intended for the commandpanel.
I tried it with removing that frame altogether. Unfortunately the Command Panel is still unresponsive?
I can't think of anything that effects mouse over?
@Fullachain: Go
ow and you can remove quite a bit of the code at the commandpanel. It might be that my changes there also affected the mouseover, I'll add those adjustments here in a moment.
Edit:
This is the settings I used for the test for the commanpanel:
Cheers. Ok the tooltips are back!! 2 problems thou:
@Fullachain: Go