This repository was archived by the owner on Jun 6, 2025. It is now read-only.
Tags: factoriolib/flib
Tags
Features: - `dictionary-lite` and `gui-lite` modules are now compatible with the core `event_handler` Bugfixes: - [bounding-box] Fixed `bounding_box.from_dimensions()` returning a 0x0 area at left_top (#49) - Fixed `selected` button styles having an extra vertical offset when clicked
Changes: - flib_selected_frame_action_button and flib_selected_tool_button styles now have a vertical offset - Improved slot style coloring to be more consistent - Updated table module to use more generics for callback return values Bugfixes: - Fixed missing clicked graphical sets on slot styles - Fixed missing return types in table module callback functions - Fixed that long mod names would cut off in the dictionary-lite progress window
Changes: - [queue] If the queue is empty, returns nil instead of throwing an error - [queue] Renamed functions to be much more clear, updated types to use generics - Updated types to work with recent FMTK releases Bugfixes: - [dictionary-lite] Fixed an occasional crash related to Lua memory management internals
Features:
- Added 'bounding-box' module
- A cleaned up version of the 'area' module that treats bounding boxes as immutable and does not use metatables
- Since the cleanup was a breaking change, a new module was created
- Added 'dictionary-lite' module
- Takes advantage of new Factorio API features to drastically simplify the process
- Increases translation speed in singleplayer by a factor of 10
- Added 'format' module with various string formatting functions
- Added 'gui-lite' module
- Removes redundant features, simplifies the building process, and enhances type-checking and autocomplete
- Added 'migration.handle_on_configuration_changed()'
- Added 'position' module with various position manipulation functions
Changes:
- Changed preferred require syntax to '/' instead of '.'
- Deprecated 'area' module in favor of the 'bounding-box' module
- Deprecated 'dictionary' module in favor of the 'dictionary-lite' module
- Deprecated 'event' module - type checking did not work and it didn't provide much over using 'script' directly
- Deprecated 'gui' module in favor of the 'gui-lite' module
- Deprecated 'misc' module in favor of the 'format' and 'position' modules
- Removed 'queue.load()' and queue metatables
- Updated type definitions to use generics where possible
Bugfixes:
- [dictionary] Fixed translations getting stuck on Factorio 1.1.73+