项目

一般

简介

Dlg btnItem » 历史记录 » 版本 3

machenhe, 2022-04-29 14:14

1 3 machenhe
_{color:green}btnItem_
2 1 machenhe
设置tab按钮列表中单个按钮的各种属性
3
4 2 machenhe
标签:命令定义|<btnItem
5 1 machenhe
6
*格式*
7
|命令名 |参数1             |参数2               |参数3 |参数4                  |参数5 |参数6              |参数7             |
8
|btnItem|选中状态图片资源名|未选中状态图片资源名|listId|选中字色id,未选中字色id|横竖排|文字偏移x,文字偏移y|文字文本与跳转标签|
9
10
11
*说明*
12
* 参数1:该tab按钮处于选中状态时显示的图片资源名
13
(图片资源参见[[资源编辑器]])
14
15
* 参数2:该tab按钮处于未选中状态时显示的图片资源名
16
17
* 参数3:listId
18
该按钮在btnList中的顺序id
19
id从1开始从小到大顺序排列,用于标识是否为当前选中的tab按钮
20
21
* 参数4:选中字色id,未选中字色id
22
[[颜色编码id]][0-255] 
23
24
* 参数5:按钮文字的显示方式
25
** 0-横排显示
26
** 1-竖排显示
27
28
* 参数6:文字偏移x,文字偏移y
29
30
* 参数7:按钮文字的内容/@跳转标签
31
32
* 参数1-7以\":\"分隔
33
34
* %{color:deepPink}每个按钮单元需要包含在小括号中%
35
36
37
38
-
39
-
40
41
*%{color:deepskyblue}特戒引擎脚本示例:%*
42
43
*使用前提1*
44
请开启配置开关\"isUseCustomOKPanel\"
45
|配置文件|...\\Mir200\\Tejieconfig\\Tejieconfig.txt	|
46
|配置节点|[tjconfig]					|
47
|配置项  |isUseCustomOkPanel=1				|
48
49
50
*使用前提2*
51
请配置补丁资源\"lc\",即找到以下配置项,加入 %{color:deeppink}lc%
52
|配置文件|...\\Mir200\\Tejieconfig\\Tejieconfig.txt	|
53
|配置节点|[tjconfig]					|
54
|配置项  |patch=aa,bb,lc				|
55
56
-
57
-
58
59
bq. [<notextile>@</notextile>main]
60
#act
61
goto <notextile>@</notextile>按钮列表
62
goto <notextile>@</notextile>会员
63
&nbsp;
64
[<notextile>@</notextile>按钮列表]
65
#act
66
[[mov]] s$btnList (*{color:green}btnItem*:ceye01:ceye02:1:254,150:1:-6,20:会员/<notextile>@</notextile>会员)
67
[[inc]] s$btnList (btnItem:ceye01:ceye02:2:254,150:1:-6,20:活动/<notextile>@</notextile>活动)
68
&nbsp;
69
[<notextile>@</notextile>会员]
70
#act
71
[[openMerchantBigDlg]] ok_di 4 0 0 1 0 0
72
#say
73
<[[dlg_panelsize_|panelSize]]:600:650>
74
<[[dlg_btnList_|btnList]]:<$str(s$btnList)>:会员和活动按钮:572:75:1,600:30:1>
75
<[[dlg_text_|text]]:会员页面展示内容{scolor=222}:50:50>
76
&nbsp;
77
[<notextile>@</notextile>活动]
78
#act
79
openMerchantBigDlg ok_di 4 0 0 1 0 0
80
#say
81
<panelsize:600:650>
82
<btnList:<$str(s$btnList)>:会员和活动按钮:572:75:1,600:30:2>
83
<text:活动页面展示内容{scolor=254}:50:50>