SceneEditorKeys

Package: Libraries.Interface · Inherits from: Libraries.Language.Object

The SceneEditorKeys class gives the keys the scene editor uses, one action per key. DefaultInputSets:SetupSceneEditorInput builds the scene editor's input tables from them. Each action returns the default key, for Mac or for Windows and Linux. A program that lets people change their keys, such as Quorum Studio, inherits from this class and returns its own keys, then calls Game:ReplaceSceneEditorInput. Each action returns a new InputSet, which the caller may change, such as by setting its trigger.

Example Code

use Libraries.Game.Game
use Libraries.Interface.SceneEditorKeys

class Main is Game
    action Main
        StartGame()
    end

    action CreateGame
        SceneEditorKeys keys
        ReplaceSceneEditorInput(keys)
    end
end

Actions

GetCameraFocusKey()

Points the camera at the selection. Default: Alt+F.

Returns

Libraries.Game.InputSet

GetCameraLookDownKey()

Turns the 3D camera to look down, while held. Default: Shift+Down.

Returns

Libraries.Game.InputSet

GetCameraLookLeftKey()

Turns the 3D camera to look left, while held. Default: Shift+Left.

Returns

Libraries.Game.InputSet

GetCameraLookRightKey()

Turns the 3D camera to look right, while held. Default: Shift+Right.

Returns

Libraries.Game.InputSet

GetCameraLookUpKey()

Turns the 3D camera to look up, while held. Default: Shift+Up.

Returns

Libraries.Game.InputSet

GetCameraOrbitDownKey()

Circles the 3D camera down under what it looks at, while held. Default: Shift+Page Down (Shift+Fn+Down on a Mac laptop).

Returns

Libraries.Game.InputSet

GetCameraOrbitLeftKey()

Circles the 3D camera left around what it looks at, while held. Default: Shift+Home (Shift+Fn+Left on a Mac laptop).

Returns

Libraries.Game.InputSet

GetCameraOrbitRightKey()

Circles the 3D camera right around what it looks at, while held. Default: Shift+End (Shift+Fn+Right on a Mac laptop).

Returns

Libraries.Game.InputSet

GetCameraOrbitUpKey()

Circles the 3D camera up over what it looks at, while held. Default: Shift+Page Up (Shift+Fn+Up on a Mac laptop).

Returns

Libraries.Game.InputSet

GetCameraSlideDownKey()

Slides the 3D camera down across its view, while held. Default: Cmd+Shift+Down on Mac, Ctrl+Shift+Down elsewhere.

Returns

Libraries.Game.InputSet

GetCameraSlideLeftKey()

Slides the 3D camera left across its view, while held. Default: Cmd+Shift+Left on Mac, Ctrl+Shift+Left elsewhere.

Returns

Libraries.Game.InputSet

GetCameraSlideRightKey()

Slides the 3D camera right across its view, while held. Default: Cmd+Shift+Right on Mac, Ctrl+Shift+Right elsewhere.

Returns

Libraries.Game.InputSet

GetCameraSlideUpKey()

Slides the 3D camera up across its view, while held. Default: Cmd+Shift+Up on Mac, Ctrl+Shift+Up elsewhere.

Returns

Libraries.Game.InputSet

GetCameraZoomInKey()

Moves the 3D camera toward what it looks at, while held. Default: Page Up (Fn+Up on a Mac laptop).

Returns

Libraries.Game.InputSet

GetCameraZoomOutKey()

Moves the 3D camera away from what it looks at, while held. Default: Page Down (Fn+Down on a Mac laptop).

Returns

Libraries.Game.InputSet

GetCloseFindDialogKey1()

Closes the scene's find box. Default: Escape.

Returns

Libraries.Game.InputSet

GetCloseFindDialogKey2()

Closes the scene's find box. Default: Enter.

Returns

Libraries.Game.InputSet

GetCursorSelectItemsKey()

Selects the items at the cursor. Default: Enter.

Returns

Libraries.Game.InputSet

GetCursorSizeDownKey()

Makes the cursor smaller, or a terrain's brush when a tool is chosen. Default: Alt+-.

Returns

Libraries.Game.InputSet

GetCursorSizeUpKey()

Makes the cursor larger, or a terrain's brush when a tool is chosen. Default: Alt+=.

Returns

Libraries.Game.InputSet

GetDecreaseGridUnitKey()

Makes the grid's squares smaller. Default: Cmd+Ctrl+G on Mac (other apps, such as Google Drive, often take Cmd+Alt+G for the whole system), Ctrl+Alt+G elsewhere.

Returns

Libraries.Game.InputSet

GetFocusPropertiesKey()

Moves into the selection's properties. Default: Cmd+P on Mac, Ctrl+P elsewhere.

Returns

Libraries.Game.InputSet

