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.
|
UIBackgroundContainer |
setBackgroundAlpha(int alpha)
Sets the alpha background of this
UIBackgroundContainer . |
UIBackgroundContainer |
setBottomAlpha(int alpha)
Sets the bottom alpha.
|
UIBackgroundContainer |
setBottomColor(int color)
Sets the bottom color.
|
UIBackgroundContainer |
setBottomLeftAlpha(int bottomLeftAlpha)
Sets the bottom left alpha.
|
UIBackgroundContainer |
setBottomLeftColor(int bottomLeftColor)
Sets the bottom left color.
|
UIBackgroundContainer |
setBottomRightAlpha(int bottomRightAlpha)
Sets the bottom right alpha.
|
UIBackgroundContainer |
setBottomRightColor(int bottomRightColor)
Sets the bottom right color.
|
void |
setColor(int color)
Sets the color of this
UIBackgroundContainer . |
UIBackgroundContainer |
setLeftAlpha(int alpha)
Sets the left alpha.
|
UIBackgroundContainer |
setLeftColor(int color)
Sets the left color.
|
UIBackgroundContainer |
setRightAlpha(int alpha)
Sets the right alpha.
|
UIBackgroundContainer |
setRightColor(int color)
Sets the right color.
|
UIBackgroundContainer |
setTopAlpha(int alpha)
Sets the top alpha.
|
UIBackgroundContainer |
setTopColor(int color)
Sets the top color.
|
UIBackgroundContainer |
setTopLeftAlpha(int topLeftAlpha)
Sets the top left alpha.
|
UIBackgroundContainer |
setTopLeftColor(int topLeftColor)
Sets the top left color.
|
UIBackgroundContainer |
setTopRightAlpha(int topRightAlpha)
Sets the top right alpha.
|
UIBackgroundContainer |
setTopRightColor(int topRightColor)
Sets the top right color.
|
add, calculateContentSize, componentX, componentY, drawForeground, getClipArea, getComponentAt, getContentHeight, getContentWidth, getHorizontalPadding, getOffsetX, getOffsetY, getScrollStep, getTitle, getVerticalPadding, onAddedToScreen, onClose, onComponentSpaceChange, onComponentStateChange, onContentUpdate, remove, removeAll, setClipContent, setDisabled, setOffsetX, setOffsetY, setPadding, setTitle, setVisible, shouldClipContent
addControlComponent, draw, fireEvent, getAlpha, getAnchor, getGui, getHeight, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getTooltip, getWidth, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onButtonPress, onButtonRelease, onClick, onDoubleClick, onDrag, onKeyTyped, onMouseMove, onRightClick, onScrollWheel, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, setAlpha, setAnchor, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setZIndex, toString, unregister
protected 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 UIBackgroundContainer setTopLeftColor(int topLeftColor)
topLeftColor
- the new top left colorpublic int getTopRightColor()
public UIBackgroundContainer setTopRightColor(int topRightColor)
topRightColor
- the new top right colorpublic int getBottomLeftColor()
public UIBackgroundContainer setBottomLeftColor(int bottomLeftColor)
bottomLeftColor
- the new bottom left colorpublic int getBottomRightColor()
public UIBackgroundContainer setBottomRightColor(int bottomRightColor)
bottomRightColor
- the new bottom right colorpublic UIBackgroundContainer setTopColor(int color)
color
- the new top colorpublic UIBackgroundContainer setBottomColor(int color)
color
- the new bottom colorpublic UIBackgroundContainer setLeftColor(int color)
color
- the new left colorpublic UIBackgroundContainer setRightColor(int color)
color
- the new right colorpublic void setColor(int color)
UIBackgroundContainer
.setColor
in interface ITransformable.Color
color
- the new colorpublic int getTopLeftAlpha()
public UIBackgroundContainer setTopLeftAlpha(int topLeftAlpha)
topLeftAlpha
- the new top left alphapublic int getTopRightAlpha()
public UIBackgroundContainer setTopRightAlpha(int topRightAlpha)
topRightAlpha
- the new top right alphapublic int getBottomLeftAlpha()
public UIBackgroundContainer setBottomLeftAlpha(int bottomLeftAlpha)
bottomLeftAlpha
- the new bottom left alphapublic int getBottomRightAlpha()
public UIBackgroundContainer setBottomRightAlpha(int bottomRightAlpha)
bottomRightAlpha
- the new bottom right alphapublic UIBackgroundContainer setTopAlpha(int alpha)
alpha
- the new top alphapublic UIBackgroundContainer setBottomAlpha(int alpha)
alpha
- the new bottom alphapublic UIBackgroundContainer setLeftAlpha(int alpha)
alpha
- the new left alphapublic UIBackgroundContainer setRightAlpha(int alpha)
alpha
- the new right alphapublic UIBackgroundContainer setBackgroundAlpha(int alpha)
UIBackgroundContainer
.alpha
- the new alphapublic void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIContainer
drawBackground
in class UIContainer<UIBackgroundContainer>
renderer
- the renderermouseX
- the mouse xmouseY
- the mouse ypartialTick
- the partial tick