Shadows-of-Fire / PackMenu

Tool for editing the main menu in modpacks.
MIT License
16 stars 10 forks source link

Anchor Point's don't work #8

Closed kreezxil closed 4 years ago

kreezxil commented 4 years ago

The new anchor points, when I add them, the button no longer renders on the screen, if I take the anchor tag out, and go back to configuring from the center they reappear.

In the following I would expect the accessibility button to be in the upper left which is "TOP_LEFT", w/e that coord maybe and that my "x" and "y" parameters are treated as offsets to that coordinate.

{
    "x": 40,
    "y": 40,
    "width": 20,
    "height": 20,
    "u": 0,
    "v": 0,
    "hoverU": 0,
    "hoverV": 20,
    "texWidth": 32,
    "texHeight": 64,
    "texture": "textures/gui/accessibility.png",
    "action": "OPEN_GUI",
    "data": "ACCESSIBILITY",
    "anchor": "TOP_LEFT"
}
kreezxil commented 4 years ago

nevermind, i'm not paying attention to what I'm doing on this end.

JAcamp1 commented 3 years ago

What is the issue with this and how did you resolve it?