Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

guiElementInstance



An instance of a UI element created via gui.create().
UI element coordinate system starts in the upper left corner of the element.

Methods

• addChild• alignToBottom• alignToRight• allocateSprite• bringUp• canDraw• canEnable• canPropagateKeyPressTo• canSelect• canShow• center• centerToElement• centerX• centerY• copyPanelSkinColorsOfElement• deselect• disableRendering• draw• enableRendering• getBottom• getCanClick• getCanHover• getChildren• getDepth• getDistanceToMouse• getFont• getID• getLeft• getMidPoint• getOwner• getParent• getPos• getRawSize()• getRelativePosition• getRight• getSide• getSize• getStateColor• getTop• getVisible• handleEvent• hide• hideSprites• init• initVisual• isDisabled• isHeldDown• isMouseOver• isMouseOverChildren• isMouseWithin• isOn• isRenderingDisabled• isSameClass• isSelected• isValid• kill• killDescBox• limitToScreenspace• onChildSizeChanged• onClick• onClickDown• onDeselect• onHide• onMouseEntered• onMouseLeft• onRelease• onScroll• onSelected• onShow• onSizeChanged• overwriteDepth• passesClickFilters• performLayout• performLayout• playClickSound• playKillSound• postDrawRoot• postHide• postInit• postResolutionChange• postShow• preDrawRoot• preResolutionChange• processKeyRelease• pureAllocateSprite• queueSpriteUpdate• removeChild• select• setBasePanel• setCanClick• setCanHover• setCanInheritScalingState• setCanPropagateKeyPress• setDepth• setFont• setID• setNextSpriteColor• setOwner• setParent• setPos• setScalingState• setSize• setSpriteAlphaOverride• setTall• setVisible• setWide• setX• show• think• tieVisibilityOf• tieVisibilityTo• updateSprites• writeTo

Variables

CATCHABLE_EVENTS (optional)

when defined, the UI element will catch the events specified within, and will call the handleEvent element on itself when caught.

w

direct access to the actual (scaled) width of the UI element.

h

direct access to the actual (scaled) height of the UI element.

rawW

direct access to the width of the UI element.

rawH

direct access to the height of the UI element.

x

direct access to the X position of the UI element relative to the parent (or absolute position if no parent is present)

y

direct access to the Y position of the UI element relative to the parent (or absolute position if no parent is present)

localX

direct access to the X position of the UI element relative to the parent (if present)

localY

direct access to the Y position of the UI element relative to the parent (if present)

scaler

the string name of the size scaler to use.

_scaleHor

boolean, whether the width of this element should be scaled with the screen resolution.

_scaleVert

boolean, whether the height of this element should be scaled with the screen resolution.

_inheritScalingState

boolean, whether this element should inherit the scaling state of the element it's parented to.

_propagateScalingState

boolean, whether this element should propagate it's scaling states onto its children. canPropagateKeyPress