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 Classes
    Modifier and Type
    Class
    Description
    class 
     

    Nested classes/interfaces inherited from interface com.prineside.tdi2.managers.UiManager.UiComponent

    UiManager.UiComponent.Adapter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    add(CharSequence message, com.badlogic.gdx.scenes.scene2d.utils.Drawable icon, com.badlogic.gdx.graphics.Color backgroundColor, StaticSoundType staticSoundType)
     
    void
    Releases all resources of this object.
    void
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEFAULT_SHOW_DURATION

      public static final float DEFAULT_SHOW_DURATION
      See Also:
  • Constructor Details

    • Notifications

      public Notifications()
  • Method Details

    • i

      public static Notifications 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 interface UiManager.UiComponent
    • preRender

      public void preRender(float deltaTime)
      Specified by:
      preRender in interface UiManager.UiComponent
    • postRender

      public void postRender(float deltaTime)
      Specified by:
      postRender in interface UiManager.UiComponent
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable