@casual-simulation/aux-common
Advanced tools
Changelog
V0.9.12
player.tweenTo
, users can now define an x
and y
rotation to define which way the camera views the bot.aux.context.locked
set to false and the text has been change to Lock Context
.aux.mod.tags
to aux.mod.mergeTags
.aux.movable="mod"
to aux.movable="cloneMod"
.isDiff
function no longer checks for aux.mod.mergeTags
when determining weather a bot is a diff or not.aux.listening
tag to disable, a bot will accept shouts or whispers if this tage is set to true but ignore them it aux.listening
is set to false.context_
prefix of the default generated name of new contexts.Requesting site ID
text.onCombine
should not trigger when dragging on a stack of bots but a warning message explaining this has been added it this is attempted.Changelog
V0.9.11
player.goToURL(url)
: Redirects the user to the given URL in the same tab/window.player.openURL(url)
: Opens the given URL in a new tab/window.Changelog
V0.9.7
aux.iframe
tag.Changelog
V0.9.6
@
and #
expressions.
@id
and #id
will no longer work.getBots("#id")
and getBotTagValues("#id")
.THREE.WebGLRenderer
prematurely submitted the frame to the VRDisplay
. This was a problem because it appears that the WebVR API ignores subsequent calls to the VRDisplay.submitFrame
function until the current frame has passed.hasTag
function to allow users to check if the file has a specific tag on it.window
global variable will not be available formulas.
window.alert()
or window.location
or window.navigator.vibrate()
will not work anymore.getTag()
, getBot()
, getBots()
and getBotTagValues()
to track dependencies.getTag(this, myVar)
won't work. But getTag(this, "#tag")
will work.aux._user
tag set.aux.line.to
if the line was too short.config
and not confi
.Changelog
V0.9.5
onGridClick()
is now supported in VR.mergeBall
tag to mod
.tags
staring tag to mod
.Clear Tags
to Clear Mod
.tags.remove()
back to removeTags()
.aux.context.rotation
tags are now being used in AUX Builder to apply rotation to contexts._user
and all other appropriate hidden tags will now correctly sort into the hidden tags section in sheets.aux.label.size.mode
set to auto
now sizes properly with the orthographic camera.Changelog
V0.9.39
stripe.publishableKey
tag.stripe.secretKey
tag.player.checkout(options)
: Starts the checkout process for the user. Accepts an object with the following properties:
productId
: The ID of the product that is being purchased. This is a value that you make up to distinguish different products from each other so you know what to charge.title
: The title message that should appear in the checkout box.description
: The description message that should appear in the checkout box.processingChannel
: The channel that payment processing should happen on. This is the channel you made from step 3.requestBillingAddress
: Whether to request billing address information with the purchase.paymentRequest
: Optional values for the "payment request" that gives users the option to use Apple Pay or their saved credit card information to checkout. It's an object that takes the following properties:
country
: The two-letter country code of your Stripe account.currency
: The three letter currency code. For example, "usd" is for United States Dollars.total
: The label and amount for the total. An object that has the following properties:
label
: The label that should be shown for the total.amount
: The amount that should be charged in the currency's smallest unit. (cents, etc.)server.finishCheckout(options)
: Finishes the checkout process by actually charging the user for the product. Takes an object with the following properties:
token
: The token that was produced from the onCheckout()
call in the processing channel.amount
: The amount that should be charged in the currency's smallest unit.currency
: The three character currency code.description
: The description that should be included in the receipt.extra
: Extra data that should be sent to the onPaymentSuccessful()
or onPaymentFailed()
actions.onCheckout()
: This action is called on both the normal channel and the processing channel when the user submits a payment option to pay for the product/service. that
is an object with the following properties:
token
: The Stripe token that was created to represent the payment details. In the processing channel, this token can be passed to server.finishCheckout()
to complete the payment process.productId
: The ID of the product that is being purchased. This is useful to determine which product is being bought and which price to charge.user
: (Processing channel only) Info about the user that is currently purchasing the item. It is an object containing the following properties:
username
: The username of the user. (Shared for every tab & device that the user is logged into)device
: The device ID of the user. (Shared for every tab on a single device that the user is logged into)session
: The session ID of the user. (Unique to a single tab)onPaymentSuccessful()
: This action is called on the processing channel when payment has been accepted after server.finishCheckout()
has completed. that
is an object with the following properties:
bot
: The bot that was created for the order.charge
: The info about the charge that the Stripe API returned. (Direct result from /api/charges/create
)extra
: The extra info that was included in the server.finishCheckout()
call.onPaymentFailed()
: This action is called on the processing channel when payment has failed after server.finishCheckout()
was called. that
is an object with the following properties:
bot
: The bot that was created for the error.error
: The error object.extra
: The extra info that was included in the server.finishCheckout()
call.remote(command, target)
function.
remote(player.toast("hi!"), { username: 'test' })
will send a toast message with "hi!" to all sessions that the user "test" has open.player.toast()
or player.goToURL()
work. Shouts and whispers are not supported yet.Changelog
V0.9.29
hasFileInInventory()
function to hasBotInInventory()
.onMerge()
action tag to onMod()
.aux._editingFile
hidden tag to aux._editingBot
.#
or by pressing Ctrl+Space
.Ctrl+Space
.Shift+F12
.Shift+F12
.Alt+Shift+F
.Ctrl+F
.Channel doesn't exist. Do you want to create it?
to Channel doesn't exist. Click here to create it.
for better user direction.getBot()
function not working in the search bar.setTag()
not working with multiple files when fed a false or null value to set.onPointerExit()
function will now execute before an onPointerEnter()
function when hovering over multiple bots.RemoveTags()
function where providing a string with a .
in its tag section failed to remove the correct tags.aux.context
can now be set to a value type of boolean or number.Create Channel
toast message to give it more processing time so it works more consistently.onAnyDropInContext
and what was appearing in the tag dropdown onDropAnyInContext
to read correctly, and other similar cases of this.aux.context.inventory.height
to work in the context bot's tag list.Changelog
V0.9.19
shout()
returns a list of results from every bot that ran a script for the shout ordered by bot ID.whisper()
returns a list of results from every bot that ran a script for the whisper ordered by the input bot array.return
statements. For example, to return 10
from a shout you would simply write return 10
.Create Context from Selection
.powered by CasualOS
to bthe hamburger menu and loading popup.Unselect All
from the sheets.getBots("id")
)Changelog
V0.8.10
diff
key word to merge
or mergeBall
.
aux.diff
has been changed to aux.mergeBall
and aux.diffTags
has been changed to aux.mergeBall.tags
and the diff
id tag value has been changed to merge
.Changelog
V0.8.9
diff.save
and diff.load
to diff.export
and diff.import
respectfully.saveDiff
to automatically include the loadDiff
function within it to clean up the resulting output.diff.save
will now return a cleaner JSON than it was before.