modules# DMessage

消息数据集合, 用于存储消息数据, 包括但不限于 DMessage

Members

(nullable) condition :TBoolCallback

条件函数

条件函数, 满足条件时显示消息, 不满足时不显示消息

消息从 condition() == true 中的集合中选取

Default Value
  • FHelp.T

(nullable) priority :number

消息优先级

优先级, 高优先级消息将会覆盖低优先级的消息

Type:
  • number
Default Value
  • 2

text :string|Array.<string>

消息文本

在提示框中显示的消息文本, 可以是 string 也可以是 string[]

是数组的话将会从其中随机选取

Type:
  • string | Array.<string>
Default Value
  • ''

(nullable) type :string

消息类型

消息的类型, 例如: hour, date, event 等等

也可以自定义类型用于自定义插件

Type:
  • string
Default Value
  • null

(static, readonly) priority :number

默认优先级

getter: 消息的默认优先级

Type:
  • number
Default Value
  • 2