opekope2/OptiGUI

Villager GUI path selector - widgets and sliced assets since 1.20.2

Opened this issue · 2 comments

Is there an existing issue for this?

  • I have searched the existing issues

Expected Behavior

My resourcepack contains variants of widgets specific to villagers professions

This is how it looked with Optifine before 1.20.2 sliced atltas:
Capture d'écran 2024-04-14 152322

Actual Behavior

Even if I can select the background, I'd like to be able to customise the buttons or other assets now in the sprites folder.
Capture d'écran 2024-04-14 151956
In fact, the current version of Optifine no longer offers pre-1.20.2 rendering and has the same issue...

Steps To Reproduce

.ini that I attempted to do (is there any things I do wrong?):

[villager #1]
replacement=trade.png

[villager #2]
interaction.texture=minecraft:textures/gui/sprites/widget/button.png
replacement=trade_button.png

[villager #3]
interaction.texture=minecraft:textures/gui/sprites/widget/button_highlighted.png
replacement=trade_button_highlighted.png

[villager #4]
interaction.texture=minecraft:textures/gui/sprites/container/villager/out_of_stock.png
replacement=trade_out_of_stock.png

Loader and its version

Fabric Loader 0.15.9

OptiGUI version

2.3.0-alpha.2

Behavior difference

  • Behavior is different from OptiGUI documentation
  • Behavior is different from OptiFine
  • Behavior is different from expected (or straight up doesn't work)

Anything else

No response

Thanks for opening this issue! I didn't notice this.
At this point, retexturing sprites is not supported, because sprites are rendered as sprites using their stitched atlas texture, instead of individual textures. I guess Animatica doesn't support this either.
I'll find a way to implement this in the future.
Was this change introduced in 1.20 or 1.20.2?

Thks for your quick reply!
Apparently sliced GUI was introduced by 1.20.1 snapshot so it is done in 1.20.2 (I have edited the title)