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() |
UIContainer |
setBackgroundColor(int color)
Sets the background color for
UIContainer . |
add, calculateContentSize, componentX, componentY, drawForeground, getComponentAt, getContentHeight, getContentWidth, getHorizontalPadding, getOffsetX, getOffsetY, getScrollStep, getTitle, getVerticalPadding, onAddedToScreen, 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 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 UIContainer setBackgroundColor(int color)
UIContainer
.color
- the colorpublic int getBackgroundColor()
UIContainer
.public void onClose()
onClose
in interface ICloseable
onClose
in class UIContainer<UIWindow>
public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIContainer
drawBackground
in class UIContainer<UIWindow>
renderer
- the renderermouseX
- the mouse xmouseY
- the mouse ypartialTick
- the partial tickpublic ClipArea getClipArea()
UIContainer
ClipArea
.getClipArea
in interface IClipable
getClipArea
in class UIContainer<UIWindow>