Project Zomboid

Project Zomboid

Starlit Library
Mostrando 1-10 de 12 aportaciones
< 1  2 >
Actualización: 25 SEP a las 6:52

v1.4.4
  • Reflection: Fixed field access not working on inner classes in 42.12. This caused errors in other parts of the library.
  • Logger: Fixed file loggers only flushing to file after a certain (large) number of characters had been written, causing the end of logs to be truncated or the impression that the log didn't work at all.
  • Logger: Added separate functions for each log level for those who prefer them.

This update is intended only as a hotfix for the 42.12 issue. v1.5.0 is the largest update the library has ever seen, and will likely release soon.
As always, the Build 41 version is unchanged.

Actualización: 24 MAR a las 19:35

42-1.4.3
  • Reimplemented container tooltips.
  • LuaEvent now removes callbacks from a file when that file reloads.
  • InventoryUI: added functions to move tooltip elements.
  • Reflection: getClassName can now return the name of unexposed classes.
  • Reflection: fixed getField not working on classes that have a toString override.
  • Reflection: Optimised getField.
  • TimedActionUtils: transferAndEquip now accepts nil to unequip any equipped item.

Actualización: 20 FEB a las 10:33

42-1.4.2
  • Reverted to older tooltip code for containers only, as they have special handling that the new code didn't account for.
    • This means the improvements in the previous update won't apply to them anymore. This will be fixed in a future patch.

Actualización: 19 FEB a las 12:41

42-1.4.1
  • Added InventoryUI.removeTooltipElement for removing existing tooltip elements.
  • Fixed the modded section of a tooltip using a separate key/value width from the vanilla section.
  • Fixed an occasional error when using the Transfer Fluid menu.
  • General performance improvements to the InventoryUI module.

Actualización: 30 ENE a las 12:47

1.4.0
  • (NEW) PZEvents: provides a list of callbacks added to a vanilla event, and some utility functions for identifying and removing event callbacks added by other files using the filename.
  • Reflection: Added API for inspecting locals from lower callframes.
  • InventoryUI: Added utility functions for adding tooltip elements.
  • Colour: now uses RGBA instead of RGB. Existing code should be unaffected.
  • Reflection: Renamed getUnexposedObjectField to getField. The old name redirects to the new function, but should be considered deprecated.
  • InventoryUI: fixed a regression in the B42 port that caused custom tooltip elements being slightly offset to the left.
  • Added @nodiscard annotations to many pure functions that were missing them.

Actualización: 27 ENE a las 10:02

42-1.3.1
  • BaseSquareCursor now by default caches the result of isValid every frame by calling an isValidInternal function and caching its result. Existing code that overrides isValid will not benefit from this: isValidInternal should be overridden instead.
  • BaseSquareCursor now has full gamepad support. It should work out of the box for most existing code however inheriting classes may want to override the button prompt text or have custom handling for button presses.
  • Events module renamed to LuaEvent. Existing requires will be redirected to the new module, until the next major version (42-2.0.0).

Actualización: 10 ENE a las 23:33

42-1.3.0
  • Added TaskManager module for scheduling delayed or repeating functions. Currently only works in ticks, real timing may come in the future.
  • Added Version module for checking the version of the library.
  • IsoObjectUtils now extends chunks by even amounts to greatly reduce the frequency of flickering from chunks being extended downwards.
  • BaseSquareCursor#select should double-fire less often (but it still happens :( )

Actualización: 29 DIC 2024 a las 18:27

42-1.2.0
  • Added more IsoObjectUtils
  • Fixed BaseSquareCursor.select() being called multiple times for one input
  • BaseSquareCursor.select() now has an additional boolean argument to decide whether it should be removed from the player's cursor.

Actualización: 25 DIC 2024 a las 17:34

42-1.1.0
  • Moved all timedActions modules to shared, as that is where timed actions live in Build 42. Requiring the old paths will still work but may be removed in a future update.
  • Added TimedActionUtils.transferSomeValid for transfering an amount of items.
  • Added IsoObjectUtils module. Provides some utilities for working with squares and tile objects.
  • Added BaseSquareCursor. Base class for square selection cursors to inherit from, without the hassle of working around ISBuildingObject.

Actualización: 17 DIC 2024 a las 16:29

42-1.0.0
  • Updated to Build 42.
  • Replaced StarlitLog with an internal Starlit.Logger.
  • The new item serialisation module is not available in Build 42 yet.
41-1.1.0
  • Added item serialisation module. Currently undocumented.
  • Replaced StarlitLog with an internal Starlit.Logger.