Package com.prineside.tdi2.ui.shared
Class Notifications
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.Group
com.prineside.tdi2.ui.shared.Notifications
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable
,com.badlogic.gdx.utils.Disposable
,UiManager.UiComponent
public class Notifications
extends com.badlogic.gdx.scenes.scene2d.Group
implements UiManager.UiComponent
Уведомление плавно выезжает сверху и становится непрозрачным
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.prineside.tdi2.managers.UiManager.UiComponent
UiManager.UiComponent.Adapter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(CharSequence message, com.badlogic.gdx.scenes.scene2d.utils.Drawable icon, com.badlogic.gdx.graphics.Color backgroundColor, StaticSoundType staticSoundType) void
dispose()
Releases all resources of this object.void
hide()
static Notifications
i()
void
postRender
(float deltaTime) void
preRender
(float deltaTime) Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group
act, addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, childrenChanged, clear, clear, clearChildren, clearChildren, computeTransform, debugAll, draw, drawChildren, drawDebug, drawDebugChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, sizeChanged, stageToLocalCoordinates, toBack, toFront
-
Field Details
-
DEFAULT_SHOW_DURATION
public static final float DEFAULT_SHOW_DURATION- See Also:
-
-
Constructor Details
-
Notifications
public Notifications()
-
-
Method Details
-
i
-
add
public Notifications.Notification add(CharSequence message, com.badlogic.gdx.scenes.scene2d.utils.Drawable icon, com.badlogic.gdx.graphics.Color backgroundColor, StaticSoundType staticSoundType) - Parameters:
backgroundColor
- может быть null
-
hide
public void hide()- Specified by:
hide
in interfaceUiManager.UiComponent
-
preRender
public void preRender(float deltaTime) - Specified by:
preRender
in interfaceUiManager.UiComponent
-
postRender
public void postRender(float deltaTime) - Specified by:
postRender
in interfaceUiManager.UiComponent
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-