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
GetCameraLookDownKey()
Turns the 3D camera to look down, while held. Default: Shift+Down.
Returns
GetCameraLookLeftKey()
Turns the 3D camera to look left, while held. Default: Shift+Left.
Returns
GetCameraLookRightKey()
Turns the 3D camera to look right, while held. Default: Shift+Right.
Returns
GetCameraLookUpKey()
Turns the 3D camera to look up, while held. Default: Shift+Up.
Returns
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
GetCameraOrbitLeftKey()
Circles the 3D camera left around what it looks at, while held. Default: Shift+Home (Shift+Fn+Left on a Mac laptop).
Returns
GetCameraOrbitRightKey()
Circles the 3D camera right around what it looks at, while held. Default: Shift+End (Shift+Fn+Right on a Mac laptop).
Returns
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
GetCameraSlideDownKey()
Slides the 3D camera down across its view, while held. Default: Cmd+Shift+Down on Mac, Ctrl+Shift+Down elsewhere.
Returns
GetCameraSlideLeftKey()
Slides the 3D camera left across its view, while held. Default: Cmd+Shift+Left on Mac, Ctrl+Shift+Left elsewhere.
Returns
GetCameraSlideRightKey()
Slides the 3D camera right across its view, while held. Default: Cmd+Shift+Right on Mac, Ctrl+Shift+Right elsewhere.
Returns
GetCameraSlideUpKey()
Slides the 3D camera up across its view, while held. Default: Cmd+Shift+Up on Mac, Ctrl+Shift+Up elsewhere.
Returns
GetCameraZoomInKey()
Moves the 3D camera toward what it looks at, while held. Default: Page Up (Fn+Up on a Mac laptop).
Returns
GetCameraZoomOutKey()
Moves the 3D camera away from what it looks at, while held. Default: Page Down (Fn+Down on a Mac laptop).
Returns
GetCloseFindDialogKey1()
Closes the scene's find box. Default: Escape.
Returns
GetCloseFindDialogKey2()
Closes the scene's find box. Default: Enter.
Returns
GetCursorSelectItemsKey()
Selects the items at the cursor. Default: Enter.
Returns
GetCursorSizeDownKey()
Makes the cursor smaller, or a terrain's brush when a tool is chosen. Default: Alt+-.
Returns
GetCursorSizeUpKey()
Makes the cursor larger, or a terrain's brush when a tool is chosen. Default: Alt+=.
Returns
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
GetFocusPropertiesKey()
Moves into the selection's properties. Default: Cmd+P on Mac, Ctrl+P elsewhere.
Returns
GetIncreaseGridUnitKey()
Makes the grid's squares larger. Default: Cmd+Shift+G on Mac, Ctrl+Shift+G elsewhere.
Returns
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
GetNewItemCancelKey()
Leaves a new item's preview without adding it. Default: Escape.
Returns
GetNewItemConfirmKey()
Adds a new item's preview to the scene. Default: Enter.
Returns
GetOpenFindDialogKey()
Opens the scene's find box. Default: Cmd+F on Mac, Ctrl+F elsewhere.
Returns
GetPropertiesSectionCloseKey()
Closes the Properties panel section the focus is in, and moves the focus to its header. Default: Alt+Shift+Up.
Returns
GetPropertiesSectionOpenKey()
Opens the Properties panel section the focus is in, and moves the focus to its first control. Default: Alt+Shift+Down.
Returns
GetReportCameraDirectionKey()
Says which way the camera faces. Default: Ctrl+Shift+2.
Returns
GetReportItemsInViewKey()
Says which items the camera sees. Default: Ctrl+Shift+3.
Returns
GetReportLocationKey()
Says where the cursor or selection is. Default: Ctrl+Shift+1.
Returns
GetSelectionCancelKey()
Leaves the selection, or a terrain's tool. Default: Escape.
Returns
GetSelectionDeleteKey()
Deletes the selection. Default: Forward Delete.
Returns
GetSelectionDeleteKey2()
Deletes the selection. Default: Backspace.
Returns
GetSelectionMoveBackward3DKey()
Moves the 3D cursor or selection backward. Default: Down.
Returns
GetSelectionMoveDown2DKey()
Moves the 2D cursor or selection down. Default: Down.
Returns
GetSelectionMoveDown3DKey()
Moves the 3D cursor or selection down. Default: Cmd+Down on Mac, Ctrl+Down elsewhere.
Returns
GetSelectionMoveForward3DKey()
Moves the 3D cursor or selection forward. Default: Up.
Returns
GetSelectionMoveLeft2DKey()
Moves the 2D cursor or selection left. Default: Left.
Returns
GetSelectionMoveLeft3DKey()
Moves the 3D cursor or selection left. Default: Left.
Returns
GetSelectionMoveRight2DKey()
Moves the 2D cursor or selection right. Default: Right.
Returns
GetSelectionMoveRight3DKey()
Moves the 3D cursor or selection right. Default: Right.
Returns
GetSelectionMoveUp2DKey()
Moves the 2D cursor or selection up. Default: Up.
Returns
GetSelectionMoveUp3DKey()
Moves the 3D cursor or selection up. Default: Cmd+Up on Mac, Ctrl+Up elsewhere.
Returns
GetSelectionResetScaleKey()
Sets the selection's scale back to 1. Default: Cmd+R on Mac, Ctrl+R elsewhere.
Returns
GetSelectionRotateBackward2DKey()
Turns the 2D selection the other way. Default: Alt+Left.
Returns
GetSelectionRotateForward2DKey()
Turns the 2D selection one way. Default: Alt+Right.
Returns
GetSelectionRotatePitchDownKey()
Tips the 3D selection down. Default: Alt+Down.
Returns
GetSelectionRotatePitchUpKey()
Tips the 3D selection up. Default: Alt+Up.
Returns
GetSelectionRotateRollLeftKey()
Rolls the 3D selection left. Default: Cmd+Alt+Left on Mac, Ctrl+Alt+Left elsewhere.
Returns
GetSelectionRotateRollRightKey()
Rolls the 3D selection right. Default: Cmd+Alt+Right on Mac, Ctrl+Alt+Right elsewhere.
Returns
GetSelectionRotateYawLeftKey()
Turns the 3D selection left. Default: Alt+Left.
Returns
GetSelectionRotateYawRightKey()
Turns the 3D selection right. Default: Alt+Right.
Returns
GetSelectionScaleDownKey()
Makes the selection smaller. Default: Alt+-.
Returns
GetSelectionScaleUpKey()
Makes the selection larger. Default: Alt+=.
Returns
GetSelectionScaleXDownKey()
Shrinks the selection along x. Default: Alt+A.
Returns
GetSelectionScaleXUpKey()
Stretches the selection along x. Default: Alt+D.
Returns
GetSelectionScaleYDownKey()
Shrinks the selection along y. Default: Alt+X.
Returns
GetSelectionScaleYUpKey()
Stretches the selection along y. Default: Alt+Space.
Returns
GetSelectionScaleZDownKey()
Shrinks the selection along z. Default: Alt+S.
Returns
GetSelectionScaleZUpKey()
Stretches the selection along z. Default: Alt+W.
Returns
GetTerrainBrushUseKey()
Uses a terrain's brush, while held. Default: Space.
Returns
GetTerrainNextLayerKey()
Paints the next of a terrain's ground layers. Default: Alt+L.
Returns
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
GetTerrainStrengthDownKey()
Makes a terrain's brush weaker. Default: Alt+[.
Returns
GetTerrainStrengthUpKey()
Makes a terrain's brush stronger. Default: Alt+].
Returns
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
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
toolinteger: 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
GetUnfocusPropertiesKey1()
Leaves the properties, back to the scene. Default: Escape.
Returns
GetUnfocusPropertiesKey2()
Leaves the properties, back to the scene. Default: Enter.
Returns
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
GetViewPreviousItemKey()
On a view cue, steps to the item in view before, right to left. Default: Shift+Tab.
Returns
Plain(integer key)
Returns a key with no modifiers.
Parameters
keyinteger
Returns
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
keyinteger
Returns
WithModifiers(integer key, boolean meta, boolean control, boolean alt, boolean shift)
Returns a key with the modifiers asked for.
Parameters
keyintegermetabooleancontrolbooleanaltbooleanshiftboolean
Returns