Anchor v2.1.0: Complete Overhaul, component-level control, scripting API, Sequence/Choreograph integration#2250
Open
KenanMillet wants to merge 16 commits into
Open
Anchor v2.1.0: Complete Overhaul, component-level control, scripting API, Sequence/Choreograph integration#2250KenanMillet wants to merge 16 commits into
KenanMillet wants to merge 16 commits into
Conversation
…ograph integration (token vars, functions, lifecycle hook)
…ity (left/top/rotation), add scaleW/scaleH, siblings/children, remove anchorTo
…truthiness and parent.id instead)
…FlipV/H, setFlipV/H, getZOffset, getLocked, getUnlocked API
…ph token variables
…p, z, lock/unlock)
…ributes, update TODO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete rewrite of Anchor with per-component tracking/locking, auto-created anchor tokens, a public scripting API, and integration with Sequence and Choreograph.
Changes (v1.0.0 → v2.1.0)
Core Features
-pos,-x,-y,-rot,-scale,-w,-h,-layer,-flip,-flipv,-fliph,-z,-alllock/unlockwith pre-lock supporttrack/untrack/retrackcommands for modifying tracked setpersistflag)!anchor configwith useroptions/globalconfig integrationallow-player-use)Scripting API
getPosition/setPosition,getRotation/setRotation,getScale/setScalegetFlipV/setFlipV,getFlipH/setFlipH(true = flipped relative to parent)getZOffset,getLocked,getUnlocked,lock,unlockanchorObj,createAnchorFor,removeAnchor,updateObj,updateZOrderSequence Integration
Registers virtual attributes for animating in anchor-local space:
anchor.left,anchor.top— positionanchor.rotation— rotationanchor.scaleW,anchor.scaleH— scale (multiplicative)anchor.flipV,anchor.flipH— flip (boolean, non-lerpable)Choreograph Integration
Registers token variables accessible as
token.anchor.*:parent(token),left,top,rotation,scaleW,scaleH,flipV,flipH,zOffsetlocked,unlocked(string arrays)siblings,children(token arrays with LINQ methods)!anchorcommand invocationDocumentation
Help: Anchorhandout on startup!anchor gen-dev-docsgeneratesHelp: Anchor/Scripting API!anchor --helpwhispers command referenceDependencies
Backward Compatibility