Skip to content

Releases: Mqzn/Lotus

Lotus v1.4

13 Dec 20:10
Compare
Choose a tag to compare

Changes

  • Added Capacity#flexible for flexible size of a gui

Lotus v1.3

19 Oct 22:19
Compare
Choose a tag to compare

What's new in Lotus v1.3 ?

  • BUG-FIX: click actions being triggered twice per single click.
  • Removed the option for modifying the event priority of a click event,
    the priority for all Lotus's event-listeners is LOW
  • Internal: Added listener for InventoryDragEvent
  • Removed method Menu#onClick
  • Added methods:
    • Menu#onDrag
    • Menu#onPreClick
    • Menu#onPostClick
    • MenuView#refresh

Lotus v1.2

17 Oct 00:57
Compare
Choose a tag to compare

Changes:

  • Bug fix >> start parameter isn't properly working with the FillRange API
  • Added methods Page#onSwitchingToNextPage and Page#onSwitchingToPreviousPage
    for hooking up whenever a page is switched

Lotus v1.1.9

16 Oct 19:10
Compare
Choose a tag to compare

Changes:

  • Bug-fix: fixed Button's data registry not working properly.

Lotus v1.1.8d

16 Oct 12:39
Compare
Choose a tag to compare

What's new in v1.1.8d?

  • Introduced the new FillRange API, to allow a range of filling items along with forbidden slots,
    (currently it's usable for auto-pagination only).

  • Added method Pagination#getMaximumPages

  • Added more javadocs and made some classes internal

  • changed packages for listeners to become more internal.

v1.1.7

19 Sep 02:16
Compare
Choose a tag to compare

What's new in Lotus v1.1.7?

  • Added DataRegistry per button to make it easier for users to cache data with their buttons, change and fetch them when needed
    through Button#getNamedData and Button#setNamedData
  • Fixed bugs in SlotIterator
  • Changed SlotIterator implementations:
    • SlotIterator#next -> SlotIterator#current
    • SlotIterator#hasNext -> SlotIterator#canContinue
    • Added method SlotIterator#shift
  • Added debugger for lotus and helpful methods for using the debugger such as:
    • Lotus#enableDebugger
    • Lotus#disableDebugger
    • Lotus#isDebuggerEnabled
  • Fixed the bug: when using MenuView#updateButton it resets the button's actions.

v1.1.6

10 Sep 16:46
Compare
Choose a tag to compare

What's new with v1.1.6?

  • Added TransformingButton to allow animations for itemstack transformations/updates through an update task that runs every 15 ticks by default and it's customizable through the newly added method Lotus#setUpdateTicks(long ticks)
  • Added Adventure compatibility with Paper.
  • Added Menu#onClick for global click actions to be triggered AFTER the click action of the buttons.
  • Added OpenMenuAction by calling new OpenMenuAction(menuName) where the menu to open is registered by a unique name via Lotus#registerMenu and retrieved by Lotus#getRegisteredMenu
  • Fixed MenuView#updateButton not working.
  • Changed how Lotus api class is created from new Lotus(plugin) to Lotus.load(plugin)
  • Added new method Lotus#getOpenViews()
  • Added new method Content#getConditionalButton(ButtonCondition)
  • Added new method Button#copy

v1.1.4

20 Aug 20:01
def3a6b
Compare
Choose a tag to compare

What's new in v1.1.4?

  • Changed the button parameter from direct lambda of a button click action to 'ButtonClickAction#plain' instead
  • Added more premade subtypes of ButtonClickAction
  • Added flexible menu serialization system which consists of mainly 2 parts :
    1. SerializedMenuIO which writes and reads DataRegistry object to and from a file
    2. MenuSerializer which converts the DataRegistry object into a Menu object and vice versa
  • Added simple ButtonActionRegistry which holds all the premade ButtonClickAction objects by their unique tag

Credits: thanks to @Cobeine which contributed greatly to this update !

v1.1.3

12 Aug 00:07
Compare
Choose a tag to compare

What's new in v1.1.3

  • Fixed plain-pagination error in console
  • Fixed bugs regarding Button transformations using Button#transformerItem
  • Added new example for menus ExampleMenu

v1.1.2

11 Aug 17:37
Compare
Choose a tag to compare

What's new in v1.1.2 ?

  • Fixed pagination-already-closed error-message when clicking on page items
  • Fixed incorrect iteration of SlotIterator
  • Added Panes system along with a pre-made Gui Pane TextLayoutPane. now you can modify the menu/page content
    by calling the method Content.Builder#applyPane
  • Slight Improvement in the performance of pagination
  • Added simple checkers in class PageView to notify the users when they exceed the page's capacity during
    the addition of items in pages.