public class UIWindow extends UIContainer<UIWindow> implements ICloseable
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 |
|---|
UIWindow(MalisisGui gui,
int width,
int height) |
UIWindow(MalisisGui gui,
java.lang.String title,
int width,
int height) |
UIWindow(MalisisGui gui,
java.lang.String title,
int width,
int height,
int anchor) |
| 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. |
void |
onClose() |
UIWindow |
setBackgroundColor(int color)
Sets the background color for
UIContainer. |
add, calculateContentSize, componentX, componentY, drawForeground, getComponent, getComponent, getComponentAt, getContentHeight, getContentWidth, getHorizontalPadding, getOffsetX, getOffsetY, getScrollStep, getTitle, getVerticalPadding, onAddedToScreen, 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 UIWindow(MalisisGui gui, java.lang.String title, int width, int height, int anchor)
public UIWindow(MalisisGui gui, java.lang.String title, int width, int height)
public UIWindow(MalisisGui gui, int width, int height)
public UIWindow setBackgroundColor(int color)
UIContainer.color - the colorpublic int getBackgroundColor()
UIContainer.public void onClose()
onClose in interface ICloseableonClose in class UIContainer<UIWindow>public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIContainerdrawBackground in class UIContainer<UIWindow>renderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic ClipArea getClipArea()
UIContainerClipArea.getClipArea in interface IClipablegetClipArea in class UIContainer<UIWindow>