Skip to main content

TouchScreen

A Screen, but can handle player mouse input. This is to be used with programming.

It is a craftable and spawnable non-flammable solid.

Here is a list of possible sizes that reach the maximum malleability (400) that have integer components: 1x400x1, 1x200x2, 1x100x4, 1x80x5, 1x50x8, 1x40x10, 1x25x16, 1x20x20, 2x100x2, 2x50x4, 2x40x5, 2x25x8, 2x20x10, 4x25x4, 4x20x5, 4x10x10, 5x16x5, 5x10x8, 10x8x5, 16x5x5, 20x10x2, 20x5x4

At its default size (8x1x8) it has a durability of 1, at its maximum size it has a durability of 2.

By default, its colour is #111111.

It requires 4 Copper, 2 Iron, 1 Screen, 3 Silicon, and 1 TouchSensor to be crafted.

Methods


GetCursor(username) → cursor

Gets the specified player's cursor.

The username parameter is the username of the player's cursor you want to get. It is a string.

The cursor return is a Cursor.


GetCursors() → cursors

Gets a dictionary of player usernames to their cursors if their cursors are on the screen.

The cursors return is a dictionary of player usernames to their cursors. It is a dictionary with keys that are strings and values that are Cursors.

Configurables


VideoID

The ID of the camera feed being to be viewed, or 0 for none. It is a number. It ranges between 0 and 10000000000. It increments by 1.

Events


Configured(configurerId)

Fires when the object is configured.

The configurerId parameter is the UserId of the player who configured the object. It is a number.


CursorMoved


CursorPressed


CursorReleased