显示文本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
; 打印文本(默认屏幕中央且为黑底白字)
[CommandListPrintText]
; Input:
; Resource\WWMIv1\Text
; Resource\WWMIv1\TextParams
;
; 使用示例
Resource\WWMIv1\Text = ref ResourceTextExample
Resource\WWMIv1\TextParams = ref ResourceTextParamsExample
run = CommandList\WWMIv1\PrintText

;文本内容
[ResourceTextExample]
type = Buffer
data = "Hello World!"

;文本格式
[ResourceTextParamsExample]
type = StructuredBuffer
array = 1
data = R32_FLOAT -0.25 +0.15 +0.25 -0.05 1.00 1.00 1.00 1.00 0.00 0.00 0.00 0.95 0.02 0.05 2 1 1 1.0
; x1-^ y1-^ x2-^ y2-^ | R-^ G-^ B-^ A-^ | R-^ G-^ B-^ A-^ | ^-H V-^ | ^ ^ | ^- text alignment: 0=left 1=center 2=right | ^- font scale
; Rectangle (range -1:+1) | Text Color | Background Color | Border | ^- h/v-anchor: 0=none 1=left/top 2=center 3=right/bottom

;运行语句
run = CommandListPrintText

;代码案例来自文件: ..\XXMI Launcher\WWMI\Core\WWMI\WuWa-Model-Importer.ini