Project Zomboid

Project Zomboid

Starlit Library
Showing 1-10 of 11 entries
< 1  2 >
Update: 24 Mar @ 7:35pm

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.

Update: 20 Feb @ 10:33am

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.

Update: 19 Feb @ 12:41pm

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.

Update: 30 Jan @ 12:47pm

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.

Update: 27 Jan @ 10:02am

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).

Update: 10 Jan @ 11:33pm

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 :( )

Update: 29 Dec, 2024 @ 6:27pm

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.

Update: 25 Dec, 2024 @ 5:34pm

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.

Update: 17 Dec, 2024 @ 4:29pm

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.

Update: 9 Dec, 2024 @ 10:42am

1.0.1
  • Partially fixed an incompatibility with mods that accidentally overwrite the global Trait. If the workaround cannot succeed, the module that depends on it will be disabled, instead of bugging out your sandbox options. Information about this will be logged.
  • Fixed log level "error" not actually producing an error.