Skip to content

InvUI v2.0.0-alpha.7

Pre-release
Pre-release
Compare
Choose a tag to compare
@NichtStudioCode NichtStudioCode released this 22 Jan 12:45
· 35 commits to ver/2.x since this release

New features

invui

  • Guis can now be used as ingredients in gui builder / structure
  • Added AnimatedTitle
  • Placeholders for item name and lore can now be defined in ItemBuilder. These placeholders will be applied if name / lore are set using the methods that accept mini-message-formatted strings. Placeholders will also be filled into translation strings by default.
  • ItemStack arrays supplied to VirtualInventory constructors will now get copied

invui-kotlin

  • Added reactive functions setItemProvider, setContent, setTabs without mapping lambdas
  • Added reactive functions for setPage, setLine, setTab

Changes

  • Renamed all setContent / setTabs / setTitle method overloads that accept suppliers to setContentSupplier / setTabsSupplier / setTitleSupplier
  • Container open and initial items packets are now bundled to prevent empty inventories from shortly being visible on window open
  • Improved VirtualInventory serialization:
    • Empty slots now take up less space
    • Compression is now applied to all item stacks, instead of each item stack individually

Fixes

  • Fixed an issue where item updates in windows that were caused by player interactions would first send a packet for reverting to the previous state (cancelling the interaction), and then send the packet for the actual result of the interaction one tick later. This could be noticed as "flickering" when placing items in virtual inventories.
  • Fixed an issue where server-side component localization would drop some text preceding %%
  • Fixed an issue where windows would not be updated anymore after reopening them