Package com.prineside.tdi2.ui.shared
Class Notifications
java.lang.Object
com.prineside.tdi2.scene2d.Actor
com.prineside.tdi2.scene2d.Group
com.prineside.tdi2.ui.shared.Notifications
- All Implemented Interfaces:
Disposable
,UiManager.UiComponent
,Cullable
Уведомление плавно выезжает сверху и становится непрозрачным
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.prineside.tdi2.managers.UiManager.UiComponent
UiManager.UiComponent.Adapter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
static final float
static final float
static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(CharSequence message, Drawable icon, Color backgroundColor, StaticSoundType staticSoundType) addFailure
(CharSequence message) addForDuration
(CharSequence message, Drawable icon, Color backgroundColor, StaticSoundType staticSoundType, float showDuration) addInfo
(CharSequence message) addSuccess
(CharSequence message) addWithContents
(Table contents, Drawable icon, Color backgroundColor, StaticSoundType staticSoundType, float showDuration) void
dispose()
Releases all resources of this object.void
hide()
void
static Notifications
i()
boolean
If true, won't be hidden by hideAllComponents() - useful for debug overlaysvoid
postRender
(float deltaTime) void
preRender
(float deltaTime) Methods inherited from class com.prineside.tdi2.scene2d.Group
act, addActor, addActorAfter, addActorAt, addActorBefore, clear, clear, clearChildren, clearChildren, debugAll, draw, drawDebug, findActor, getChild, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, removeActorAt, setCullingArea, setDebug, setTransform, swapActor, swapActor, toString
Methods inherited from class com.prineside.tdi2.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, 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, remove, removeAction, removeCaptureListener, removeListener, rotateBy, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
-
Field Details
-
DEFAULT_SHOW_DURATION
public static final float DEFAULT_SHOW_DURATION- See Also:
-
CONTENT_WIDTH
public static final float CONTENT_WIDTH- See Also:
-
CONTENT_MARGIN_LEFT
public static final float CONTENT_MARGIN_LEFT- See Also:
-
CONTENT_MARGIN_BOTTOM
public static final float CONTENT_MARGIN_BOTTOM- See Also:
-
-
Constructor Details
-
Notifications
public Notifications()
-
-
Method Details
-
i
-
addWithContents
public Notifications.Notification addWithContents(Table contents, Drawable icon, Color backgroundColor, StaticSoundType staticSoundType, float showDuration) -
addInfo
-
add
public Notifications.Notification add(CharSequence message, Drawable icon, Color backgroundColor, StaticSoundType staticSoundType) -
addFailure
-
addSuccess
-
addForDuration
public Notifications.Notification addForDuration(CharSequence message, Drawable icon, Color backgroundColor, StaticSoundType staticSoundType, float showDuration) - Parameters:
backgroundColor
- может быть null
-
hideNotification
-
hide
public void hide()- Specified by:
hide
in interfaceUiManager.UiComponent
-
isPersistent
public boolean isPersistent()Description copied from interface:UiManager.UiComponent
If true, won't be hidden by hideAllComponents() - useful for debug overlays- Specified by:
isPersistent
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 interfaceDisposable
-