public class UISlimScrollbar extends UIScrollBar
UIScrollBar.TypeITransformable.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 of the scroll.
|
protected int |
scrollColor
Scroll color
|
autoHide, disabledIcon, horizontalDisabledIcon, horizontalIcon, scrollHeight, scrollShape, scrollThickness, type, verticalDisabledIcon, verticalIcon| Constructor and Description |
|---|
UISlimScrollbar(MalisisGui gui,
T parent,
UIScrollBar.Type type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape(MalisisGui gui) |
void |
drawBackground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called first when drawing this
UIComponent. |
void |
drawForeground(GuiRenderer renderer,
int mouseX,
int mouseY,
float partialTick)
Called last when drawing this
UIComponent. |
int |
getHeight()
Gets the height of this
UIComponent. |
int |
getWidth()
Gets the width of this
UIComponent. |
void |
onMouseOver(StateChangeEvent.HoveredStateChange event) |
void |
setColor(int scrollColor)
Sets the color of the scroll.
|
void |
setColor(int scrollColor,
int backgroundColor)
Sets the color of the scroll and the background.
|
protected void |
setPosition() |
addScrollbar, getLength, getOffset, getPropertyString, getScrollable, getScrollbar, hasVisibleOtherScrollbar, isHorizontal, onButtonPress, onContentUpdate, onDrag, onKeyTyped, onScrollWheel, scrollBy, scrollTo, setAutoHide, setLength, setScrollSize, updateScrollbarsaddControlComponent, componentX, componentY, draw, fireEvent, getAlpha, getAnchor, getComponentAt, getGui, getName, getParent, getRawHeight, getRawWidth, getRenderer, getTooltip, getX, getY, getZIndex, isDisabled, isFocused, isHovered, isInsideBounds, isRelativeHeight, isRelativeWidth, isVisible, onAddedToScreen, onButtonRelease, onClick, onDoubleClick, onMouseMove, onRightClick, parentX, parentY, register, relativeX, relativeY, removeAllControlComponents, removeControlComponent, screenX, screenY, setAlpha, setAnchor, setDisabled, setFocused, setHovered, setName, setParent, setPosition, setPosition, setSize, setTooltip, setTooltip, setVisible, setZIndex, toString, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdraw, getComponentAt, getParent, setParentprotected int backgroundColor
protected int scrollColor
public UISlimScrollbar(MalisisGui gui, T parent, UIScrollBar.Type type)
protected void setPosition()
setPosition in class UIScrollBarprotected void createShape(MalisisGui gui)
createShape in class UIScrollBarpublic int getWidth()
UIComponentUIComponent.getWidth in class UIScrollBarpublic int getHeight()
UIComponentUIComponent.getHeight in class UIScrollBarpublic void setColor(int scrollColor)
scrollColor - the new colorpublic void setColor(int scrollColor,
int backgroundColor)
scrollColor - the scroll colorbackgroundColor - the background colorpublic void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawBackground in class UIScrollBarrenderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic void drawForeground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick)
UIComponentUIComponent.drawForeground in class UIScrollBarrenderer - the renderermouseX - the mouse xmouseY - the mouse ypartialTick - the partial tickpublic void onMouseOver(StateChangeEvent.HoveredStateChange event)