项目

一般

简介

Dlg imgButton » 历史记录 » 版本 4

yangdefeng, 2022-10-14 16:44

1 1 machenhe
_*{color:green}imgButton*_
2
支持配置文字的图片按钮
3
4
标签:命令定义|dlg_imgButton
5
6
*格式*
7 4 yangdefeng
|命令名   | 参数1           |参数2|参数3|参数4   |参数5|
8
|imgButton|图片名称,是否描边|X偏移|Y偏移|按钮文字|跳转 |
9 1 machenhe
10
*说明*
11 4 yangdefeng
* 参数1: 图片名称,是否描边
12
** 图片资源名称,参见[[资源编辑器]]
13
** 按钮文字是否描边
14
1为描边
15
0为不描边
16
缺省为描边
17 1 machenhe
18
* 参数2: X偏移,在自定义对话框中的X偏移
19
20
* 参数3: Y偏移,在自定义对话框中的Y偏移
21
22
* 参数4: 按钮文字及字色
23
格式: 按钮文字{字色}
24
示例
25
按钮文字{autoColor=250,251,252,253,254}
26
按钮文字{fColor=251}
27
28
* 参数5: 跳转标签
29
30
31
-
32
-
33
34
*%{color:deepskyblue}特戒引擎脚本示例:%*
35
36
*使用前提1*
37 3 yangdefeng
请开启配置开关"isUseCustomOKPanel"
38 2 yangdefeng
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
39 1 machenhe
|配置节点|[tjconfig]					|
40
|配置项  |isUseCustomOkPanel=1				|
41
42
43
*使用前提2*
44 2 yangdefeng
请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc%
45
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
46 1 machenhe
|配置节点|[tjconfig]					|
47
|配置项  |patch=aa,bb,lc				|
48
49
-
50
-
51
52
bq. [<notextile>@</notextile>main]
53
#act
54
[[openMerchantBigDlg]] ok_di 0 0 0 1 0 0
55
#say
56
<notextile><</notextile>*{color:green}imgButton*:lc_shijieliaotian_xuanzhong:50:50:点击按钮{AUTOCOLOR=250,251,252,253,254}/<notextile>@</notextile>跳转标签>
57
&nbsp;
58
[<notextile>@</notextile>跳转标签]
59
#act
60
[[close]]
61
[[messageBox]] 欢迎使用特戒引擎