Package group24.escaperoom.screens
Class ItemEditor
java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.scenes.scene2d.Stage
group24.escaperoom.screens.AbstractScreen
group24.escaperoom.screens.ItemEditor
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor,com.badlogic.gdx.Screen,com.badlogic.gdx.utils.Disposable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.Stage
com.badlogic.gdx.scenes.scene2d.Stage.TouchFocus -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.badlogic.gdx.graphics.g2d.Batchstatic ItemEditorFields inherited from class group24.escaperoom.screens.AbstractScreen
fillView, followActor, inputPlex, SCREEN_HEIGHT, SCREEN_WIDTH, skin, spriteBatch, sprites, WORLD_HEIGHT, WORLD_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidact(float delta) voiddispose()voiddraw()voidEnsures that the propertyParameters field of this item'sObjectTypeDatais filledstatic ItemEditorget()com.badlogic.gdx.scenes.scene2d.utils.DragAndDropvoidbooleanbooleanvoidrepack()Repack the root UI elements in the editorvoidvoidresize(int width, int height) voidvoidsaveItem()Save the editing item to this maps custom object foldervoidUpdate the position of the item in the editor.Methods inherited from class group24.escaperoom.screens.AbstractScreen
addInputProcessor, addPollable, addSprite, addUI, gameCoordToUI, getNotificationOverlay, getUIStage, hide, init, pause, removePollable, render, resume, show, UIcoordToGameMethods inherited from class com.badlogic.gdx.scenes.scene2d.Stage
act, actorRemoved, addAction, addActor, addCaptureListener, addListener, addTouchFocus, calculateScissors, cancelTouchFocus, cancelTouchFocus, cancelTouchFocusExcept, clear, getActionsRequestRendering, getActors, getBatch, getCamera, getDebugColor, getHeight, getKeyboardFocus, getRoot, getScrollFocus, getViewport, getWidth, hit, isDebugAll, isInsideViewport, keyDown, keyTyped, keyUp, mouseMoved, removeCaptureListener, removeListener, removeTouchFocus, screenToStageCoordinates, scrolled, setActionsRequestRendering, setDebugAll, setDebugInvisible, setDebugParentUnderMouse, setDebugTableUnderMouse, setDebugTableUnderMouse, setDebugUnderMouse, setKeyboardFocus, setRoot, setScrollFocus, setViewport, stageToScreenCoordinates, toScreenCoordinates, touchCancelled, touchDown, touchDragged, touchUp, unfocus, unfocusAll
-
Field Details
-
batch
protected final com.badlogic.gdx.graphics.g2d.Batch batch -
itemMenu
-
itemSidebar
-
screen
-
-
Constructor Details
-
ItemEditor
-
-
Method Details
-
getNewItem
-
getDragAndDrop
public com.badlogic.gdx.scenes.scene2d.utils.DragAndDrop getDragAndDrop() -
get
-
markModified
public void markModified() -
mouseCollidesMenu
public boolean mouseCollidesMenu() -
repack
public void repack()Repack the root UI elements in the editor -
resetItem
public void resetItem() -
getMapData
-
returnToEditor
public void returnToEditor() -
updateItemPosition
public void updateItemPosition()Update the position of the item in the editor. This should be called anytime the item's size is changed -
fillPropertyParams
public void fillPropertyParams()Ensures that the propertyParameters field of this item'sObjectTypeDatais filled -
modifyingItem
public boolean modifyingItem() -
saveItem
public void saveItem()Save the editing item to this maps custom object folder -
draw
public void draw()- Overrides:
drawin classcom.badlogic.gdx.scenes.scene2d.Stage
-
act
public void act(float delta) - Overrides:
actin classAbstractScreen
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Specified by:
disposein interfacecom.badlogic.gdx.Screen- Overrides:
disposein classAbstractScreen
-
resize
public void resize(int width, int height) - Specified by:
resizein interfacecom.badlogic.gdx.Screen- Overrides:
resizein classAbstractScreen
-