Hello,
I've encountered serious problem. I wan't to move my item buttons to top of screen, and that's nearly works. Problem is that inventory button i clickable only from half of its height (top part of button is unclickable, bottom is clickable).
Second issue is that I can't move opened containers down (they're offscreen, at top).
My code is Aiur Chef, but without border, and with additional anchor to top (and anchors for containers, but that doesn't work). I wan't use only 2 last containers (4 and 5).
Here's my code:
Hello, I've encountered serious problem. I wan't to move my item buttons to top of screen, and that's nearly works. Problem is that inventory button i clickable only from half of its height (top part of button is unclickable, bottom is clickable).
try adding the following bit to the InventoryButtons Layout:
<RenderPriorityval="510"/>
increase the value in case the top half still isn't clickable.
There is probably another panel at that position which intercepts the mouse clicks, so the button won't receive it. By raising the inventory button panel above that one it should be able to receive the clicks.
Concerning your other question, I haven't looked into it. But have you tried changing the anchor of the InventoryPanel itself so that it is at a lower position?
(ps. I haven't tested any of these answers, but as far as I know they should work.)
Unfortunately, it appears that you cannot move container positioning as its appears to be hard-coded/locked into place to the top/right of the inventory bar. There are faux methods to achieving what you want, but all solutions so far are less-than-ideal.
The render priority wont help. In your scenario, the inventory buttons are being moved outside of the inventory "panel". There are solutions to this though. 1 is to increase the height of the inventory panel containing the buttons. You might also be able to set the <AcceptsMouse val="true"/> to false for the container, and then applying the same command as true to each individual button.
If you want to try to reposition the InventoryButtons container, it would be best to modify the default anchors rather than the ones that don't have values by default.
Some more appropriate code for what you want would be:
You can also reset the bottom anchor that way you don't need to make a difficult choice for determining which anchors to use and what values they need. You can just reset the other anchors and use the ones that you know of.
<Frametype="InventoryContainer"name="InventoryButtons"><Anchorside="Top"pos="Min"relative="$parent/$parent/$parent"offset="45"/><Anchorside="Left"relative="$parent"pos="Mid"offset="0"/><Anchorside="Right"relative="$parent"pos="Mid"offset="0"/><!-- reset the bottom anchor so that it is not used --><Anchorside="Bottom"relative="$this"pos="Mid"offset="0"/></Frame>
Also make sure that the buttons are still within the area of it's parent. it might be that the button is outside the area thus making it unclickable.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, I've encountered serious problem. I wan't to move my item buttons to top of screen, and that's nearly works. Problem is that inventory button i clickable only from half of its height (top part of button is unclickable, bottom is clickable). Second issue is that I can't move opened containers down (they're offscreen, at top).
My code is Aiur Chef, but without border, and with additional anchor to top (and anchors for containers, but that doesn't work). I wan't use only 2 last containers (4 and 5). Here's my code:
try adding the following bit to the InventoryButtons Layout:
increase the value in case the top half still isn't clickable.
There is probably another panel at that position which intercepts the mouse clicks, so the button won't receive it. By raising the inventory button panel above that one it should be able to receive the clicks.
Concerning your other question, I haven't looked into it. But have you tried changing the anchor of the InventoryPanel itself so that it is at a lower position?
(ps. I haven't tested any of these answers, but as far as I know they should work.)
Unfortunately, it appears that you cannot move container positioning as its appears to be hard-coded/locked into place to the top/right of the inventory bar. There are faux methods to achieving what you want, but all solutions so far are less-than-ideal.
The render priority wont help. In your scenario, the inventory buttons are being moved outside of the inventory "panel". There are solutions to this though. 1 is to increase the height of the inventory panel containing the buttons. You might also be able to set the <AcceptsMouse val="true"/> to false for the container, and then applying the same command as true to each individual button.
@ShadowDancer93: Go
The problem of the unclickable inventory buttons is probably resulting from your container's anchors.
You said:
The default anchors for this container are:
If you want to try to reposition the InventoryButtons container, it would be best to modify the default anchors rather than the ones that don't have values by default.
Some more appropriate code for what you want would be:
Using this code, there is no need to modify the Top or the Left anchors, as the Buttons are all anchored to Bottom and Right anyways.
You can also reset the bottom anchor that way you don't need to make a difficult choice for determining which anchors to use and what values they need. You can just reset the other anchors and use the ones that you know of.
Also make sure that the buttons are still within the area of it's parent. it might be that the button is outside the area thus making it unclickable.