Skip to content

Anchor v2.4.0 - #2311

Open
KenanMillet wants to merge 4 commits into
Roll20:masterfrom
KenanMillet:Anchor-ScriptKit
Open

Anchor v2.4.0#2311
KenanMillet wants to merge 4 commits into
Roll20:masterfrom
KenanMillet:Anchor-ScriptKit

Conversation

@KenanMillet

Copy link
Copy Markdown
Contributor

Anchor v2.4.0: ScriptKit Integration

Summary

Converts Anchor to use ScriptKit for help, man, whatsnew, MOTD, and handout generation. Removes manual help text and dev-docs handler in favor of ScriptKit's framework.

Changes

ScriptKit Integration

  • help — Full command reference with grouped commands (Core, Component Control, Configuration)
  • man — Topics: Component Flags, Scripting API, Integrations
  • whatsnew / changes — Changelog with dates for versions 2.1.0 through 2.4.0
  • gen-help / gen-dev-docs — Auto-generated handouts from registered help data
  • MOTD — 7 tips with ⚓ header (blue accent)

Removed

  • HELP_TEXT constant and --help handler
  • Manual gen-dev-docs handler (static HTML generation for "Help: Anchor/Scripting API")
  • Manual log('-=> Anchor vX.Y.Z Initialized <=-')

Dev Documentation (via ScriptKit topics)

  • Component Flags — full reference of long/short flag syntax
  • Scripting API — complete public function reference (getAnchor, getChildren, anchorObj, createAnchorFor, removeAnchor, position/rotation/scale/flip getters/setters, lock/unlock, updateObj, updateZOrder, trackComponents, untrackComponents)
  • Integrations — documents Choreograph token variables and Sequence virtual attributes

Dependencies

  • MatrixMath (required — transform math)
  • ScriptKit (required — help system)

Testing

  • !anchor help — shows grouped commands with auto-injected ScriptKit commands + Browse Topics
  • !anchor man — lists Component Flags, Scripting API, Integrations topics
  • !anchor man lock — finds the lock command
  • !anchor whatsnew — shows v2.4.0 changes
  • !anchor motd — shows a random tip
  • !anchor gen-dev-docs — generates dev handout with full API reference
  • Core anchoring functionality unchanged (anchor, remove, lock, unlock, chain, etc.)

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.

1 participant