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. |
UIPanel |
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, getComponent, getComponent, getComponentAt, getContentHeight, getContentWidth, getHorizontalPadding, getOffsetX, getOffsetY, getScrollStep, getTitle, getVerticalPadding, onAddedToScreen, onClose, onComponentSpaceChange, onComponentStateChange, onContentUpdate, remove, removeAll, setClipContent, setDisabled, setOffsetX, setOffsetY, setPadding, setTitle, setVisible, shouldClipContentaddControlComponent, attachData, draw, fireEvent, getAlpha, getAnchor, getData, getGui, getHeight, getIconProvider, getName, getParent, getPropertyString, getRawHeight, getRawWidth, getRenderer, 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, self, setAlpha, setAnchor, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setZIndex, toString, unregisterpublic 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 UIPanel setBackgroundColor(int color)
UIContainer.color - the colorpublic int getBackgroundColor()
UIContainer.public void setColor(int color)
UIContainer.setColor in interface ITransformable.Colorcolor - the new colorpublic ClipArea getClipArea()
UIContainerClipArea.getClipArea in interface IClipablegetClipArea in class UIContainer<UIPanel>public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIContainerdrawBackground in class UIContainer<UIPanel>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tick