| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinished()
True if the effect has completed and should be removed from the
UiElement |
void |
postEnd(UiElement element)
Called after the effect ends
|
void |
postRender(org.mini2Dx.core.graphics.Graphics g)
Called after rendering the
UiElement |
void |
preBegin(UiElement element)
Called before the effect begins
|
void |
preRender(org.mini2Dx.core.graphics.Graphics g)
Called before rendering the
UiElement |
boolean |
update(UiContainerRenderTree uiContainer,
org.mini2Dx.core.engine.geom.CollisionBox currentArea,
org.mini2Dx.core.geom.Rectangle targetArea,
float delta)
Updates the effect
|
void preBegin(UiElement element)
element - The UiElement the effect is applied tovoid postEnd(UiElement element)
element - The UiElement the effect was applied toboolean update(UiContainerRenderTree uiContainer, org.mini2Dx.core.engine.geom.CollisionBox currentArea, org.mini2Dx.core.geom.Rectangle targetArea, float delta)
uiContainer - The UiContainerRenderTree the UiElement
belongs tocurrentArea - The current area that the UiElement is set to render
in. Manipulate this to change where the element renders.targetArea - The target area that the UiElement is set to render in
as specified by the render tree and layout.delta - The frame deltaUiElement should be renderedvoid preRender(org.mini2Dx.core.graphics.Graphics g)
UiElementg - The Graphics contextvoid postRender(org.mini2Dx.core.graphics.Graphics g)
UiElementg - The Graphics contextboolean isFinished()
UiElement