@casual-simulation/aux-custom-portals
Advanced tools
Changelog
V1.5.0
#portalCameraRotationX
and #portalCameraRotationY
tags to use radians instead of degrees.cameraZoom
and cameraZoomOffset
tags.os.focusOn(botOrPosition, options?)
function.
os.tweenTo()
and os.moveTo()
except that it takes an options object instead of a bunch of parameters.os.focusOn()
and os.tweenTo()
now use quadratic easing by default.
os.focusOn()
supports specifying the easing type just like animateTag()
.os.tweenTo()
and os.moveTo()
are now deprecated and should no longer be used. They will be removed in a future release of CasualOS.
experiment.beginAudioRecording()
and experiment.endAudioRecording()
functions to experiment with audio recording.
cameraMovementExample
) has been updated to reflect this change (version 2 and later).Changelog
V1.4.11
math.scaleVector(vector, scale)
function to make multiplying vectors by scalar values easy.@onServerJoined
event could be sent before all data was loaded.
Changelog
V1.4.10
animateTag()
to support animating multiple tags at once by accepting an object for the fromValue
and toValue
options properties.
animateTag(bot, tag, options)
, omit the tag
argument and call animateTag(bot, options)
. This will indicate that you want to animate multiple tags at once over the same duration.clearAnimations()
to support accepting a list of tags to cancel.getBotPosition(bot, dimension)
- Gets the 3D position of a bot in the given dimension.math.addVectors(...vectors)
- Adds the given vectors together and returns the result.math.subtractVectors(...vectors)
- Subtracts the given vectors and returns the result.math.negateVector(vector)
- Mathematically negates the given vector and returns the result.os.getFocusPoint(portal?)
function to get the focus point that the camera is looking at.
#portalShowFocusPoint
tag.cameraFocusX
, cameraFocusY
, cameraFocusZ
tags on the portal bot.Changelog
V1.4.9
Changelog
V1.4.8
onRemoteData
now uses that.remoteId
instead of that.playerId
.portalPlayerZoom
, portalPlayerRotationX
and portalPlayerRotationY
tags to portalCameraZoom
and portalCameraRotationX
and portalCameraRotationY
.player
and otherPlayers
spaces to tempShared
and remoteTempShared
.@onError
listen tag.
server.serverPlayerCount()
is now server.serverRemoteCount()
.server.totalPlayerCount()
is now server.totalRemoteCount()
.server.stories()
is now server.servers()
.server.players()
is now server.remotes()
.sleep()
is now os.sleep()
onServerSubscribed
is now onServerJoined
.onServerUnsubscribed
is now onServerLeave
.onPlayerPortalChanged
is now onPortalChanged
.onRemotePlayerSubscribed
is now onRemoteJoined
onRemotePlayerUnsubscribed
is now onRemoteLeave
.that.playerId
has been changed to that.remoteId
in the new listen tags.web.get()
, web.post()
, and web.hook()
functions as future replacements for the webhook()
and webhook.post()
functions.@onServerSubscribed
is triggered.white-space
CSS property could not be used on menu bots.Changelog
V1.4.7
player
functions to os
.
player.toast()
you should now do os.toast()
.configBot
and configTag
variables.pagePortalConfigBot
can now be accessed with the pagePortalBot
variable.pagePortalBot.tags.portalColor = "green"
.tempLocal
bot will be created for each builtin portal.portal.open(portalName, bot)
.portal.open()
function to take a bot as a parameter.
portal.open(name, bot, tag?, options?)
.{name}Bot
.portal.open("myPortal", bot, "main")
will make bot
available as myPortalBot
.player.getBot()
and replaced it with configBot
.creator
variable to creatorBot
.thisBot
variable as a preferred alternative to this
and bot
.pageCameraPositionX
used to be on the player bot (now the config bot) but is now on the page portal bot.transformer
tag to use the page and inventory portal bots instead of the config bot (previously the player bot).pageCameraPosition{X,Y,Z}
and inventoryCameraPosition{X,Y,Z}
tags to cameraPosition{X,Y,Z}
.pageCameraRotation{X,Y,Z}
and inventoryCameraRotation{X,Y,Z}
tags to cameraRotation{X,Y,Z}
.pagePixelHeight
and pagePixelWidth
tags to pixelHeight
and pixelWidth
.Changelog
V1.4.5
https://bootstrap.casualos.com/ab1.aux
.menuItemHoverMode
tag. It has three possible options:
auto
- The bot will appear hoverable based on if it has a @onClick
tag. (Default)hover
- The bot will appear hoverable.none
- The bot will not appear hoverable.idePortal
(IDE portal).
idePortal
tag to a prefix (like 📖) will load every tag that starts with the prefix into the IDE portal and let you jump between them as if they are files in a text editor.