@casual-simulation/aux-common
Advanced tools
Changelog
V0.8.8
aux.color
, aux.label
, etc.aux._
to hidden
.aux._
tags until aux._
is input.aux.inventory.color
to global file that allows the user to set the inventory background color in player.minus
button of the final file in sheets will now switch to diff without the minus
or unselect all
buttons that don't do anything.Changelog
V0.8.7
#
section will no longer remain if there are no tags fitting the criteria.Changelog
V0.8.6
U+2018
, U+2019
, U+201C
, U+201D
) into normal quotes (U+0008
, U+0003
).Changelog
V0.8.4
aux.context
tag in another file.diff.save()
and diff.load()
AUX Script functions.
diff.save(diffToSave)
: Takes the given diff and returns JSON that can be stored in a tag.diff.load(diffToLoad)
: Renamed from diff.create()
, diff.load()
is now able to take some JSON and returns a diff that can be applied to a file using applyDiff()
..0123
is now allowed and equals 0.0123
.aux.color
: Setting this tag on a user's file will cause that user to be the given color.aux.scene.user.player.color
: Setting this tag on the globals file will cause all users in AUX Player to appear as the given color.aux.scene.user.builder.color
: Setting this tag on the globals file will cause all users in AUX Builder to appear with the given color.globals
file to config
.aux.context.surface.{x,y,z}
-> aux.context.{x,y,z}
aux.context.surface.rotation.{x,y,z}
-> aux.context.rotation.{x,y,z}
aux._creator
-> aux.creator
aux.builders
-> aux.designers
onSave()
-> onSaveInput()
onClose()
-> onCloseInput()
"Switch to Player"
button text to be "Open Context in New Tab"
."Channel Designer"
.onDiff()
event that is triggered on the file that a diff was applied to.
that
parameter is an object with the following properties:
diffs
: The array of diffs that were applied to the file.onSaveInput()
or onCloseInput()
callback from another input.Create Workspace
button tooltip to Create Surface from Selection
.Destroy File
and Clear Diff
buttons from an empty diff sheet.Destroy File
and replaced it with the Clear Diff
button on a non-empty diff sheet.player.tweenTo()
from affecting the inventory camera if the target file doesnt exist in it.Changelog
V0.8.3
aux.context.surface
with aux.context.visualize
false
: Means that the context will not be visible in AUX Builder. (default)true
: Means that the context will be visible in AUX Builder but won't have a surface.surface
: Means that the context will be visible with a surface in AUX Builder.Changelog
V0.8.2
onGridClick()
that
parameter is an object with the following properties:
context
: The context that the click happened inside of. If the click occurred in the main viewport then this will equal player.currentContext()
. If the click happened inside the inventory then it will equal player.getInventoryContext()
.position
: The grid position that was clicked. Contains x
and y
properties.aux.builders
tag which allows setting a whitelist for AUX Builder.
aux.whitelist
and aux.blacklist
still exist and can be used to whitelist/blacklist users across both AUX Builder and AUX Player.aux.builders
is present then only users in the builder list can access AUX Builder.aux.builders
is not present then AUX Builder falls back to checking the whitelist and blacklist.aux.movable=diff
.
clone
but the cloned file is a diff.aux.movable.diffTags
tag.player.isBuilder()
function for AUX Script.
aux.builders
list or that there is no aux.builders
list in the globals file.player.showInputForTag(file, tag, options)
function for AUX Script.
type
: The type of input dialog to show.
text
and color
.text
.subtype
: The specific version of the input type to use.
basic
, advanced
, and swatch
for the color
type.basic
.title
: The text that will be shown as the title of the input box.foregroundColor
: The color of the text in the input box.backgroundColor
: The color of the background of the input box.placeholder
: The placeholder text to use for the input box value.search
, [empty]
, and [diff-]
to just be search / run
.RemoveTags()
function to allow it to use Regular Expressions to search for the tag sections to remove.Changelog
V0.8.11
Clear Diff
section of the sheets has been renamed Clear Tags
.create surface from selection
to create surface
in mergeBall mode.diff-
id of file to merge
when adding tag to empty file.Create Surface from Selection
to Create Surface
when opened on a merge file.Changelog
V0.8.0
actions()
section.aux.shape
set to sprite
.Changelog
V0.7.7
aux.context.movable
-> aux.context.surface.movable
aux.context.x
-> aux.context.surface.x
aux.context.y
-> aux.context.surface.y
aux.context.z
-> aux.context.surface.z
aux.context.grid
-> aux.context.surface.grid
aux.context.scale
-> aux.context.surface.scale
aux.context.minimized
-> aux.context.surface.minimized
aux.context.surface
as a way to determine if a surface should show up in AUX Builder.
false
.aux.context
to the context.{context}.config
.aux.context.locked
as a way to determine if a context should be able to be loaded in AUX Player.
true
for contexts that do not have a file that sets aux.context
for it.false
for contexts that have a file that sets aux.context
for it and do not have a aux.context.locked
tag.Changelog
V0.7.6
#
.isBuilder
and isPlayer
helper variables.