ig.

UITextBubble

new UITextBubble()

UI overlay to be used for displaying text in a decorative bubble. IMPORTANT:UI text box is an ig.UIOverlay, which means it creates an ig.UIText and uses ig.UIOverlay#textSettings to control the settings!

Author:
  • Collin Hover - collinhover.com
Source:
Example
// see the UI overlay for a basic example of using overlays with text

alpha

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.ALPHA
Source:

b

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.B
Source:

cornerRadius

Default Value:
  • see ig.CONFIG.TEXT_BUBBLE.CORNER_RADIUS
Source:

cornerRadiusAsPct

Default Value:
  • see ig.CONFIG.TEXT_BUBBLE.CORNER_RADIUS_AS_PCT
Source:

g

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.G
Source:

layerName

Default Value:
  • ui
Source:

padding :Vector2|Object

Padding on the inside of text bubble to keep text spaced away from sides.

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.PADDING
Source:

pixelPerfect

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.PIXEL_PERFECT
Source:

r

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.R
Source:

shrinkToText :Boolean

Whether to shrink size if text is smaller than this. IMPORTANT: this will not allow the bubble to expand beyond its normal size!

Default Value:
  • see ig.CONFIG.TEXT_BUBBLE.SHRINK_TO_TEXT
Source:

size

Default Value:
  • see ig.CONFIG.TEXT_BUBBLE.SIZE
Source:

sizeAsPct

Default Value:
  • see ig.CONFIG.TEXT_BUBBLE.SIZE_AS_PCT
Source:

sizePct

Default Value:
  • see ig.CONFIG.TEXT_BUBBLE.SIZE_PCT
Source:

triangleLength :Number

Length of triangle pointing from bubble to speaker in px.

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.TRIANGLE_LENGTH
Source:

triangleWidth :Number

Width of triangle pointing from bubble to speaker in px.

Default Value:
  • ig.CONFIG.TEXT_BUBBLE.TRIANGLE_WIDTH
Source:

recordResetState()

Source:

refill()

Source:

refresh()

Source:

resetExtras()

Source:

resize()

Source: