Skip to content

ATL for V13 and AppV2#170

Open
JudasBrennan wants to merge 11 commits into
kandashi:mainfrom
JudasBrennan:main
Open

ATL for V13 and AppV2#170
JudasBrennan wants to merge 11 commits into
kandashi:mainfrom
JudasBrennan:main

Conversation

@JudasBrennan
Copy link
Copy Markdown

Summary

Updated Active Token Lighting for FoundryVTT v13 compatibility.

Changes

  • Migrated Preset Selector from old Dialog UI to new ApplicationV2-based modal for cleaner UX.
  • Updated scene controls injection to support the new Foundry v13 controls.lighting.tools API, while preserving legacy fallback for <v13.
  • Improved safety of dialogs (added Dialog.confirm fallback, HTML escaping for preset names).
  • Preserved all existing ATL functionality:
    • Hook handling for ActiveEffect/Token/Item/Scene updates.
    • Filtering for ATL. keys and correct priority application.
    • Handling of detection modes, light animations, presets, and vision modes.
    • Migration steps (0.2.0 through 0.5.0) remain intact.

Notes

  • Functionality was carefully compared against the original version — no ATL features were lost.
  • These updates are a direct lift-and-shift to modern APIs to ensure long-term compatibility.

@CaosFR
Copy link
Copy Markdown

CaosFR commented Oct 17, 2025

Thanks can you create your proper module.json for easy install ? Thanks

@RavK-ux
Copy link
Copy Markdown

RavK-ux commented Nov 8, 2025

Sorry, I'm an idiot when it comes to these things. How do I add this into my foundry without a .json link? Copy and paste?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants