public class UIPanel extends UIContainer<UIPanel> 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 |
backgroundColor
Background color multiplier.
|
clipContent, components, contentHeight, contentWidth, horizontalPadding, titleLabel, verticalPadding, xOffset, yOffset
Constructor and Description |
---|
UIPanel(MalisisGui gui) |
UIPanel(MalisisGui gui,
int width,
int height) |
UIPanel(MalisisGui gui,
java.lang.String title) |
UIPanel(MalisisGui gui,
java.lang.String title,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Draws the background.
|
int |
getBackgroundColor()
Gets the background color.
|
ClipArea |
getClipArea()
Gets the
ClipArea . |
UIContainer |
setBackgroundColor(int color)
Sets the background color for
UIContainer . |
void |
setColor(int color)
Sets the background color of this
UIContainer . |
add, calculateContentSize, componentX, componentY, drawForeground, 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
public UIPanel(MalisisGui gui)
public UIPanel(MalisisGui gui, int width, int height)
public UIPanel(MalisisGui gui, java.lang.String title)
public UIPanel(MalisisGui gui, java.lang.String title, int width, int height)
public UIContainer setBackgroundColor(int color)
UIContainer
.color
- the colorpublic int getBackgroundColor()
UIContainer
.public void setColor(int color)
UIContainer
.setColor
in interface ITransformable.Color
color
- the new colorpublic ClipArea getClipArea()
UIContainer
ClipArea
.getClipArea
in interface IClipable
getClipArea
in class UIContainer<UIPanel>
public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIContainer
drawBackground
in class UIContainer<UIPanel>
renderer
- the renderermouseX
- the mouse xmouseY
- the mouse ypartialTick
- the partial tick