FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

16M Downloads

[1.20.1] Element Width placeholder causes parsing errors in custom GUIs

KonSola5 opened this issue · 1 comments

commented

Using an Element Width placeholder in a custom GUI causes the value to fail to parse and causes to spam the game log with parsing errors.
When used in vanilla GUIs, Element Width works fine.

To Reproduce

Steps to reproduce the behavior (e.g.):

  1. Create a custom GUI and a custom layout for the aforementioned Custom GUI.
  2. Add a new Button.
  3. Advanced Positioning -> X position -> insert:
    {"placeholder":"calc","values":{"expression":"{"placeholder":"guiwidth"} / 2 - {"placeholder":"elementwidth","values":{"id":"*your_button_ID_here*"}} / 2","decimal":"false"}}
    (this should center the button)
  4. Notice that in the editor everything is fine, but in the actual menu the button is aligned to the left and the log is flooded with parsing errors.

Expected behavior

The button should be centered in the actual GUI.

Game Log

https://mclo.gs/iDfsurF

Screenshots

How the GUI should look like (editor):

obraz

How the GUI actually looks:

obraz

Basic Informations (please complete the following information):

  • OS: Windows 10
  • FancyMenu Version 2.14.9-3
  • Fabric Version 0.14.23
  • Minecraft Version 1.20.1
  • Mod list:
    [✔] ae2wtlib-15.1.0-fabric
    [✔] alloy-forgery-2.0.22+1.20
    [✔] appliedenergistics2-fabric-15.0.13
    [✔] architectury-9.1.12-fabric
    [✔] blockus-2.7.6+1.20.1
    [✔] BuildingWands-mc1.20.1-2.6.8-release-fabric
    [✔] carpetskyadditions-1.20.1-4.4.1
    [✔] cloth-config-11.1.106-fabric
    [✔] continuity-3.0.0-beta.4+1.20.1
    [✔] create-fabric-0.5.1-d-build.8+mc1.20.1
    [✔] entityculling-fabric-1.6.2-mc1.20.1
    [✔] ExtendedDrawers-2.0.6+mc.1.20.1
    [✔] fabric-api-0.89.3+1.20.1
    [✔] fabrication-3.3.12+1.20
    [✔] fabric-carpet-1.20-1.4.112+v230608
    [✔] fabric-language-kotlin-1.10.10+kotlin.1.9.10
    [✔] fancymenu_fabric_2.14.9-3_MC_1.20.1
    [✔] Hephaestus-1.20.1-3.6.3.232
    [✔] indium-1.0.27+mc1.20.1
    [✔] indrev-1.16.5-BETA
    [✔] Jade-1.20-fabric-11.6.1
    [✔] JadeAddons-1.20.1-fabric-5.2.1
    [✔] konkrete_fabric_1.6.1_MC_1.20
    [✔] kubejs-fabric-2001.6.3-build.52
    [✔] lithium-fabric-mc1.20.1-0.11.2
    [✔] megacells-fabric-2.1.5-1.20.1
    [✔] merequester-fabric-1.20.1-1.1.4
    [✔] Modern-Dynamics-0.7.0-beta
    [✔] Modern-Industrialization-1.7.4
    [✔] modmenu-7.2.2
    [✔] mythicmetals-0.18.2+1.20
    [✔] NoChatReports-FABRIC-1.20.1-v2.2.2
    [✔] OpenSimpleFrames-1.1.0
    [✔] owo-lib-0.11.2+1.20
    [✔] RebornCore-5.8.7
    [✔] reeses_sodium_options-1.6.5+mc1.20.1-build.95
    [✔] rhino-fabric-2001.2.2-build.6
    [✔] RoughlyEnoughItems-12.0.665
    [✔] sodium-extra-0.5.1+mc1.20.1-build.112
    [✔] sodium-fabric-mc1.20.1-0.5.3
    [✔] TechReborn-5.8.7
    [✔] wraith-fabricaeexnihilo-1.0.0-beta.4+mc1.20.1
commented

Added/Fixed in FancyMenu v3.0.0!