创建消息数据实例
- Source
Members
(nullable) condition :TBoolCallback
条件函数
条件函数, 满足条件时显示消息, 不满足时不显示消息
消息从 condition() == true
中的集合中选取
Type:
- Default Value
- FHelp.T
- Source
- See
(nullable) priority :number
消息优先级
优先级, 高优先级消息将会覆盖低优先级的消息
Type:
- number
- Default Value
- 2
- Source
text :string|Array.<string>
消息文本
在提示框中显示的消息文本, 可以是 string 也可以是 string[]
是数组的话将会从其中随机选取
Type:
- string |
Array.<string>
- Default Value
- ''
- Source
(nullable) type :string
消息类型
消息的类型, 例如: hour, date, event 等等
也可以自定义类型用于自定义插件
Type:
- string
- Default Value
- null
- Source
(static, readonly) priority :number
默认优先级
getter: 消息的默认优先级
Type:
- number
- Default Value
- 2
- Source