SceneViewCue

Package: Libraries.Interface.Controls.Scenes.Items · Inherits from: Libraries.Interface.Item3D, Libraries.Interface.Item, Libraries.Language.Object

A SceneViewCue is one of two invisible items the scene editor gives the focus to after the camera moves, so a screen reader reads what the camera sees: the cue's name is that sentence, and its box on the screen is the item it is about (or a spot straight ahead), so the screen reader's outline shows it. The two take turns, so each move is a new focus change, even when the sentence is the same. Escape, Tab or Shift+Tab gives the focus back to where it was before the camera moved.

Example Code

use Libraries.Interface.Controls.Scenes.Items.SceneViewCue

SceneViewCue cue
cue:SetName("Car, 12 meters. North-east, down 20. Tree, Rock, 5 in view.")

Actions

GetReturnItem()

Returns where the focus goes back to.

Returns

Libraries.Interface.Item: The item, or undefined

GetSceneEditor()

Returns the scene editor this cue belongs to.

Returns

Libraries.Interface.Controls.Scenes.SceneEditor: The scene editor, or undefined

GetScreenBounds()

Returns the screen reader's outline: the target's box when it shows, else the cue's own small box, which the editor puts straight ahead of the camera.

Returns

Libraries.Game.Shapes.Rectangle: The rectangle, or undefined if none of it shows.

SetReturnItem(Libraries.Interface.Item item)

Sets where the focus goes back to, and makes Tab and Shift+Tab go there too.

Parameters

SetSceneEditor(Libraries.Interface.Controls.Scenes.SceneEditor sceneEditor)

Sets the scene editor this cue belongs to.

Parameters

SetTarget(Libraries.Interface.Item3D item)

Sets the item the sentence is about, whose box the screen reader outlines, or undefined for none.

Parameters

Inherited Actions

64 actions from Libraries.Interface.Item
215 actions from Libraries.Interface.Item3D
3 actions from Libraries.Language.Object