DialogBoxElement

DialogBoxElement

new DialogBoxElement(data)

Source:
Parameters:
Name Type Description
data Object

对话框元素数据

Members

blend :string

混合模式

Source:
Type:
  • string

color :string

文字颜色

Source:
Type:
  • string

content :string

文本内容

Source:
Type:
  • string

effect :Object

文字效果

Source:
Type:

elapsed :number

对话框已经播放的时间(毫秒)

Source:
Type:
  • number

font :string

字体家族

Source:
Type:
  • string

interval :number

对话框打印文字的间隔时间(毫秒)

Source:
Type:
  • number

letterSpacing :number

字间距

Source:
Type:
  • number

lineSpacing :number

行间距

Source:
Type:
  • number

printEndX :number

对话框文字的水平结束位置

Source:
Type:
  • number

printEndY :number

对话框文字的垂直结束位置

Source:
Type:
  • number

printer :Printer|null

文字打印机

Source:
Type:

size :number

字体大小

Source:
Type:
  • number

state :string

对话框当前状态

Source:
Type:
  • string

texture :Texture|null

文字打印机纹理

Source:
Type:

typeface :string

字型

Source:
Type:
  • string

Methods

calculateTextPosition()

计算文本位置

Source:

continue()

继续打印文字

Source:

destroy()

销毁对话框元素

Source:

draw()

绘制对话框

Source:

drawBuffer()

绘制缓冲字符串

Source:

pause()

暂停打印文字

Source:

print()

打印文字

Source:

printImmediately()

立即打印文字

Source:

printNextPage()

打印下一页文字

Source:

reload()

重新加载文本内容

Source:

resize()

重新调整对话框元素

Source:

resizeEmbeddedImages()

调整内嵌图像元素

Source:

update()

更新对话框

Source: