Package zombie.ui
Class UITextBox2
java.lang.Object
zombie.ui.UIElement
zombie.ui.UITextBox2
public class UITextBox2 extends UIElement
-
Field Summary
Fields Modifier and Type Field Description Color
BadColour
boolean
bMask
boolean
Centred
static boolean
ConsoleHasFocus
int
CursorLine
boolean
DoingTextEntry
UINineGrid
Frame
Color
GoodColour
boolean
ignoreFirst
java.lang.String
internalText
boolean
IsEditable
java.util.Stack
Lines
java.lang.String
maskChr
boolean
multipleLine
Color
NuetralColour
Color
NuetralColour2
boolean
ResizeParent
Color
StandardFrameColour
java.lang.String
Text
Color
TextEntryCursorColour
Color
TextEntryCursorColour2
int
TextEntryCursorPos
Color
TextEntryFrameColour
int
TextEntryMaxLength
gnu.trove.list.array.TIntArrayList
TextOffsetOfLineStart
int
ToSelectionIndex
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
Constructors Constructor Description UITextBox2(UIFont uIFont, int int1, int int2, int int3, int int4, java.lang.String string, boolean boolean1)
-
Method Summary
Modifier and Type Method Description void
ClearHighlights()
void
clearInput()
void
focus()
boolean
getForceUpperCase()
float
getFrameAlpha()
int
getInset()
java.lang.String
getInternalText()
int
getMaxLines()
int
getMaxTextLength()
java.lang.String
getText()
void
ignoreFirstInput()
boolean
isFocused()
boolean
isOnlyNumbers()
void
onCommandEntered()
java.lang.Boolean
onMouseDown(double double1, double double2)
java.lang.Boolean
onMouseMove(double double1, double double2)
void
onMouseMoveOutside(double double1, double double2)
java.lang.Boolean
onMouseUp(double double1, double double2)
void
onMouseUpOutside(double double1, double double2)
void
onOtherKey(int int1)
void
onPressDown()
void
onPressUp()
void
onresize()
void
onTextChange()
void
render()
void
resetBlink()
void
setClearButton(boolean boolean1)
void
setCursorLine(int int1)
void
setEditable(boolean boolean1)
void
setForceUpperCase(boolean boolean1)
void
setFrameAlpha(float float1)
void
setHasFrame(boolean boolean1)
void
setMasked(boolean boolean1)
void
setMaxLines(int int1)
void
setMaxTextLength(int int1)
void
setMultipleLine(boolean boolean1)
void
setOnlyNumbers(boolean boolean1)
void
SetText(java.lang.String string)
void
setTextColor(ColorInfo colorInfo)
int
toDisplayLine(int int1)
void
unfocus()
void
update()
void
updateText()
Methods inherited from class zombie.ui.UIElement
AddChild, backMost, bringToTop, BringToTop, ButtonClicked, clampToParentX, clampToParentY, ClearChildren, clearMaxDrawHeight, clearStencilRect, DrawText, DrawText, DrawText, DrawText, DrawTextCentre, DrawTextCentre, DrawTextRight, DrawTextRight, DrawTextUntrimmed, DrawTexture, DrawTexture, DrawTexture_FlippedX, DrawTexture_FlippedXIgnoreOffset, DrawTextureAngle, DrawTextureCol, DrawTextureColor, DrawTextureIgnoreOffset, DrawTextureScaled, DrawTextureScaledAspect, DrawTextureScaledAspect2, DrawTextureScaledCol, DrawTextureScaledCol, DrawTextureScaledColor, DrawTextureScaledUniform, DrawUVSliceTexture, getAbsoluteX, getAbsoluteY, getClickedValue, getControls, getHeight, getMaxDrawHeight, getParent, getPlayerContext, getScrollChildren, getScrollHeight, getScrollWithParent, getTable, getUIName, getWidth, getX, getXScroll, getXScrolled, getY, getYScroll, getYScrolled, ignoreHeightChange, ignoreWidthChange, isAnchorBottom, isAnchorLeft, isAnchorRight, isAnchorTop, isCapture, isConsumeMouseEvents, isDefaultDraw, isEnabled, isFollowGameWorld, isIgnoreLossControl, isMouseOver, isPointOver, isVisible, onMouseWheel, onResize, onRightMouseDown, onRightMouseUp, RemoveChild, RemoveControl, repaintStencilRect, resumeStencil, setAlwaysOnTop, setAnchorBottom, setAnchorLeft, setAnchorRight, setAnchorTop, setCapture, setClickedValue, setConsumeMouseEvents, setControls, setDefaultDraw, setEnabled, setFollowGameWorld, setHeight, setHeightOnly, setHeightSilent, setIgnoreLossControl, setMaxDrawHeight, setParent, setPlayerContext, setScrollChildren, setScrollHeight, setScrollWithParent, setStencilRect, setTable, setUIName, setVisible, setWidth, setWidthOnly, setWidthSilent, setX, setXScroll, setY, setYScroll, suspendStencil
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ConsoleHasFocus
public static boolean ConsoleHasFocus -
ResizeParent
public boolean ResizeParent -
Lines
public java.util.Stack Lines -
Frame
-
Text
public java.lang.String 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 -
CursorLine
public int CursorLine -
multipleLine
public boolean multipleLine -
TextOffsetOfLineStart
public gnu.trove.list.array.TIntArrayList TextOffsetOfLineStart -
ToSelectionIndex
public int ToSelectionIndex -
internalText
public java.lang.String internalText -
maskChr
public java.lang.String maskChr -
bMask
public boolean bMask -
ignoreFirst
public boolean ignoreFirst
-
-
Constructor Details
-
UITextBox2
public UITextBox2(UIFont uIFont, int int1, int int2, int int3, int int4, java.lang.String string, boolean boolean1)
-
-
Method Details
-
ClearHighlights
public void ClearHighlights() -
setMasked
public void setMasked(boolean boolean1) -
onresize
public void onresize() -
render
public void render() -
setFrameAlpha
public void setFrameAlpha(float float1) -
getFrameAlpha
public float getFrameAlpha() -
setTextColor
-
getText
public java.lang.String getText() -
getInternalText
public java.lang.String getInternalText() -
update
public void update() -
getInset
public int getInset() -
setEditable
public void setEditable(boolean boolean1) -
onMouseUp
public java.lang.Boolean onMouseUp(double double1, double double2) -
onMouseUpOutside
public void onMouseUpOutside(double double1, double double2) -
onMouseMove
public java.lang.Boolean onMouseMove(double double1, double double2)- Overrides:
onMouseMove
in classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double double1, double double2)- Overrides:
onMouseMoveOutside
in classUIElement
-
focus
public void focus() -
unfocus
public void unfocus() -
ignoreFirstInput
public void ignoreFirstInput() -
onMouseDown
public java.lang.Boolean onMouseDown(double double1, double double2)- Overrides:
onMouseDown
in classUIElement
-
updateText
public void updateText() -
SetText
public void SetText(java.lang.String string) -
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 int1) -
getMaxTextLength
public int getMaxTextLength() -
setMaxTextLength
public void setMaxTextLength(int int1) -
getForceUpperCase
public boolean getForceUpperCase() -
setForceUpperCase
public void setForceUpperCase(boolean boolean1) -
setHasFrame
public void setHasFrame(boolean boolean1) -
setClearButton
public void setClearButton(boolean boolean1) -
toDisplayLine
public int toDisplayLine(int int1) -
setMultipleLine
public void setMultipleLine(boolean boolean1) -
setCursorLine
public void setCursorLine(int int1) -
getMaxLines
public int getMaxLines() -
setMaxLines
public void setMaxLines(int int1) -
isFocused
public boolean isFocused() -
isOnlyNumbers
public boolean isOnlyNumbers() -
setOnlyNumbers
public void setOnlyNumbers(boolean boolean1) -
resetBlink
public void resetBlink()
-