public class UIProgressBar extends UIComponent<UIProgressBar>
ITransformable.Alpha, ITransformable.Brightness, ITransformable.Color, ITransformable.Position<T>, ITransformable.Rotate, ITransformable.Scale, ITransformable.Size<T>, ITransformable.Translate| Modifier and Type | Field and Description |
|---|---|
protected MalisisIcon |
backgroundIcon |
protected MalisisIcon |
filledIcon |
protected float |
progress |
protected boolean |
reversed |
protected GuiTexture |
texture |
protected boolean |
vertical |
| Constructor and Description |
|---|
UIProgressBar(MalisisGui gui) |
UIProgressBar(MalisisGui gui,
int width,
int height,
GuiTexture texture,
MalisisIcon backgroundIcon,
MalisisIcon filledIcon) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called first when drawing this
UIComponent. |
void |
drawForeground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called last when drawing this
UIComponent. |
float |
getProgress() |
void |
setProgress(float progress) |
UIProgressBar |
setReversed() |
UIProgressBar |
setVertical() |
addControlComponent, attachData, componentX, componentY, createIconProvider, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getData, getGui, getHeight, getIconProvider, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getRenderer, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onAddedToScreen, onButtonPress, onButtonRelease, onClick, onDoubleClick, onDrag, onKeyTyped, onMouseMove, onRightClick, onScrollWheel, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, setAlpha, setAnchor, setDisabled, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setVisible, setZIndex, toString, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetTexture, setTexture, setTexture, setTextureprotected float progress
protected boolean reversed
protected boolean vertical
protected GuiTexture texture
protected MalisisIcon backgroundIcon
protected MalisisIcon filledIcon
public UIProgressBar(MalisisGui gui)
public UIProgressBar(MalisisGui gui, int width, int height, GuiTexture texture, MalisisIcon backgroundIcon, MalisisIcon filledIcon)
public UIProgressBar setReversed()
public UIProgressBar setVertical()
public float getProgress()
public void setProgress(float progress)
public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawBackground in class UIComponent<UIProgressBar>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic void drawForeground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawForeground in class UIComponent<UIProgressBar>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tick