public class UIBackgroundContainer extends UIContainer<UIBackgroundContainer> implements ITransformable.Color
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 int |
bottomLeftAlpha
Bottom left corner alpha
|
protected int |
bottomLeftColor
Bottom left corner color
|
protected int |
bottomRightAlpha
Bottom right corner alpha
|
protected int |
bottomRightColor
Bottom right corner color
|
protected int |
topLeftAlpha
Top left corner alpha
|
protected int |
topLeftColor
Top left corner color
|
protected int |
topRightAlpha
Top right corner alpha
|
protected int |
topRightColor
Top right corner color
|
clipContent, components, contentHeight, contentWidth, horizontalPadding, titleLabel, verticalPadding, xOffset, yOffset| Constructor and Description |
|---|
UIBackgroundContainer(MalisisGui gui)
Default constructor, creates the components list.
|
UIBackgroundContainer(MalisisGui gui,
int width,
int height)
Instantiates a new
UIBackgroundContainer. |
UIBackgroundContainer(MalisisGui gui,
java.lang.String title)
Instantiates a new
UIBackgroundContainer. |
UIBackgroundContainer(MalisisGui gui,
java.lang.String title,
int width,
int height)
Instantiates a new
UIBackgroundContainer. |
| Modifier and Type | Method and Description |
|---|---|
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Draws the background.
|
int |
getBottomLeftAlpha()
Gets the bottom left alpha.
|
int |
getBottomLeftColor()
Gets the bottom left color.
|
int |
getBottomRightAlpha()
Gets the bottom right alpha.
|
int |
getBottomRightColor()
Gets the bottom right color.
|
int |
getTopLeftAlpha()
Gets the top left alpha.
|
int |
getTopLeftColor()
Gets the top left color.
|
int |
getTopRightAlpha()
Gets the top right alpha.
|
int |
getTopRightColor()
Gets the top right color.
|
void |
setBackgroundAlpha(int alpha)
Sets the alpha background of this
UIBackgroundContainer. |
void |
setBottomAlpha(int alpha)
Sets the bottom alpha.
|
void |
setBottomColor(int color)
Sets the bottom color.
|
void |
setBottomLeftAlpha(int bottomLeftAlpha)
Sets the bottom left alpha.
|
void |
setBottomLeftColor(int bottomLeftColor)
Sets the bottom left color.
|
void |
setBottomRightAlpha(int bottomRightAlpha)
Sets the bottom right alpha.
|
void |
setBottomRightColor(int bottomRightColor)
Sets the bottom right color.
|
void |
setColor(int color)
Sets the color of this
UIBackgroundContainer. |
void |
setLeftAlpha(int alpha)
Sets the left alpha.
|
void |
setLeftColor(int color)
Sets the left color.
|
void |
setRightAlpha(int alpha)
Sets the right alpha.
|
void |
setRightColor(int color)
Sets the right color.
|
void |
setTopAlpha(int alpha)
Sets the top alpha.
|
void |
setTopColor(int color)
Sets the top color.
|
void |
setTopLeftAlpha(int topLeftAlpha)
Sets the top left alpha.
|
void |
setTopLeftColor(int topLeftColor)
Sets the top left color.
|
void |
setTopRightAlpha(int topRightAlpha)
Sets the top right alpha.
|
void |
setTopRightColor(int topRightColor)
Sets the top right color.
|
add, calculateContentSize, componentX, componentY, drawForeground, fireKeyboardEvent, getClipArea, getComponentAt, getContentHeight, getContentWidth, getHorizontalPadding, getOffsetX, getOffsetY, getScrollStep, getTitle, getVerticalPadding, onAddedToScreen, onClose, onComponentSpaceChange, onComponentStateChange, onContentUpdate, remove, removeAll, setClipContent, setDisabled, setOffsetX, setOffsetY, setPadding, setTitle, setVisible, shouldClipContentaddControlComponent, draw, fireEvent, fireMouseEvent, getAlpha, getAnchor, getGui, getHeight, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, setAlpha, setAnchor, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setZIndex, toString, unregisterprotected int topLeftColor
protected int topRightColor
protected int bottomLeftColor
protected int bottomRightColor
protected int topLeftAlpha
protected int topRightAlpha
protected int bottomLeftAlpha
protected int bottomRightAlpha
public UIBackgroundContainer(MalisisGui gui)
gui - the guipublic UIBackgroundContainer(MalisisGui gui, java.lang.String title)
UIBackgroundContainer.gui - the guititle - the titlepublic UIBackgroundContainer(MalisisGui gui, int width, int height)
UIBackgroundContainer.gui - the guiwidth - the widthheight - the heightpublic UIBackgroundContainer(MalisisGui gui, java.lang.String title, int width, int height)
UIBackgroundContainer.gui - the guititle - the titlewidth - the widthheight - the heightpublic int getTopLeftColor()
public void setTopLeftColor(int topLeftColor)
topLeftColor - the new top left colorpublic int getTopRightColor()
public void setTopRightColor(int topRightColor)
topRightColor - the new top right colorpublic int getBottomLeftColor()
public void setBottomLeftColor(int bottomLeftColor)
bottomLeftColor - the new bottom left colorpublic int getBottomRightColor()
public void setBottomRightColor(int bottomRightColor)
bottomRightColor - the new bottom right colorpublic void setTopColor(int color)
color - the new top colorpublic void setBottomColor(int color)
color - the new bottom colorpublic void setLeftColor(int color)
color - the new left colorpublic void setRightColor(int color)
color - the new right colorpublic void setColor(int color)
UIBackgroundContainer.setColor in interface ITransformable.Colorcolor - the new colorpublic int getTopLeftAlpha()
public void setTopLeftAlpha(int topLeftAlpha)
topLeftAlpha - the new top left alphapublic int getTopRightAlpha()
public void setTopRightAlpha(int topRightAlpha)
topRightAlpha - the new top right alphapublic int getBottomLeftAlpha()
public void setBottomLeftAlpha(int bottomLeftAlpha)
bottomLeftAlpha - the new bottom left alphapublic int getBottomRightAlpha()
public void setBottomRightAlpha(int bottomRightAlpha)
bottomRightAlpha - the new bottom right alphapublic void setTopAlpha(int alpha)
alpha - the new top alphapublic void setBottomAlpha(int alpha)
alpha - the new bottom alphapublic void setLeftAlpha(int alpha)
alpha - the new left alphapublic void setRightAlpha(int alpha)
alpha - the new right alphapublic void setBackgroundAlpha(int alpha)
UIBackgroundContainer.alpha - the new alphapublic void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIContainerdrawBackground in class UIContainer<UIBackgroundContainer>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tick