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.StringTextColorTextEntryCursorColourColorTextEntryCursorColour2intTextEntryCursorPosColorTextEntryFrameColourintTextEntryMaxLengthjava.util.ArrayListTextOffsetOfLineStartintToSelectionIndexFields 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 font, int x, int y, int width, int height, java.lang.String text, boolean HasFrame) -
Method Summary
Modifier and Type Method Description voidClearHighlights()voidclearInput()voidfocus()booleangetForceUpperCase()intgetInset()java.lang.StringgetInternalText()intgetMaxLines()intgetMaxTextLength()java.lang.StringgetText()voidignoreFirstInput()booleanisFocused()booleanisOnlyNumbers()voidonCommandEntered()java.lang.BooleanonMouseDown(double x, double y)java.lang.BooleanonMouseMove(double dx, double dy)voidonMouseMoveOutside(double dx, double dy)java.lang.BooleanonMouseUp(double x, double y)voidonMouseUpOutside(double x, double y)voidonOtherKey(int key)voidonPressDown()voidonPressUp()voidonresize()voidonTextChange()voidrender()voidresetBlink()voidsetClearButton(boolean hasButton)voidsetCursorLine(int line)voidsetEditable(boolean b)voidsetForceUpperCase(boolean forceUpperCase)voidsetHasFrame(boolean hasFrame)voidsetMasked(boolean b)voidsetMaxLines(int maxLines)voidsetMaxTextLength(int maxtextLength)voidsetMultipleLine(boolean multiple)voidsetOnlyNumbers(boolean onlyNumbers)voidSetText(java.lang.String text)voidsetTextColor(ColorInfo newColor)inttoDisplayLine(int textOffset)voidunfocus()voidupdate()voidupdateText()Methods inherited from class zombie.ui.UIElement
AddChild, backMost, 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, 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 java.util.ArrayList 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 font, int x, int y, int width, int height, java.lang.String text, boolean HasFrame)
-
-
Method Details
-
ClearHighlights
public void ClearHighlights() -
setMasked
public void setMasked(boolean b) -
onresize
public void onresize() -
render
public void render() -
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 b) -
onMouseUp
public java.lang.Boolean onMouseUp(double x, double y) -
onMouseUpOutside
public void onMouseUpOutside(double x, double y) -
onMouseMove
public java.lang.Boolean onMouseMove(double dx, double dy)- Overrides:
onMouseMovein classUIElement
-
onMouseMoveOutside
public void onMouseMoveOutside(double dx, double dy)- Overrides:
onMouseMoveOutsidein classUIElement
-
focus
public void focus() -
unfocus
public void unfocus() -
ignoreFirstInput
public void ignoreFirstInput() -
onMouseDown
public java.lang.Boolean onMouseDown(double x, double y)- Overrides:
onMouseDownin classUIElement
-
updateText
public void updateText() -
SetText
public void SetText(java.lang.String text) -
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) -
setCursorLine
public void setCursorLine(int line) -
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()
-