Package | Description |
---|---|
com.badlogic.gdx.scenes.scene2d | |
com.badlogic.gdx.scenes.scene2d.actions | |
com.badlogic.gdx.scenes.scene2d.ui |
Modifier and Type | Method and Description |
---|---|
Array<Action> |
Actor.getActions() |
Modifier and Type | Method and Description |
---|---|
void |
Actor.addAction(Action action) |
void |
Stage.addAction(Action action)
Adds an action to the root of the stage.
|
void |
Actor.removeAction(Action action) |
Modifier and Type | Class and Description |
---|---|
class |
AddAction
Adds an action to an actor.
|
class |
AddListenerAction
Adds a listener to an actor.
|
class |
AfterAction
Executes an action only after all other actions on the actor at the time this action's target was set have finished.
|
class |
AlphaAction
Sets the alpha for an actor's color (or a specified color), from the current alpha to the new alpha.
|
class |
ColorAction
Sets the actor's color (or a specified color), from the current to the new color.
|
class |
CountdownEventAction<T extends Event>
An EventAction that is complete once it receives X number of events.
|
class |
DelayAction
Delays execution of an action or inserts a pause in a
SequenceAction . |
class |
DelegateAction
Base class for an action that wraps another action.
|
class |
EventAction<T extends Event>
Adds a listener to the actor for a specific event type and does not complete until
EventAction.handle(Event) returns true. |
class |
FloatAction
An action that has a float, whose value is transitioned over time.
|
class |
IntAction
An action that has an int, whose value is transitioned over time.
|
class |
LayoutAction
Sets an actor's
layout to enabled or disabled. |
class |
MoveByAction
Moves an actor to a relative position.
|
class |
MoveToAction
Moves an actor from its current position to a specific position.
|
class |
ParallelAction
Executes a number of actions at the same time.
|
class |
RelativeTemporalAction
Base class for actions that transition over time using the percent complete since the last frame.
|
class |
RemoveAction
Removes an action from an actor.
|
class |
RemoveActorAction
Removes an actor from the stage.
|
class |
RemoveListenerAction
Removes a listener from an actor.
|
class |
RepeatAction
Repeats an action a number of times or forever.
|
class |
RotateByAction
Sets the actor's rotation from its current value to a relative value.
|
class |
RotateToAction
Sets the actor's rotation from its current value to a specific value.
|
class |
RunnableAction
An action that runs a
Runnable . |
class |
ScaleByAction
Scales an actor's scale to a relative size.
|
class |
ScaleToAction
Sets the actor's scale from its current value to a specific value.
|
class |
SequenceAction
Executes a number of actions one at a time.
|
class |
SizeByAction
Moves an actor from its current size to a relative size.
|
class |
SizeToAction
Moves an actor from its current size to a specific size.
|
class |
TemporalAction
Base class for actions that transition over time using the percent complete.
|
class |
TimeScaleAction
Multiplies the delta of an action.
|
class |
TouchableAction
Sets the actor's
touchability . |
class |
VisibleAction
Sets the actor's
visibility . |
Modifier and Type | Field and Description |
---|---|
protected Action |
DelegateAction.action |
Modifier and Type | Method and Description |
---|---|
static <T extends Action> |
Actions.action(java.lang.Class<T> type)
Returns a new or pooled action of the specified type.
|
Modifier and Type | Method and Description |
---|---|
Action |
AddAction.getAction() |
Action |
DelegateAction.getAction() |
Action |
RemoveAction.getAction() |
static Action |
Actions.targeting(Actor target,
Action action)
Sets the target of an action and returns the action.
|
Modifier and Type | Method and Description |
---|---|
Array<Action> |
ParallelAction.getActions() |
Modifier and Type | Method and Description |
---|---|
static AddAction |
Actions.addAction(Action action) |
void |
ParallelAction.addAction(Action action) |
static AddAction |
Actions.addAction(Action action,
Actor targetActor) |
static AfterAction |
Actions.after(Action action) |
static DelayAction |
Actions.delay(float duration,
Action delayedAction) |
static RepeatAction |
Actions.forever(Action repeatedAction) |
static ParallelAction |
Actions.parallel(Action... actions) |
static ParallelAction |
Actions.parallel(Action action1) |
static ParallelAction |
Actions.parallel(Action action1,
Action action2) |
static ParallelAction |
Actions.parallel(Action action1,
Action action2,
Action action3) |
static ParallelAction |
Actions.parallel(Action action1,
Action action2,
Action action3,
Action action4) |
static ParallelAction |
Actions.parallel(Action action1,
Action action2,
Action action3,
Action action4,
Action action5) |
static RemoveAction |
Actions.removeAction(Action action) |
static RemoveAction |
Actions.removeAction(Action action,
Actor targetActor) |
static RepeatAction |
Actions.repeat(int count,
Action repeatedAction) |
static SequenceAction |
Actions.sequence(Action... actions) |
static SequenceAction |
Actions.sequence(Action action1) |
static SequenceAction |
Actions.sequence(Action action1,
Action action2) |
static SequenceAction |
Actions.sequence(Action action1,
Action action2,
Action action3) |
static SequenceAction |
Actions.sequence(Action action1,
Action action2,
Action action3,
Action action4) |
static SequenceAction |
Actions.sequence(Action action1,
Action action2,
Action action3,
Action action4,
Action action5) |
void |
AddAction.setAction(Action action) |
void |
DelegateAction.setAction(Action action)
Sets the wrapped action.
|
void |
RemoveAction.setAction(Action action) |
static Action |
Actions.targeting(Actor target,
Action action)
Sets the target of an action and returns the action.
|
static TimeScaleAction |
Actions.timeScale(float scale,
Action scaledAction) |
Constructor and Description |
---|
ParallelAction(Action action1) |
ParallelAction(Action action1,
Action action2) |
ParallelAction(Action action1,
Action action2,
Action action3) |
ParallelAction(Action action1,
Action action2,
Action action3,
Action action4) |
ParallelAction(Action action1,
Action action2,
Action action3,
Action action4,
Action action5) |
SequenceAction(Action action1) |
SequenceAction(Action action1,
Action action2) |
SequenceAction(Action action1,
Action action2,
Action action3) |
SequenceAction(Action action1,
Action action2,
Action action3,
Action action4) |
SequenceAction(Action action1,
Action action2,
Action action3,
Action action4,
Action action5) |
Modifier and Type | Method and Description |
---|---|
void |
Dialog.hide(Action action)
Removes the dialog from the stage, restoring the previous keyboard and scroll focus, and adds the specified action to the
dialog.
|
Dialog |
Dialog.show(Stage stage,
Action action)
Packs the dialog (but doesn't set the position), adds it to the stage, sets it as the keyboard and scroll
focus, clears any actions on the dialog, and adds the specified action to it. |