GetIncreaseGridUnitKey()

Makes the grid's squares larger. Default: Cmd+Shift+G on Mac, Ctrl+Shift+G elsewhere.

Returns

Libraries.Game.InputSet

GetItemDropToGroundKey()

Drops the focused item, or a new item's preview, onto the terrain under the middle of its base, once. Default: Shift+Alt+B (Shift+Option+B on a Mac). Cmd/Ctrl+B is Studio's Build.

Returns

Libraries.Game.InputSet

GetNewItemCancelKey()

Leaves a new item's preview without adding it. Default: Escape.

Returns

Libraries.Game.InputSet

GetNewItemConfirmKey()

Adds a new item's preview to the scene. Default: Enter.

Returns

Libraries.Game.InputSet

GetOpenFindDialogKey()

Opens the scene's find box. Default: Cmd+F on Mac, Ctrl+F elsewhere.

Returns

Libraries.Game.InputSet

GetPropertiesSectionCloseKey()

Closes the Properties panel section the focus is in, and moves the focus to its header. Default: Alt+Shift+Up.

Returns

Libraries.Game.InputSet

GetPropertiesSectionOpenKey()

Opens the Properties panel section the focus is in, and moves the focus to its first control. Default: Alt+Shift+Down.

Returns

Libraries.Game.InputSet

GetReportCameraDirectionKey()

Says which way the camera faces. Default: Ctrl+Shift+2.

Returns

Libraries.Game.InputSet

GetReportItemsInViewKey()

Says which items the camera sees. Default: Ctrl+Shift+3.

Returns

Libraries.Game.InputSet

GetReportLocationKey()

Says where the cursor or selection is. Default: Ctrl+Shift+1.

Returns

Libraries.Game.InputSet

GetSelectionCancelKey()

Leaves the selection, or a terrain's tool. Default: Escape.

Returns

Libraries.Game.InputSet

GetSelectionDeleteKey()

Deletes the selection. Default: Forward Delete.

Returns

Libraries.Game.InputSet

GetSelectionDeleteKey2()

Deletes the selection. Default: Backspace.

Returns

Libraries.Game.InputSet

GetSelectionMoveBackward3DKey()

Moves the 3D cursor or selection backward. Default: Down.

Returns

Libraries.Game.InputSet

GetSelectionMoveDown2DKey()

Moves the 2D cursor or selection down. Default: Down.

Returns

Libraries.Game.InputSet

GetSelectionMoveDown3DKey()

Moves the 3D cursor or selection down. Default: Cmd+Down on Mac, Ctrl+Down elsewhere.

Returns

Libraries.Game.InputSet

GetSelectionMoveForward3DKey()

Moves the 3D cursor or selection forward. Default: Up.

Returns

Libraries.Game.InputSet

GetSelectionMoveLeft2DKey()

Moves the 2D cursor or selection left. Default: Left.

Returns

Libraries.Game.InputSet

GetSelectionMoveLeft3DKey()

Moves the 3D cursor or selection left. Default: Left.

Returns

Libraries.Game.InputSet

GetSelectionMoveRight2DKey()

Moves the 2D cursor or selection right. Default: Right.

Returns

Libraries.Game.InputSet

GetSelectionMoveRight3DKey()

Moves the 3D cursor or selection right. Default: Right.

Returns

Libraries.Game.InputSet

GetSelectionMoveUp2DKey()

Moves the 2D cursor or selection up. Default: Up.

Returns

Libraries.Game.InputSet

GetSelectionMoveUp3DKey()

Moves the 3D cursor or selection up. Default: Cmd+Up on Mac, Ctrl+Up elsewhere.

Returns

Libraries.Game.InputSet

GetSelectionResetScaleKey()

Sets the selection's scale back to 1. Default: Cmd+R on Mac, Ctrl+R elsewhere.

Returns

Libraries.Game.InputSet

GetSelectionRotateBackward2DKey()

Turns the 2D selection the other way. Default: Alt+Left.

Returns

Libraries.Game.InputSet

GetSelectionRotateForward2DKey()

Turns the 2D selection one way. Default: Alt+Right.

Returns

Libraries.Game.InputSet

GetSelectionRotatePitchDownKey()

Tips the 3D selection down. Default: Alt+Down.

Returns

Libraries.Game.InputSet

GetSelectionRotatePitchUpKey()

Tips the 3D selection up. Default: Alt+Up.

Returns

Libraries.Game.InputSet

GetSelectionRotateRollLeftKey()

Rolls the 3D selection left. Default: Cmd+Alt+Left on Mac, Ctrl+Alt+Left elsewhere.

Returns

Libraries.Game.InputSet

GetSelectionRotateRollRightKey()

