Class AreaSelector
java.lang.Object
group24.escaperoom.ui.editorTools.EditorTool
group24.escaperoom.ui.editorTools.SelectionTool
group24.escaperoom.ui.editorTools.AreaSelector
- All Implemented Interfaces:
Drawable
A tool to select areas
-
Nested Class Summary
Nested classes/interfaces inherited from class group24.escaperoom.ui.editorTools.SelectionTool
SelectionTool.Selection -
Field Summary
Fields inherited from class group24.escaperoom.ui.editorTools.SelectionTool
selecting, selection -
Constructor Summary
ConstructorsConstructorDescriptionAreaSelector(LevelEditorScreen editor, com.badlogic.gdx.math.Rectangle region) -
Method Summary
Methods inherited from class group24.escaperoom.ui.editorTools.SelectionTool
draw, getSelection, getSelectionArea, getTileDepth, getType, position, renderPriority, select, startSelectionMethods inherited from class group24.escaperoom.ui.editorTools.EditorTool
getButtonStyle, getEditor
-
Constructor Details
-
AreaSelector
- Parameters:
editor- theLevelEditorScreenthat this selector will operate onregion- the mutable region that this selector will mutate
-
-
Method Details
-
getArea
public com.badlogic.gdx.math.Rectangle getArea()- Returns:
- the actively selected region
-
setRegion
public void setRegion(com.badlogic.gdx.math.Rectangle region) Set the region which is being operated on- Parameters:
region- new value
-
getName
- Overrides:
getNamein classSelectionTool
-
endSelection
public void endSelection()Description copied from class:SelectionToolEnd the logical selection- Overrides:
endSelectionin classSelectionTool
-
cancel
public void cancel()Description copied from class:EditorToolCalled when the user presses Escape while this is the active tool- Overrides:
cancelin classSelectionTool
-