Slider
Package: Libraries.Interface.Controls · Inherits from: Libraries.Interface.Item, Libraries.Interface.Controls.Control, Libraries.Interface.Item2D, Libraries.Language.Object
A Slider chooses a number in a range by moving a thumb along a track. The track is filled in the accent color up to the thumb. When the slider has the focus, its thumb grows, turns the accent color and gets a soft halo. The user can change the value with the keys (Right and Up step up, Left and Down step down, Page Up and Page Down move a page step, Home and End go to the ends, and Shift with an arrow moves a tenth of a step), by dragging the thumb, by clicking the track to jump there, or with a screen reader. Listeners (AddSliderListener) are told of each change; while dragging the changes are not final, and one final change is sent when the drag ends. Its colors come from the interface options under the key "Slider": the background color is the track, the foreground the filled part, the accent the thumb, the border the thumb's edge, the focus border the focused thumb and its halo, and the focus color the focused thumb's edge.
Example Code
use Libraries.Interface.Forms.Form
use Libraries.Interface.Forms.Page
use Libraries.Interface.Controls.Slider
Form form
Page page = form:GetMainPage()
page:AddLabel("Brightness")
Slider brightness = page:AddSlider("Brightness", 0, 100)
brightness:SetValue(60)
form:Display()
Actions
AddSliderListener(Libraries.Interface.Events.SliderListener listener)
Adds a listener, told when the user changes the value.
Parameters
listenerLibraries.Interface.Events.SliderListener: The listener.
BeginPointer(number x)
This action is called when the mouse button goes down on the slider, at a place across the screen. Pressing the thumb grabs it where it is; pressing the track elsewhere jumps the thumb there. The slider takes the focus.
Parameters
xnumber: Where the pointer is, across the screen.
ChangeValue(number newValue, boolean isFinal)
Changes the value as the user does: kept within the range, the thumb moves, the screen reader is told, and so are listeners if the value changed.
Parameters
newValuenumber: The value.isFinalboolean: False while a drag goes on, true otherwise.
EndPointer()
This action is called when the mouse button comes up: listeners are told of the change, once, as final, with the value before the button went down as the old value.
FineStepDown()
Moves the value a tenth of a step down, as Shift with Left or Down does.
FineStepUp()
Moves the value a tenth of a step up, as Shift with Right or Up does.
FormatNumber(number amount)
Writes a number with the slider's decimal places.
Parameters
amountnumber: The number.
Returns
text: The text.
GainedFocus(Libraries.Interface.Events.FocusEvent event)
This action is called when the slider gains the focus: its thumb grows and gets its halo.
Parameters
eventLibraries.Interface.Events.FocusEvent: The focus event.
GetDecimalPlaces()
Returns how many decimal places the value is shown and said with. Unless set, it is worked out from the step: 2 for a step of 0.01.
Returns
integer: The decimal places.
GetMaximum()
Returns the greatest value.
Returns
number: The maximum.
GetMinimum()
Returns the least value.
Returns
number: The minimum.
GetNumberText()
Returns the value as a number with the slider's decimal places, such as "0.25" or "40".
Returns
text: The value as text.
GetPageStep()
Returns how much Page Up and Page Down change the value.
Returns
number: The page step.
GetStep()
Returns how much one key press changes the value.
Returns
number: The step.
GetUnits()
Returns the word said after the value, such as "degrees", or an empty text.
Returns
text: The units.
GetValue()
Returns the value.
Returns
number: The value.
GetValueText()
Returns what a screen reader says for the value: the number, then the units if there are any, such as "40 degrees".
Returns
text: The value text.
IsLogarithmic()
Returns true if the track is set to spread by ratios.
Returns
boolean: True if logarithmic.
IsPointerDown()
Returns true while the mouse button is down on the slider.
Returns
boolean: True while the pointer is down.
LoadGraphics(Libraries.Interface.Layouts.LayoutProperties properties)
Loads the parts' views the first time, then sets their colors, sizes and places.
Parameters
propertiesLibraries.Interface.Layouts.LayoutProperties
LostFocus(Libraries.Interface.Events.FocusEvent event)
This action is called when the slider loses the focus: its thumb goes back to its usual look.
Parameters
eventLibraries.Interface.Events.FocusEvent: The focus event.
MovePointer(number x)
This action is called as the pointer is dragged: the thumb follows it, in steps.
Parameters
xnumber: Where the pointer is, across the screen.
MoveToMaximum()
Moves the value to the maximum, as End does.
MoveToMinimum()
Moves the value to the minimum, as Home does.
PageDown()
Moves the value a page step down, as Page Down does.
PageUp()
Moves the value a page step up, as Page Up does.
RemoveSliderListener(Libraries.Interface.Events.SliderListener listener)
Removes a listener.
Parameters
listenerLibraries.Interface.Events.SliderListener: The listener.
SetDecimalPlaces(integer places)
Sets how many decimal places the value is shown and said with, or -1 to work it out from the step.
Parameters
placesinteger: The decimal places.
SetLogarithmic(boolean value)
Sets whether the track is spread by ratios instead of differences, for a range whose useful values are spread unevenly, such as a size from 0.5 to 64: halfway along is the middle ratio (about 5.7), not the middle number (32). The step and page step are then factors greater than 1, such as 1.15 (each key press is 15% more) and 2 (Page Up doubles). It needs a minimum above 0; with a minimum of 0 or less the track is spread by differences as usual.
Parameters
valueboolean: True to spread the track by ratios.
SetMaximum(number newMaximum)
Sets the greatest value. The value is kept within the range.
Parameters
newMaximumnumber: The maximum.
SetMinimum(number newMinimum)
Sets the least value. The value is kept within the range.
Parameters
newMinimumnumber: The minimum.
SetPageStep(number step)
Sets how much Page Up and Page Down change the value.
Parameters
stepnumber: The page step, more than 0.
SetRange(number newMinimum, number newMaximum)
Sets the least and greatest values. The value is kept within the range. Listeners aren't told.
Parameters
newMinimumnumber: The minimum.newMaximumnumber: The maximum.
SetStep(number step)
Sets how much one key press changes the value. Dragging and clicking the track also move in steps.
Parameters
stepnumber: The step, more than 0.
SetUnits(text newUnits)
Sets a word said after the value by screen readers, such as "degrees", or an empty text for none.
Parameters
newUnitstext: The units.
SetValue(number newValue)
Sets the value, kept within the range, as a program does: the thumb moves and the screen reader is told, but listeners aren't, since the user didn't change it. To change it as the user does, use ChangeValue.
Parameters
newValuenumber: The value.
StepDown()
Moves the value one step down, as Left or Down does.
StepUp()
Moves the value one step up, as Right or Up does.
Inherited Actions
261 actions from Libraries.Interface.Controls.Control
- Activate(Libraries.Interface.Events.BehaviorEvent event)
- Activate()
- Add(integer index, Libraries.Interface.Item2D newItem)
- Add(Libraries.Interface.Item2D newItem)
- AddControlActivationListener(Libraries.Interface.Events.ControlActivationListener listener)
- AddLayoutProperties(Libraries.Interface.Layouts.LayoutProperties properties)
- AddSelectionListener(Libraries.Interface.Events.SelectionListener listener)
- BeginMouseOver()
- ClickedMouse()
- CopyAndActivateInputTable(text name)
- CreateTooltipContent()
- EmptySelectionListeners()
- EndMouseOver()
- GainedSelection()
- GetAccentColor()
- GetActivationBehavior()
- GetBackgroundColor()
- GetBorderColor()
- GetBorderStyle()
- GetBorderThickness()
- GetBottomLeftPixelRounding()
- GetBottomLeftRounding()
- GetBottomMargin()
- GetBottomPadding()
- GetBottomRightPixelRounding()
- GetBottomRightRounding()
- GetColorProperty(text property)
- GetContainerGridHeight()
- GetContainerGridWidth()
- GetCurrentLayoutProperties()
- GetDefaultFont()
- GetDefaultFontName()
- GetDefaultFontSize()
- GetDefaultLayoutProperties()
- GetDefaultMonospaceFontName()
- GetDefaultProportionalFontName()
- GetFocusBorderColor()
- GetFocusBorderThickness()
- GetFocusColor()
- GetFocusFontColor()
- GetFont()
- GetFontColor()
- GetFontOutlineColor()
- GetFontOutlineThickness()
- GetFontSize()
- GetForegroundColor()
- GetForegroundSelectionColor()
- GetGlowColor()
- GetGridHeight()
- GetGridWidth()
- GetGridX()
- GetGridY()
- GetHorizontalLayoutMode()
- GetIcon()
- GetIconColor()
- GetInterfaceOptionsKey()
- GetInterfaceScale()
- GetLabelText()
- GetLayout()
- GetLayoutProperties(number containerWidth, number containerHeight)
- GetLayoutProperties()
- GetLayoutRows()
- GetLeftMargin()
- GetLeftPadding()
- GetMouseDownColor()
- GetMouseDownFontColor()
- GetMouseDownGlowColor()
- GetMouseOverBorderColor()
- GetMouseOverBorderThickness()
- GetMouseOverColor()
- GetMouseOverFontColor()
- GetMouseOverGlowColor()
- GetNumberProperty(text property)
- GetPercentageHeight()
- GetPercentageOriginX()
- GetPercentageOriginY()
- GetPercentageWidth()
- GetPercentageX()
- GetPercentageY()
- GetPixelHeight()
- GetPixelWidth()
- GetPixelX()
- GetPixelY()
- GetPopupMenu()
- GetRightMargin()
- GetRightPadding()
- GetSelectionBorderColor()
- GetSelectionBorderThickness()
- GetSelectionColor()
- GetSelectionFontColor()
- GetSelectionListeners()
- GetShadowColor()
- GetShadowEdgeFade()
- GetShadowHeight()
- GetShadowWidth()
- GetShadowX()
- GetShadowY()
- GetTooltipArea()
- GetTooltipPlacement()
- GetTooltipShowDelay()
- GetTooltipText()
- GetTooltipTitle()
- GetTooltipWords()
- GetTopLeftPixelRounding()
- GetTopLeftRounding()
- GetTopMargin()
- GetTopPadding()
- GetTopRightPixelRounding()
- GetTopRightRounding()
- GetUnfocusedSelectionBorderColor()
- GetUnfocusedSelectionColor()
- GetUnfocusedSelectionFontColor()
- GetVerticalLayoutMode()
- HasBorderThickness()
- HasBottomBorder()
- HasBottomLeftPixelRounding()
- HasBottomLeftRounding()
- HasBottomRightPixelRounding()
- HasBottomRightRounding()
- HasColorPropertyOverride(text property)
- HasFocusBorderThickness()
- HasFontOutlineThickness()
- HasLeftBorder()
- HasMouseOverBorderThickness()
- HasNumberPropertyOverride(text property)
- HasRightBorder()
- HasSelectionBorderThickness()
- HasShadowEdgeFade()
- HasShadowHeight()
- HasShadowWidth()
- HasShadowX()
- HasShadowY()
- HasTooltipContent()
- HasTopBorder()
- HasTopLeftPixelRounding()
- HasTopLeftRounding()
- HasTopRightPixelRounding()
- HasTopRightRounding()
- HideTooltip()
- IsRenderingFocus()
- IsRenderingMouseDown()
- IsRenderingMouseOver()
- IsRenderingSelection()
- IsTooltipEnabled()
- IsTooltipInteractive()
- IsTooltipShowing()
- IsTooltipShownOnHover()
- IsTooltipTargetChanged()
- LostSelection()
- NeedsLayout()
- NotifyControlActivationListeners(Libraries.Interface.Events.ControlActivationEvent event)
- NotifySelectionListeners(Libraries.Interface.Events.SelectionEvent event)
- ReleasedMouse()
- Remove(integer index)
- Remove(Libraries.Interface.Item2D item)
- RemoveControlActivationListener(Libraries.Interface.Events.ControlActivationListener listener)
- RemoveLayoutProperties(Libraries.Interface.Layouts.LayoutProperties properties)
- RemoveSelectionListener(Libraries.Interface.Events.SelectionListener listener)
- RequestLayout()
- RequestReloadGraphics()
- ResetLayoutFlag()
- SelectByFirstLetters(text firstLetter)
- SetAccentColor(Libraries.Game.Graphics.ColorGroup value)
- SetBackgroundColor(Libraries.Game.Graphics.ColorGroup value)
- SetBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetBorderStyle(integer style)
- SetBorderThickness(number value)
- SetBottomLeftPixelRounding(number value)
- SetBottomLeftRounding(number value)
- SetBottomMargin(number padding)
- SetBottomPadding(number padding)
- SetBottomRightPixelRounding(number value)
- SetBottomRightRounding(number value)
- SetColorProperty(text property, Libraries.Game.Graphics.ColorGroup value)
- SetContainerGridHeight(integer containerGridHeight)
- SetContainerGridWidth(integer containerGridWidth)
- SetCornerPixelRounding(number bottomLeft, number bottomRight, number topLeft, number topRight)
- SetCornerRounding(number bottomLeft, number bottomRight, number topLeft, number topRight)
- SetFocusBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetFocusBorderThickness(number value)
- SetFocusColor(Libraries.Game.Graphics.ColorGroup value)
- SetFocusFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetFont(Libraries.Game.Graphics.Font font)
- SetFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetFontOutlineColor(Libraries.Game.Graphics.ColorGroup value)
- SetFontOutlineThickness(number value)
- SetFontSize(integer size)
- SetForegroundColor(Libraries.Game.Graphics.ColorGroup value)
- SetForegroundSelectionColor(Libraries.Game.Graphics.ColorGroup value)
- SetGlowColor(Libraries.Game.Graphics.ColorGroup value)
- SetGridHeight(integer gridHeight)
- SetGridPosition(integer gridX, integer gridY)
- SetGridSize(integer gridWidth, integer gridHeight)
- SetGridWidth(integer gridWidth)
- SetGridX(integer gridX)
- SetGridY(integer gridY)
- SetHorizontalLayoutMode(integer mode)
- SetIcon(Libraries.Game.Graphics.TextureRegion icon)
- SetIconColor(Libraries.Game.Graphics.ColorGroup value)
- SetInterfaceOptionsKey(text key)
- SetInterfaceScale(number scale)
- SetLabelText(text labelText)
- SetLayout(Libraries.Interface.Layouts.Layout layout)
- SetLayoutRows(number layoutRows)
- SetLeftMargin(number padding)
- SetLeftPadding(number padding)
- SetMouseDownColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseDownFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseDownGlowColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverBorderThickness(number value)
- SetMouseOverColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetMouseOverGlowColor(Libraries.Game.Graphics.ColorGroup value)
- SetNumberProperty(text property, number value)
- SetPercentageHeight(number height)
- SetPercentageOriginX(number x)
- SetPercentageOriginY(number y)
- SetPercentageWidth(number width)
- SetPercentageX(number x)
- SetPercentageY(number y)
- SetPixelHeight(number height)
- SetPixelWidth(number width)
- SetPixelX(number x)
- SetPixelY(number y)
- SetPopupMenu(Libraries.Interface.Controls.PopupMenu menu)
- SetRightMargin(number padding)
- SetRightPadding(number padding)
- SetSelectionBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetSelectionBorderThickness(number value)
- SetSelectionColor(Libraries.Game.Graphics.ColorGroup value)
- SetSelectionFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetShadowColor(Libraries.Game.Graphics.ColorGroup value)
- SetShadowEdgeFade(number value)
- SetShadowHeight(number value)
- SetShadowWidth(number value)
- SetShadowX(number value)
- SetShadowY(number value)
- SetToDefaultFontSize()
- SetToHugeFont()
- SetToLargeFont()
- SetToMediumFont()
- SetToSmallFont()
- SetToTinyFont()
- SetTooltipEnabled(boolean enabled)
- SetTooltipText(text value)
- SetTooltipTitle(text value)
- SetTopLeftPixelRounding(number value)
- SetTopLeftRounding(number value)
- SetTopMargin(number padding)
- SetTopPadding(number padding)
- SetTopRightPixelRounding(number value)
- SetTopRightRounding(number value)
- SetUnfocusedSelectionBorderColor(Libraries.Game.Graphics.ColorGroup value)
- SetUnfocusedSelectionColor(Libraries.Game.Graphics.ColorGroup value)
- SetUnfocusedSelectionFontColor(Libraries.Game.Graphics.ColorGroup value)
- SetVerticalLayoutMode(integer mode)
- ShowTooltip()
- TooltipHidden()
- TooltipShown()
- UpdateAll(number seconds)
61 actions from Libraries.Interface.Item
- AddBehavior(Libraries.Interface.Behaviors.Behavior behavior)
- AddFocusListener(Libraries.Interface.Events.FocusListener listener)
- AddGestureListener(Libraries.Interface.Events.GestureListener listener)
- AddMouseListener(Libraries.Interface.Events.MouseListener listener)
- AddMouseMovementListener(Libraries.Interface.Events.MouseMovementListener listener)
- AddMouseWheelListener(Libraries.Interface.Events.MouseWheelListener listener)
- AddTouchListener(Libraries.Interface.Events.TouchListener listener)
- BeginCollision(Libraries.Interface.Item item)
- CancelBehaviors()
- Dispose()
- DisposeAll()
- DisposeChildren()
- EmptyAll()
- EmptyChildren()
- FinishCollision(Libraries.Interface.Item item)
- Focus()
- GetAccessibilityCode()
- GetAccessibilityRoleDescription()
- GetAccessibilityType()
- GetActiveDescendant()
- GetDescription()
- GetFocusListeners()
- GetGestureListeners()
- GetInputGroup()
- GetInputTable()
- GetMouseListeners()
- GetMouseMovementListeners()
- GetMouseWheelListeners()
- GetName()
- GetNextFocus()
- GetPreviousFocus()
- GetPropertiesSize()
- GetProperty(text key)
- GetPropertyKeyIterator()
- GetTouchListeners()
- HasProperties()
- HasProperty(text key)
- Hide()
- IsAcceptingMouseInput()
- IsAccessibleParent()
- IsFocusable()
- IsFocused()
- IsShowing()
- RemoveFocusListener(Libraries.Interface.Events.FocusListener listener)
- RemoveGestureListener(Libraries.Interface.Events.GestureListener listener)
- RemoveMouseListener(Libraries.Interface.Events.MouseListener listener)
- RemoveMouseMovementListener(Libraries.Interface.Events.MouseMovementListener listener)
- RemoveMouseWheelListener(Libraries.Interface.Events.MouseWheelListener listener)
- RemoveTouchListener(Libraries.Interface.Events.TouchListener listener)
- SetAcceptsMouseInput(boolean accepts)
- SetAccessibilityCode(integer newAccessibilityCode)
- SetAccessibilityRoleDescription(text newRoleDescription)
- SetDescription(text newDescription)
- SetFocusable(boolean focus)
- SetInputGroup(text group)
- SetName(text newName)
- SetNextFocus(Libraries.Interface.Item next)
- SetPreviousFocus(Libraries.Interface.Item previous)
- SetProperty(text key, Libraries.Data.Formats.JavaScriptObjectNotation value)
- Show()
- Update(number secondsSinceUpdate)
202 actions from Libraries.Interface.Item2D
- Advance(number time)
- ApplyAngularImpulse(number impulse)
- ApplyForce(Libraries.Compute.Vector2 force, Libraries.Compute.Vector2 point)
- ApplyForceToCenter(Libraries.Compute.Vector2 force)
- ApplyLinearImpulse(Libraries.Compute.Vector2 impulse, Libraries.Compute.Vector2 point)
- ApplyTorque(number torque)
- AreChildrenProcessingMouseEvents()
- CanRotate(boolean flag)
- CollideWithChildren()
- ComputeDistance(Libraries.Compute.Vector2 point, integer childIndex, Libraries.Compute.Vector2 normalOut)
- Contains(number containsX, number containsY)
- CreateNodes(Libraries.Game.Collision.BroadphaseCollision2D broadphase, Libraries.Game.Collision.PhysicsPosition2D transform)
- DestroyNodes(Libraries.Game.Collision.BroadphaseCollision2D broadphase)
- Draw(Libraries.Game.Graphics.Painter2D painter)
- Empty()
- EnablePhysics(boolean flag)
- FastMoving(boolean flag)
- FlipX()
- FlipY()
- GetAccessibleParent()
- GetAngularDamping()
- GetAngularVelocity()
- GetBoundingBox(integer childIndex)
- GetBoundingRectangle()
- GetCenterX()
- GetCenterY()
- GetChildren()
- GetClipCoordinates(Libraries.Compute.Vector2 xCoords, Libraries.Compute.Vector2 yCoords)
- GetCollisionGroupFlag()
- GetCollisionGroupIndex()
- GetCollisionList()
- GetDensity()
- GetDrawableShape()
- GetForce()
- GetFriction()
- GetGlobalX()
- GetGlobalY()
- GetGlobalZ()
- GetHeight()
- GetInertia()
- GetInverseInertia()
- GetInverseMass()
- GetItem(integer index)
- GetItemAt(number x, number y)
- GetItemCount()
- GetItems()
- GetJointList()
- GetLayer()
- GetLinearDamping()
- GetLinearVelocity()
- GetLinearVelocityFromLocalPoint(Libraries.Compute.Vector2 localPoint)
- GetLinearVelocityFromWorldPoint(Libraries.Compute.Vector2 worldPoint)
- GetLocalCenter()
- GetLocalPoint(Libraries.Compute.Vector2 worldPoint)
- GetLocalVector(Libraries.Compute.Vector2 worldVector)
- GetMass(Libraries.Game.Physics.Mass2D mass)
- GetMass()
- GetNodeCount()
- GetNodes()
- GetOffsetX()
- GetOffsetY()
- GetOffsetZ()
- GetOriginX()
- GetOriginY()
- GetParent()
- GetPhysicsProperties()
- GetRawInertia()
- GetResponsiveness()
- GetRestitution()
- GetRotation()
- GetRotationInRadians()
- GetScaleX()
- GetScaleY()
- GetScreenX()
- GetScreenY()
- GetShape()
- GetShapeType()
- GetSleepTime()
- GetSweep()
- GetTorque()
- GetTransform()
- GetTransform0()
- GetView2D()
- GetVisibleItemAt(number x, number y)
- GetWidth()
- GetWorldCenter()
- GetWorldPoint(Libraries.Compute.Vector2 localPoint)
- GetWorldVector(Libraries.Compute.Vector2 localVector)
- GetX()
- GetY()
- GetZ()
- HasMoved()
- IsClipping()
- IsCollidable()
- IsCustomDrawing()
- IsEmpty()
- IsFastMoving()
- IsFlippedX()
- IsFlippedY()
- IsNonResponsive()
- IsOnLayer()
- IsPhysicsEnabled()
- IsResponsive()
- IsRotationAllowed()
- IsSimulated()
- IsSimulationRequired()
- IsUnmovable()
- Move(Libraries.Compute.Vector2 movement)
- Move(number xAmount, number yAmount)
- MoveX(number xAmount)
- MoveY(number yAmount)
- MoveZ(number zAmount)
- PrepareVertices()
- ProcessGestureEvent(Libraries.Interface.Events.GestureEvent event)
- ProcessMouseEvent(Libraries.Interface.Events.MouseEvent event)
- ProcessTouchEvent(Libraries.Interface.Events.TouchEvent event)
- QueueForDrawing(Libraries.Game.Graphics.Painter2D painter)
- RequestVerticesUpdate()
- RequireSimulation(boolean flag)
- ResetMass()
- Resize()
- Rotate(number degrees)
- Scale(number amount)
- Scale(number xAmount, number yAmount)
- ScaleFromCenter(number amount)
- ScaleFromCenter(number xAmount, number yAmount)
- SetAngularDamping(number angularDamping)
- SetAngularVelocity(number angularVelocity)
- SetBoundingBox(number newX, number newY, number newWidth, number newHeight)
- SetCenter(number setX, number setY)
- SetCenterX(number setX)
- SetCenterY(number setY)
- SetChildrenProcessingMouseEvents(boolean shouldProcess)
- SetClipCoordinates(Libraries.Game.Graphics.Painter2D painter)
- SetClipping(boolean clip)
- SetCollidable(boolean flag)
- SetCollideWithChildren(boolean flag)
- SetCollisionGroupFlag(boolean flag)
- SetCollisionGroupIndex(integer index)
- SetCollisionList(Libraries.Game.Collision.CollisionEdge2D edge)
- SetCustomDrawing(boolean isCustom)
- SetDensity(number density)
- SetFlipX(boolean flip)
- SetFlipY(boolean flip)
- SetForce(Libraries.Compute.Vector2 force)
- SetFriction(number friction)
- SetHasMoved(boolean flag)
- SetHeight(number newHeight)
- SetItem(integer index, Libraries.Interface.Item2D newItem)
- SetJointList(Libraries.Game.Physics.Joints.JointEdge2D edge)
- SetLayer(Libraries.Game.Layer2D parentLayer)
- SetLinearDamping(number linearDamping)
- SetLinearVelocity(Libraries.Compute.Vector2 linearVelocity)
- SetLinearVelocityX(number linearVelocityX)
- SetLinearVelocityY(number linearVelocityY)
- SetMass(number mass)
- SetMass(Libraries.Game.Physics.Mass2D mass)
- SetNonResponsive()
- SetOffset(number xAmount, number yAmount, number zAmount)
- SetOffset(number xAmount, number yAmount)
- SetOffsetX(number xAmount)
- SetOffsetY(number yAmount)
- SetOffsetZ(number zAmount)
- SetOrigin(number setX, number setY)
- SetOriginCenter()
- SetParent(Libraries.Interface.Item2D newItem)
- SetPhysicsProperties(Libraries.Game.Physics.PhysicsProperties2D properties)
- SetPosition(number setX, number setY)
- SetPosition(number setX, number setY, number setZ)
- SetResponsive()
- SetResponsiveness(integer type)
- SetRestitution(number restitution)
- SetRotation(number degrees)
- SetScale(number scale)
- SetScale(number newX, number newY)
- SetScaleFromCenter(number scale)
- SetScaleFromCenter(number newX, number newY)
- SetScaleX(number scaleX)
- SetScaleY(number scaleY)
- SetScreenPositionFromPhysicsPosition()
- SetShape(Libraries.Game.Collision.Shapes.CollisionShape2D shape)
- SetSize(number newWidth, number newHeight)
- SetSleepTime(number time)
- SetTorque(number torque)
- SetTransform(Libraries.Compute.Vector2 position, number angle)
- SetTransform(Libraries.Game.Collision.PhysicsPosition2D transform)
- SetTransform0(Libraries.Game.Collision.PhysicsPosition2D transform)
- SetUnmovable()
- SetUpdateTransform(boolean flag)
- SetView2D(Libraries.Interface.Views.View2D content)
- SetWidth(number newWidth)
- SetX(number setX)
- SetY(number setY)
- SetZ(number setZ)
- ShouldCollide(Libraries.Interface.Item2D otherItem)
- Simulate(boolean flag)
- SynchronizeNodes()
- SynchronizeTransform()
- TestPoint(Libraries.Compute.Vector2 point)
- UpdateTransformAngle()
- UpdateTransformX()
- UpdateTransformY()