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