Package | Description |
---|---|
me.leoko.advancedgui.utils.actions | |
me.leoko.advancedgui.utils.components |
Modifier and Type | Class and Description |
---|---|
class |
CheckAction
The CheckAction performs different actions depending on whether a check passes.
|
class |
CommandAction
The CommandAction executes a command.
|
class |
DelayAction
The DelayAction executes its child actions after a certain amount of ticks
|
class |
GifControlAction
The GifControlAction changes whether a
GifComponent is paused or not
for a player. |
class |
ListAction
The ListAction executes multiple actions in sequence.
|
class |
MessageAction
The MessageAction sends a message.
|
class |
ViewChangeAction
The ViewChangeAction changes which components is displayed by a
ViewComponent to a certain player. |
class |
VisibilityAction
The VisibilityAction changes the visibility of a component.
|
Constructor and Description |
---|
CheckAction(Check check,
Action positiveAction,
Action negativeAction)
Instantiates a new CheckAction.
|
CheckAction(Check check,
Action positiveAction,
Action negativeAction)
Instantiates a new CheckAction.
|
Constructor and Description |
---|
DelayAction(int ticks,
List<Action> children)
Instantiates a new DelayAction.
|
DelayAction(int ticks,
List<Action> children)
Instantiates a new DelayAction.
|
ListAction(List<Action> actions)
Instantiates a new ListAction.
|
ListAction(List<Action> actions)
Instantiates a new ListAction.
|
Modifier and Type | Field and Description |
---|---|
protected Action |
Component.clickAction |
protected Action |
Component.clickAction |
Modifier and Type | Method and Description |
---|---|
Action |
Component.getClickAction()
Gets click action.
|
Action |
Component.getClickAction()
Gets click action.
|
Action |
HoverDetectorComponent.getOnHoverEnter()
Gets on hover enter action.
|
Action |
HoverDetectorComponent.getOnHoverEnter()
Gets on hover enter action.
|
Action |
HoverDetectorComponent.getOnHoverExit()
Gets on hover exit action.
|
Action |
HoverDetectorComponent.getOnHoverExit()
Gets on hover exit action.
|
Modifier and Type | Method and Description |
---|---|
void |
Component.setClickAction(Action clickAction)
Sets the click action.
|
void |
DummyComponent.setClickAction(Action clickAction) |
void |
DummyComponent.setClickAction(Action clickAction) |
void |
Component.setClickAction(Action clickAction)
Sets the click action.
|
void |
HoverDetectorComponent.setOnHoverEnter(Action onHoverEnter)
Sets on hover enter action.
|
void |
HoverDetectorComponent.setOnHoverEnter(Action onHoverEnter)
Sets on hover enter action.
|
void |
HoverDetectorComponent.setOnHoverExit(Action onHoverExit)
Sets on hover exit action.
|
void |
HoverDetectorComponent.setOnHoverExit(Action onHoverExit)
Sets on hover exit action.
|
Constructor and Description |
---|
AdaptiveComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component defaultComponent)
Instantiates a new AdaptiveComponent.
|
AdaptiveComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component defaultComponent)
Instantiates a new AdaptiveComponent.
|
CheckComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Check check,
Component positive,
Component negative)
Instantiates a new CheckComponent.
|
CheckComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Check check,
Component positive,
Component negative)
Instantiates a new CheckComponent.
|
ClickAnimationComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component clicked)
Instantiates a new ClickAnimationComponent.
|
ClickAnimationComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component clicked)
Instantiates a new ClickAnimationComponent.
|
Component(String id,
Action clickAction,
boolean hidden,
Interaction interaction)
Instantiates a new Component.
|
Component(String id,
Action clickAction,
boolean hidden,
Interaction interaction)
Instantiates a new Component.
|
DummyComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction)
Instantiates a new DummyComponent.
|
DummyComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction)
Instantiates a new DummyComponent.
|
GifComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
GifFrame[] gifFrames,
boolean pausedByDefault)
Instantiates a new GifComponent.
|
GifComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
GifFrame[] gifFrames,
boolean pausedByDefault)
Instantiates a new GifComponent.
|
GroupComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
List<Component> components)
Instantiates a new GroupComponent.
|
GroupComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
List<Component> components)
Instantiates a new GroupComponent.
|
HoverComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component hovered)
Instantiates a new HoverComponent.
|
HoverComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
@NotNull Component normal,
@NotNull Component hovered)
Instantiates a new HoverComponent.
|
HoverDetectorComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Action onHoverEnter,
Action onHoverExit,
Component child)
Instantiates a new HoverDetectorComponent
|
HoverDetectorComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Action onHoverEnter,
Action onHoverExit,
Component child)
Instantiates a new HoverDetectorComponent
|
ImageComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
BufferedImage image)
Instantiates a new ImageComponent.
|
ImageComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
BufferedImage image)
Instantiates a new ImageComponent.
|
ListComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Function<Interaction,List<T>> itemListGenerator,
ListItemBuilder<T> itemComponentBuilder,
int pageSize,
int stepSize)
Instantiates a new ListComponent.
|
ListComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Function<Interaction,List<T>> itemListGenerator,
ListItemBuilder<T> itemComponentBuilder,
int pageSize,
int stepSize)
Instantiates a new ListComponent.
|
ListComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
List<T> globalItemList,
ListItemBuilder<T> itemComponentBuilder,
int pageSize,
int stepSize)
Instantiates a new ListComponent.
|
ListComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
List<T> globalItemList,
ListItemBuilder<T> itemComponentBuilder,
int pageSize,
int stepSize)
Instantiates a new ListComponent.
|
PlaceholderTextComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
Font font,
String text,
Color color,
TextComponent.Alignment alignment)
Instantiates a new PlaceholderText component.
|
PlaceholderTextComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
Font font,
String text,
Color color,
TextComponent.Alignment alignment)
Instantiates a new PlaceholderText component.
|
RectangularComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height)
Instantiates a new RectangularComponent.
|
RectangularComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height)
Instantiates a new RectangularComponent.
|
RectComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height,
Color color)
Instantiates a new RectComponent
(same as
RectComponent.RectComponent(String, Action, boolean, Interaction, int, int, int, int, Color) with 0 border radius) |
RectComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height,
Color color)
Instantiates a new RectComponent
(same as
RectComponent.RectComponent(String, Action, boolean, Interaction, int, int, int, int, Color) with 0 border radius) |
RectComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height,
Color color,
int radius)
Instantiates a new RectComponent.
|
RectComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height,
Color color,
int radius)
Instantiates a new RectComponent.
|
RemoteImageComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
String imageUrl,
Component loading,
int x,
int y,
int width,
int height,
boolean dithering)
Instantiates a new Remote image component.
|
RemoteImageComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
String imageUrl,
Component loading,
int x,
int y,
int width,
int height,
boolean dithering)
Instantiates a new Remote image component.
|
TextComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
Font font,
String text,
Color color)
Instantiates a new TextComponent.
|
TextComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
Font font,
String text,
Color color)
Instantiates a new TextComponent.
|
TextComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
Font font,
String text,
Color color,
@NotNull TextComponent.Alignment alignment)
Instantiates a new TextComponent.
|
TextComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
Font font,
String text,
Color color,
@NotNull TextComponent.Alignment alignment)
Instantiates a new TextComponent.
|
TextInputComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height,
int padding,
Color backgroundColor,
Color backgroundColorActive,
Font font,
Color fontColor,
Color fontColorPlaceholder,
String placeHolder,
@NotNull String defaultInput,
InputHandler inputHandler,
boolean registerPlaceholder)
Instantiates a new TextInputComponent.
|
TextInputComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
int x,
int y,
int width,
int height,
int padding,
Color backgroundColor,
Color backgroundColorActive,
Font font,
Color fontColor,
Color fontColorPlaceholder,
String placeHolder,
@NotNull String defaultInput,
InputHandler inputHandler,
boolean registerPlaceholder)
Instantiates a new TextInputComponent.
|
ViewComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Component defaultComponent,
List<Component> views)
Instantiates a new ViewComponent.
|
ViewComponent(String id,
Action clickAction,
boolean hidden,
Interaction interaction,
Component defaultComponent,
List<Component> views)
Instantiates a new ViewComponent.
|
Copyright © 2021. All rights reserved.