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 ColorBadColourbooleanbMaskbooleanCentredstatic booleanConsoleHasFocusintCursorLinebooleanDoingTextEntryUINineGridFrameColorGoodColourbooleanignoreFirstjava.lang.StringinternalTextbooleanIsEditablejava.util.StackLinesjava.lang.StringmaskChrbooleanmultipleLineColorNuetralColourColorNuetralColour2booleanResizeParentColorStandardFrameColourjava.lang.StringTextColorTextEntryCursorColourColorTextEntryCursorColour2intTextEntryCursorPosColorTextEntryFrameColourintTextEntryMaxLengthgnu.trove.list.array.TIntArrayListTextOffsetOfLineStartintToSelectionIndexFields 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 voidClearHighlights()voidclearInput()voidfocus()booleangetForceUpperCase()floatgetFrameAlpha()intgetInset()java.lang.StringgetInternalText()intgetMaxLines()intgetMaxTextLength()java.lang.StringgetText()voidignoreFirstInput()booleanisFocused()booleanisOnlyNumbers()voidonCommandEntered()java.lang.BooleanonMouseDown(double double1, double double2)java.lang.BooleanonMouseMove(double double1, double double2)voidonMouseMoveOutside(double double1, double double2)java.lang.BooleanonMouseUp(double double1, double double2)voidonMouseUpOutside(double double1, double double2)voidonOtherKey(int int1)voidonPressDown()voidonPressUp()voidonresize()voidonTextChange()voidrender()voidresetBlink()voidsetClearButton(boolean boolean1)voidsetCursorLine(int int1)voidsetEditable(boolean boolean1)voidsetForceUpperCase(boolean boolean1)voidsetFrameAlpha(float float1)voidsetHasFrame(boolean boolean1)voidsetMasked(boolean boolean1)voidsetMaxLines(int int1)voidsetMaxTextLength(int int1)voidsetMultipleLine(boolean boolean1)voidsetOnlyNumbers(boolean boolean1)voidSetText(java.lang.String string)voidsetTextColor(ColorInfo colorInfo)inttoDisplayLine(int int1)voidunfocus()voidupdate()voidupdateText()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, suspendStencilMethods 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:
onMouseMovein classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double double1, double double2)- Overrides:
onMouseMoveOutsidein classUIElement
-
focus
public void focus() -
unfocus
public void unfocus() -
ignoreFirstInput
public void ignoreFirstInput() -
onMouseDown
public java.lang.Boolean onMouseDown(double double1, double double2)- Overrides:
onMouseDownin 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()
-