adamant-ModpackLib icon

ModpackLib

Shared utilities for adamant modpack standalone mods.

Last updated 21 hours ago
Total downloads 15
Total rating 0 
Categories Modpacks
Dependency string adamant-ModpackLib-1.0.0
Dependants 10 other packages depend on this package

This mod requires the following mods to function

Hell2Modding-Hell2Modding-1.0.78 icon
Hell2Modding-Hell2Modding

Lua Mod Loader for Hades 2

Preferred version: 1.0.78
LuaENVY-ENVY-1.2.0 icon
LuaENVY-ENVY

A plugin to allow ReturnOfModding plugins greater control of their environment.

Preferred version: 1.2.0

README

adamant-ModpackLib

Shared runtime and immediate-mode UI toolkit for adamant modpack modules.

Lib now owns:

  • managed module storage and explicit session
  • storage typing and normalization
  • hash/profile encoding helpers
  • mutation lifecycle helpers for affectsRunData modules
  • standalone hosting helpers
  • immediate-mode widgets and navigation helpers

Lib does not own a declarative UI tree/runtime anymore. New module UI should be written directly in module draw functions such as internal.DrawTab(ui, session) and optional internal.DrawQuickContent(ui, session), then exposed through public.host = lib.createModuleHost(...).

Docs

Current Public Namespaces

  • lib.config
  • lib.logging
  • lib.lifecycle
  • lib.mutation
  • lib.hashing
  • lib.widgets
  • lib.nav

Common top-level helpers:

  • lib.createStore(...)
  • lib.createModuleHost(...)
  • lib.standaloneHost(...)
  • lib.isModuleEnabled(...)
  • lib.isModuleCoordinated(...)
  • lib.resetStorageToDefaults(...)

Validation

cd adamant-ModpackLib
lua5.2 tests/all.lua