Rolls the 3D selection right. Default: Cmd+Alt+Right on Mac, Ctrl+Alt+Right elsewhere.

Returns

Libraries.Game.InputSet

GetSelectionRotateYawLeftKey()

Turns the 3D selection left. Default: Alt+Left.

Returns

Libraries.Game.InputSet

GetSelectionRotateYawRightKey()

Turns the 3D selection right. Default: Alt+Right.

Returns

Libraries.Game.InputSet

GetSelectionScaleDownKey()

Makes the selection smaller. Default: Alt+-.

Returns

Libraries.Game.InputSet

GetSelectionScaleUpKey()

Makes the selection larger. Default: Alt+=.

Returns

Libraries.Game.InputSet

GetSelectionScaleXDownKey()

Shrinks the selection along x. Default: Alt+A.

Returns

Libraries.Game.InputSet

GetSelectionScaleXUpKey()

Stretches the selection along x. Default: Alt+D.

Returns

Libraries.Game.InputSet

GetSelectionScaleYDownKey()

Shrinks the selection along y. Default: Alt+X.

Returns

Libraries.Game.InputSet

GetSelectionScaleYUpKey()

Stretches the selection along y. Default: Alt+Space.

Returns

Libraries.Game.InputSet

GetSelectionScaleZDownKey()

Shrinks the selection along z. Default: Alt+S.

Returns

Libraries.Game.InputSet

GetSelectionScaleZUpKey()

Stretches the selection along z. Default: Alt+W.

Returns

Libraries.Game.InputSet

GetTerrainBrushUseKey()

Uses a terrain's brush, while held. Default: Space.

Returns

Libraries.Game.InputSet

GetTerrainNextLayerKey()

Paints the next of a terrain's ground layers. Default: Alt+L.

Returns

Libraries.Game.InputSet

GetTerrainRampPointKey()

Sets the next end of a terrain's ramp at the brush: its start, then its end. Default: Alt+G, for grade. Alt+R is Studio's Run menu.

Returns

Libraries.Game.InputSet

GetTerrainStrengthDownKey()

Makes a terrain's brush weaker. Default: Alt+[.

Returns

Libraries.Game.InputSet

GetTerrainStrengthUpKey()

Makes a terrain's brush stronger. Default: Alt+].

Returns

Libraries.Game.InputSet

GetTerrainTakeHeightKey()

Takes the ground's height under a terrain's brush as the height flatten evens to. Default: Alt+M, for match. Alt+T is Studio's Team menu.

Returns

Libraries.Game.InputSet

GetTerrainToolKey(integer tool)

Chooses one of a terrain's tools, when a terrain is selected. The tools are numbered as in the in-game terrain editor: 1 raise, 2 lower, 3 smooth, 4 flatten, 5 ramp, 6 paint, 7 blend paint, 8 add region, 9 remove region; then the scene editor's own: 10 stamp, 11 erode, 12 auto paint, 13 foliage, 14 fill water and 15 paint water, and 16 river. Default: Alt+1 to Alt+9, then Shift+Alt+1 to Shift+Alt+7.

Parameters

  • tool integer: The tool's number, from 1 to 16.

Returns

Libraries.Game.InputSet: The key that chooses it.

GetToggleGridKey()

Turns the grid on or off. Default: Cmd+G on Mac, Ctrl+G elsewhere.

Returns

Libraries.Game.InputSet

GetUnfocusPropertiesKey1()

Leaves the properties, back to the scene. Default: Escape.

Returns

Libraries.Game.InputSet

GetUnfocusPropertiesKey2()

Leaves the properties, back to the scene. Default: Enter.

Returns

Libraries.Game.InputSet

GetViewNextItemKey()

On a view cue (what a screen reader reads after the camera or the arrow keys move), steps to the next item in view, left to right. Default: Tab.

Returns

Libraries.Game.InputSet

GetViewPreviousItemKey()

On a view cue, steps to the item in view before, right to left. Default: Shift+Tab.

Returns

Libraries.Game.InputSet

Plain(integer key)

Returns a key with no modifiers.

Parameters

  • key integer

Returns

Libraries.Game.InputSet

ShouldUseMacKeys()

Returns true for Mac keys, as DefaultInputSets decides it: on a Mac, or in a web browser on a Mac.

Returns

boolean

WithCommand(integer key)

Returns a key with the platform's command modifier: Cmd on Mac, and Ctrl elsewhere.

Parameters

  • key integer

Returns

Libraries.Game.InputSet

WithModifiers(integer key, boolean meta, boolean control, boolean alt, boolean shift)

Returns a key with the modifiers asked for.

Parameters

  • key integer
  • meta boolean
  • control boolean
  • alt boolean
  • shift boolean

Returns

Libraries.Game.InputSet

Inherited Actions

3 actions from Libraries.Language.Object