Modifier and Type | Class and Description |
---|---|
static class |
TutorialToast.Type |
Toast.Visibility
Modifier and Type | Field and Description |
---|---|
private Text |
description |
private boolean |
hasProgressBar |
private float |
lastProgress |
private long |
lastTime |
private float |
progress |
private Text |
title |
private TutorialToast.Type |
type |
private Toast.Visibility |
visibility |
Constructor and Description |
---|
TutorialToast(TutorialToast.Type type,
Text title,
Text description,
boolean hasProgressBar) |
Modifier and Type | Method and Description |
---|---|
Toast.Visibility |
draw(MatrixStack matrices,
ToastManager manager,
long startTime) |
void |
hide() |
void |
setProgress(float progress) |
private final TutorialToast.Type type
private final Text title
private final Text description
private Toast.Visibility visibility
private long lastTime
private float lastProgress
private float progress
private final boolean hasProgressBar
public TutorialToast(TutorialToast.Type type, Text title, @Nullable Text description, boolean hasProgressBar)
public Toast.Visibility draw(MatrixStack matrices, ToastManager manager, long startTime)
public void hide()
public void setProgress(float progress)