TerrainCursorSettings
Package: Libraries.Interface.Controls.Scenes · Inherits from: Libraries.Language.Object
The TerrainCursorSettings class holds how a scene editor marks its terrain cursor, beyond its ring: a beam of light rising from it, crosshair lines through it to the terrain's edges, their color and glow, whether they pulse, and whether the ring blinks like a text cursor (off by default). Quorum Studio keeps one of these in its options and gives it to every scene editor, so a change shows in every scene at once.
Example Code
use Libraries.Interface.Controls.Scenes.TerrainCursorSettings
TerrainCursorSettings settings
settings:SetShowBeam(false)
settings:SetPulse(settings:PULSE_NONE)
Variables
integer PULSE_NONE: a slow swell of the beam's glow the whole time.integer PULSE_BREATHINGinteger PULSE_AFTER_MOVING
Actions
GetBlue()
This action returns the blue part of the marks' color, from 0 to 1.
Returns
number: The blue
GetColorName()
This action returns the marks' color, such as "Magenta".
Returns
text: The color's name
GetColorNames()
This action returns the names of the colors the marks can be, in the order a list of choices shows them.
Returns
Libraries.Containers.Array<text>: The color names
GetCrosshairOpacity()
This action returns how opaque the crosshair's lines are, from 10 to 100.
Returns
integer: The opacity
GetGlowStrength()
This action returns how strong the beam's glow is, from 0 to 100.
Returns
integer: The glow's strength
GetGlowWidth()
This action returns how wide the beam's glow is, from 10 to 80, in screen pixels at the usual zoom.
Returns
integer: The glow's width
GetGreen()
This action returns the green part of the marks' color, from 0 to 1.
Returns
number: The green
GetPulse()
This action returns how the marks pulse: PULSE_NONE, PULSE_AFTER_MOVING or PULSE_BREATHING.
Returns
integer: The pulse
GetPulseName()
This action returns the pulse's name, such as "Breathing", for saving.
Returns
text: The pulse's name
GetPulseNames()
This action returns the names of the pulse choices, in the order of PULSE_NONE, PULSE_AFTER_MOVING and PULSE_BREATHING.
Returns
Libraries.Containers.Array<text>: The pulse names
GetRed()
This action returns the red part of the marks' color, from 0 to 1.
Returns
number: The red
GetTopFade()
This action returns how much the beam fades toward its top, from 0 (not at all) to 100.
Returns
integer: The fade
GetVersion()
This action returns a number that changes whenever a setting does.
Returns
integer: The settings' version
IsBlinking()
This action returns true if the ring around the cursor blinks like a text cursor. It is off by default.
Returns
boolean: True if the ring blinks
IsShowingBeam()
This action returns true if the beam of light shows at the cursor.
Returns
boolean: True if the beam shows
IsShowingCrosshair()
This action returns true if the crosshair lines show through the cursor.
Returns
boolean: True if the crosshair shows
Reset()
This action puts every setting back to its default.
SetBlinking(boolean blink)
This action sets whether the ring around the cursor blinks like a text cursor. Off, the default, it stays solid.
Parameters
blinkboolean: True to blink the ring
SetColorName(text name)
This action sets the marks' color by name. A name that isn't one of GetColorNames is ignored.
Parameters
nametext: The color's name, such as "Magenta"
SetCrosshairOpacity(integer opacity)
This action sets how opaque the crosshair's lines are, from 0 (not seen) to 100.
Parameters
opacityinteger: The opacity
SetGlowStrength(integer strength)
This action sets how strong the beam's glow is, from 0 to 100.
Parameters
strengthinteger: The glow's strength
SetGlowWidth(integer width)
This action sets how wide the beam's glow is, from 10 to 80.
Parameters
widthinteger: The glow's width
SetPulse(integer value)
This action sets how the marks pulse: PULSE_NONE, PULSE_AFTER_MOVING or PULSE_BREATHING. Any other value is ignored.
Parameters
valueinteger: The pulse
SetPulseName(text name)
This action sets the pulse by its name. A name that isn't one of GetPulseNames is ignored.
Parameters
nametext: The pulse's name, such as "Breathing"
SetShowBeam(boolean show)
This action sets whether the beam of light shows at the cursor.
Parameters
showboolean: True to show the beam
SetShowCrosshair(boolean show)
This action sets whether the crosshair lines show through the cursor.
Parameters
showboolean: True to show the crosshair
SetTopFade(integer fade)
This action sets how much the beam fades toward its top, from 0 to 100.
Parameters
fadeinteger: The fade