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