Releases: Mqzn/Lotus
Releases · Mqzn/Lotus
Lotus v1.4
Lotus v1.3
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 isLOW
- Internal: Added listener for
InventoryDragEvent
- Removed method
Menu#onClick
- Added methods:
Menu#onDrag
Menu#onPreClick
Menu#onPostClick
MenuView#refresh
Lotus v1.2
Changes:
- Bug fix >> start parameter isn't properly working with the
FillRange
API - Added methods
Page#onSwitchingToNextPage
andPage#onSwitchingToPreviousPage
for hooking up whenever a page is switched
Lotus v1.1.9
Changes:
- Bug-fix: fixed
Button
's data registry not working properly.
Lotus v1.1.8d
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
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
throughButton#getNamedData
andButton#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
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 methodLotus#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 callingnew OpenMenuAction(menuName)
where the menu to open is registered by a unique name viaLotus#registerMenu
and retrieved byLotus#getRegisteredMenu
- Fixed
MenuView#updateButton
not working. - Changed how
Lotus
api class is created fromnew Lotus(plugin)
toLotus.load(plugin)
- Added new method
Lotus#getOpenViews()
- Added new method
Content#getConditionalButton(ButtonCondition)
- Added new method
Button#copy
v1.1.4
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 :
SerializedMenuIO
which writes and readsDataRegistry
object to and from a fileMenuSerializer
which converts theDataRegistry
object into aMenu
object and vice versa
- Added simple
ButtonActionRegistry
which holds all the premadeButtonClickAction
objects by their unique tag
Credits: thanks to @Cobeine which contributed greatly to this update !
v1.1.3
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
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 methodContent.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.