Dlg btnList » 历史记录 » 版本 2
yangdefeng, 2022-05-08 00:17
1 | 1 | machenhe | _*{color:green}btnList*_ |
---|---|---|---|
2 | 定义tab按钮组的各种属性 |
||
3 | |||
4 | 标签:命令定义|dlg_btnList |
||
5 | |||
6 | *格式* |
||
7 | |||
8 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 |参数6 |参数7 | |
||
9 | |btnList|按钮列表内容|按钮列表名称|list相对于对话框X偏移|list相对于对话框Y偏移|纵横宽高|按钮字号|选中按钮id| |
||
10 | |||
11 | |||
12 | *说明* |
||
13 | |||
14 | * 参数1:由一组[[dlg_btnItem_|btnItem]]组成的按钮列表,通过变量赋值方式实现 |
||
15 | |||
16 | * 参数2:按钮列表名称,区分同一个界面中不同的按钮列表 |
||
17 | |||
18 | * 参数3:列表相对于对话框的X偏移值 |
||
19 | |||
20 | * 参数4:列表相对于对话框的Y偏移值 |
||
21 | |||
22 | * 参数5:列表的显示方式与滑动设置 |
||
23 | |1,N |纵向列表可滑动,N为列表高度| |
||
24 | |1,N,1|纵向列表可滑动,N为列表高度| |
||
25 | |0,N |横向列表可滑动,N为列表宽度| |
||
26 | |0,N,1|横向列表可滑动,N为列表宽度| |
||
27 | |1,N,0|纵向列表不滑动,N为列表高度| |
||
28 | |0,N,0|横向列表不滑动,N为列表宽度| |
||
29 | |||
30 | * 参数6:按钮字号 |
||
31 | |||
32 | * 参数7:选中按钮的id |
||
33 | 该按钮列表中的第几个tab按钮显示成选中状态 |
||
34 | |||
35 | - |
||
36 | - |
||
37 | |||
38 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
39 | |||
40 | *使用前提1* |
||
41 | 2 | yangdefeng | 请开启配置开关"isUseCustomOKPanel" |
42 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
43 | 1 | machenhe | |配置节点|[tjconfig] | |
44 | |配置项 |isUseCustomOkPanel=1 | |
||
45 | |||
46 | |||
47 | *使用前提2* |
||
48 | 2 | yangdefeng | 请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc% |
49 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
50 | 1 | machenhe | |配置节点|[tjconfig] | |
51 | |配置项 |patch=aa,bb,lc | |
||
52 | |||
53 | - |
||
54 | - |
||
55 | |||
56 | bq. [<notextile>@</notextile>main] |
||
57 | #act |
||
58 | goto <notextile>@</notextile>按钮列表 |
||
59 | goto <notextile>@</notextile>会员 |
||
60 | |
||
61 | [<notextile>@</notextile>按钮列表] |
||
62 | #act |
||
63 | [[mov]] s$btnList ([[dlg_btnItem_|btnItem]]:ceye01:ceye02:1:254,150:1:-6,20:会员/<notextile>@</notextile>会员) |
||
64 | [[inc]] s$btnList (btnItem:ceye01:ceye02:2:254,150:1:-6,20:活动/<notextile>@</notextile>活动) |
||
65 | |
||
66 | [<notextile>@</notextile>会员] |
||
67 | #act |
||
68 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
69 | #say |
||
70 | <[[dlg_panelsize_|panelSize]]:600:650> |
||
71 | <notextile><</notextile>*{color:green}btnList*:<$str(s$btnList)>:会员和活动按钮:572:75:1,600,0:30:1> |
||
72 | <[[dlg_text_|text]]:会员页面展示内容{scolor=222}:50:50> |
||
73 | |
||
74 | [<notextile>@</notextile>活动] |
||
75 | #act |
||
76 | openMerchantBigDlg ok_di 4 0 0 1 0 0 |
||
77 | #say |
||
78 | <panelsize:600:650> |
||
79 | <btnList:<$str(s$btnList)>:会员和活动按钮:572:75:1,600,0:30:2> |
||
80 | <text:活动页面展示内容{scolor=254}:50:50> |