LeaderLib

LeaderLib is a library mod used to provide common functionality to other mods.

Features:
• A centralized "Mod Menu", providing a way to access dialog menus from other mods. This menu is automatically sorted alphabetically.
• An extensive treasure and trader system, allowing dynamic spawning with complex requirements and customization.
• A system for mods to register to, that enables other mods to see which mods are registered and active, allowing easier cross-mod interaction.
• A dependency-free mod api, using a mixture of databases, flags, and events.
• LeaderLib also adds its own trader, used to grant the "Mod Menu" book and provide a central traders for my other mods to register treasure to.

• Script helpers such as:
    • Array and dictionary style databases (index-based, self-governing length/count value, also comes with an iterator)
    • Queues-style databases that "pop" the oldest entry, return it, and come with customizable completion events and timeout timers.
    • String methods, including length counting and comparisons for sorting.
    • A way to send out story events with no specific target in mind.
    • An "event flow" system, providing a way to have events flow in a specific order, with the optional safety of a timeout system.

The Mod Menu in Action:
[Linked Image]


Links:
  • Steam Workshop Release
  • Github Source
  • Implementation Tutorials for Modders (W.I.P.)