Package zombie.ui
Class UITextBox2
java.lang.Object
zombie.ui.UIElement
zombie.ui.UITextBox2
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
boolean
boolean
static boolean
int
boolean
boolean
boolean
boolean
boolean
int
int
gnu.trove.list.array.TIntArrayList
int
Fields inherited from class zombie.ui.UIElement
alwaysBack, anchorBottom, anchorLeft, anchorRight, anchorTop, bScrollChildren, bScrollWithParent, capture, clickedValue, Controls, defaultDraw, followGameWorld, height, IgnoreLossControl, Parent, playerContext, table, visible, width, x, y
-
Constructor Summary
ConstructorDescriptionUITextBox2
(UIFont font, int x, int y, int width, int height, String text, boolean HasFrame) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
focus()
int
int
boolean
float
int
getInset()
int
int
getText()
void
boolean
boolean
boolean
isMasked()
boolean
boolean
boolean
void
onMouseDown
(double x, double y) onMouseMove
(double dx, double dy) void
onMouseMoveOutside
(double dx, double dy) onMouseUp
(double x, double y) void
onMouseUpOutside
(double x, double y) void
onOtherKey
(int key) void
void
void
onresize()
void
void
render()
void
void
void
setClearButton
(boolean hasButton) void
setCursorLine
(int line) void
setCursorPos
(int charIndex) void
setEditable
(boolean b) void
setForceUpperCase
(boolean forceUpperCase) void
setFrameAlpha
(float alpha) void
setHasFrame
(boolean hasFrame) void
setMasked
(boolean b) void
setMaxLines
(int maxLines) void
setMaxTextLength
(int maxtextLength) void
setMultipleLine
(boolean multiple) void
setOnlyNumbers
(boolean onlyNumbers) void
setSelectable
(boolean b) void
void
setTextColor
(ColorInfo newColor) int
toDisplayLine
(int textOffset) void
unfocus()
void
update()
void
Methods inherited from class zombie.ui.UIElement
AddChild, backMost, bringToTop, BringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawSubTextureRGBA, DrawText, DrawText, DrawText, DrawText, DrawTextCentre, DrawTextCentre, DrawTextRight, DrawTextRight, DrawTextUntrimmed, DrawTexture, DrawTexture, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTextureAngle, DrawTextureAngle, DrawTextureCol, DrawTextureColor, DrawTextureIgnoreOffset, DrawTextureScaled, DrawTextureScaledAspect, DrawTextureScaledAspect2, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawTextureScaledUniform, DrawTextureTiled, DrawTextureTiledX, DrawTextureTiledY, DrawUVSliceTexture, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getMaxDrawHeight, getParent, getPlayerContext, getRenderThisPlayerOnly, getScrollChildren, getScrollHeight, getScrollWithParent, getTable, getUIName, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isCapture, isConsumeMouseEvents, isDefaultDraw, isEnabled, isFollowGameWorld, isForceCursorVisible, isIgnoreLossControl, isKeyConsumed, isMouseOver, isPointOver, isVisible, isWantKeyEvents, onKeyPress, onKeyRelease, onKeyRepeat, onMouseWheel, onResize, onRightMouseDown, onRightMouseUp, RemoveChild, RemoveControl, repaintStencilRect, resumeStencil, setAlwaysOnTop, setAnchorBottom, setAnchorLeft, setAnchorRight, setAnchorTop, setCapture, setClickedValue, setConsumeMouseEvents, setControls, setDefaultDraw, setEnabled, setFollowGameWorld, setForceCursorVisible, setHeight, setHeightOnly, setHeightSilent, setIgnoreLossControl, setMaxDrawHeight, setParent, setPlayerContext, setRenderClippedChildren, setRenderThisPlayerOnly, setScrollChildren, setScrollHeight, setScrollWithParent, setStencilRect, setTable, setUIName, setVisible, setWantKeyEvents, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, suspendStencil
-
Field Details
-
ConsoleHasFocus
public static boolean ConsoleHasFocus -
Lines
-
Frame
-
Text
-
Centred
public boolean Centred -
StandardFrameColour
-
TextEntryFrameColour
-
TextEntryCursorColour
-
TextEntryCursorColour2
-
NuetralColour
-
NuetralColour2
-
BadColour
-
GoodColour
-
DoingTextEntry
public boolean DoingTextEntry -
TextEntryCursorPos
public int TextEntryCursorPos -
TextEntryMaxLength
public int TextEntryMaxLength -
IsEditable
public boolean IsEditable -
IsSelectable
public boolean IsSelectable -
CursorLine
public int CursorLine -
multipleLine
public boolean multipleLine -
TextOffsetOfLineStart
public gnu.trove.list.array.TIntArrayList TextOffsetOfLineStart -
ToSelectionIndex
public int ToSelectionIndex -
internalText
-
maskChr
-
bMask
public boolean bMask -
ignoreFirst
public boolean ignoreFirst -
bAlwaysPaginate
public boolean bAlwaysPaginate -
bTextChanged
public boolean bTextChanged
-
-
Constructor Details
-
UITextBox2
-
-
Method Details
-
ClearHighlights
public void ClearHighlights() -
setMasked
public void setMasked(boolean b) -
isMasked
public boolean isMasked() -
onresize
public void onresize() -
render
public void render() -
getFrameAlpha
public float getFrameAlpha() -
setFrameAlpha
public void setFrameAlpha(float alpha) -
setTextColor
-
getText
-
getInternalText
-
update
public void update() -
getInset
public int getInset() -
setEditable
public void setEditable(boolean b) -
isEditable
public boolean isEditable() -
setSelectable
public void setSelectable(boolean b) -
isSelectable
public boolean isSelectable() -
onMouseUp
-
onMouseUpOutside
public void onMouseUpOutside(double x, double y) - Overrides:
onMouseUpOutside
in classUIElement
-
onMouseMove
- Overrides:
onMouseMove
in classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double dx, double dy) - Overrides:
onMouseMoveOutside
in classUIElement
-
focus
public void focus() -
unfocus
public void unfocus() -
ignoreFirstInput
public void ignoreFirstInput() -
onMouseDown
- Overrides:
onMouseDown
in classUIElement
-
updateText
public void updateText() -
SetText
-
clearInput
public void clearInput() -
onPressUp
public void onPressUp() -
onPressDown
public void onPressDown() -
onCommandEntered
public void onCommandEntered() -
onTextChange
public void onTextChange() -
onOtherKey
public void onOtherKey(int key) -
getMaxTextLength
public int getMaxTextLength() -
setMaxTextLength
public void setMaxTextLength(int maxtextLength) -
getForceUpperCase
public boolean getForceUpperCase() -
setForceUpperCase
public void setForceUpperCase(boolean forceUpperCase) -
setHasFrame
public void setHasFrame(boolean hasFrame) -
setClearButton
public void setClearButton(boolean hasButton) -
toDisplayLine
public int toDisplayLine(int textOffset) -
setMultipleLine
public void setMultipleLine(boolean multiple) -
isMultipleLine
public boolean isMultipleLine() -
getCursorLine
public int getCursorLine() -
setCursorLine
public void setCursorLine(int line) -
getCursorPos
public int getCursorPos() -
setCursorPos
public void setCursorPos(int charIndex) -
getMaxLines
public int getMaxLines() -
setMaxLines
public void setMaxLines(int maxLines) -
isFocused
public boolean isFocused() -
isOnlyNumbers
public boolean isOnlyNumbers() -
setOnlyNumbers
public void setOnlyNumbers(boolean onlyNumbers) -
resetBlink
public void resetBlink() -
selectAll
public void selectAll()
-