Dlg accordionList » 历史记录 » 版本 1
tejie, 2025-10-16 15:22
1 | 1 | tejie | h4. *_{color:green}<accordionList:_* |
---|---|---|---|
2 | |||
3 | 设置风琴列表样式 |
||
4 | |||
5 | 标签:命令定义^<accordionList |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 |参数3 |参数4 |参数5 |参数6 | |
||
9 | |accordionList|风琴列表内容|内部按钮样式|列表名称|x坐标,y坐标|列表高度,是否滑动|外部按钮样式| |
||
10 | |||
11 | |||
12 | *说明* |
||
13 | |^.参数1|风琴列表内容,由一组 [[dlg_acdBtn_|风琴列表外部按钮]] 组合构成 |
||
14 | %{color:lightGrey}举例 |
||
15 | <notextile>mov s$风琴列表 (acdBtn:<acdItem:1:内部文字1_1/@按钮1_1><acdItem:2:内部文字1_2/@按钮1_2><acdItem:3:内部文字1_3/@按钮1_3>:1:外部文字1/@按钮1)</notextile> |
||
16 | <notextile>inc s$风琴列表 (acdBtn:<acdItem:1:内部文字2_1/@按钮2_1><acdItem:2:内部文字2_2/@按钮2_2><acdItem:3:内部文字2_3/@按钮2_3>:1:外部文字2/@按钮2)</notextile>%| |
||
17 | |^.参数2|内部按钮样式 |
||
18 | 参数2.1: 按钮文字x坐标,按钮文字y坐标 |
||
19 | 参数2.2: 按钮选中图片,按钮未选中图片 |
||
20 | 参数2.3: 按钮文字大小,选中字色,未选中字色 |
||
21 | 参数2.4: 选中索引 |
||
22 | %{color:lightGrey}举例 |
||
23 | mov s$内部按钮样式 2,3:huishouwupin_xuanzhongkuang,denglu_liebiao_weixuanzhong:30,168,232:1%| |
||
24 | |参数3|列表名称| |
||
25 | |^.参数4|x坐标,y坐标 |
||
26 | 风琴列表在自定义对话框中的坐标| |
||
27 | |参数5|列表高度,是否滑动(1可滑动;0不可滑动)| |
||
28 | |^.参数6|外部按钮样式 |
||
29 | 参数6.1: 按钮文字x坐标,按钮文字y坐标 |
||
30 | 参数6.2: 按钮选中图片,按钮未选中图片 |
||
31 | 参数6.3: 按钮文字大小,选中字色,未选中字色 |
||
32 | 参数6.4: 选中索引 |
||
33 | %{color:lightGrey}举例 |
||
34 | mov s$外部按钮样式 0,0:lc_shijieliaotian_xuanzhong,lc_shijieliaotian_weixuanzhong:35,24,128:1%| |
||
35 | |||
36 | *{color:deepPink}#say命令中出现 <accordionList: 命令时,#say中<>模块必须以“\”结尾 |
||
37 | 参见以下脚本示例* |
||
38 | |||
39 | - |
||
40 | - |
||
41 | |||
42 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
43 | |||
44 | |||
45 | |||
46 | *使用前提1* |
||
47 | 请开启配置开关"isUseCustomOKPanel" |
||
48 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
49 | |配置节点|[[tjconfig|[tjconfig]]] | |
||
50 | |配置项 |isUseCustomOkPanel=1 | |
||
51 | |||
52 | - |
||
53 | - |
||
54 | |||
55 | h4. %{color:LightSeaGreen}示例--手风琴按钮列表原型% |
||
56 | |||
57 | bq. [<notextile>@</notextile>main] |
||
58 | #act |
||
59 | [[goto]] <notextile>@</notextile>按钮列表初始化 |
||
60 | [[goto]] <notextile>@</notextile>外部按钮样式 |
||
61 | [[goto]] <notextile>@</notextile>内部按钮样式 |
||
62 | [[mov]] n$按钮1选中 0 |
||
63 | [[goto]] <notextile>@</notextile>按钮1 |
||
64 | [[goto]] <notextile>@</notextile>显示界面 |
||
65 | [[goto]] <notextile>@按钮<$str(s$初始选中)>_1</notextile> |
||
66 | |
||
67 | [<notextile>@</notextile>按钮列表初始化] |
||
68 | #act |
||
69 | [[mov]] s$风琴列表 ([[dlg_acdBtn_|acdBtn]]:<[[dlg_acdItem_|acdItem]]:1:内部文字1_1/<notextile>@</notextile>按钮1_1><acdItem:2:内部文字1_2/<notextile>@</notextile>按钮1_2>:1:外部文字1/<notextile>@</notextile>按钮1) |
||
70 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字2_1/<notextile>@</notextile>按钮2_1><acdItem:2:内部文字2_2/<notextile>@</notextile>按钮2_2>:2:外部文字2/<notextile>@</notextile>按钮2) |
||
71 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字3_1/<notextile>@</notextile>按钮3_1><acdItem:2:内部文字3_2/<notextile>@</notextile>按钮3_2>:3:外部文字3/<notextile>@</notextile>按钮3) |
||
72 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字4_1/<notextile>@</notextile>按钮4_1><acdItem:2:内部文字4_2/<notextile>@</notextile>按钮4_2>:4:外部文字4/<notextile>@</notextile>按钮4) |
||
73 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字5_1/<notextile>@</notextile>按钮5_1><acdItem:2:内部文字5_2/<notextile>@</notextile>按钮5_2>:5:外部文字5/<notextile>@</notextile>按钮5) |
||
74 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字6_1/<notextile>@</notextile>按钮6_1><acdItem:2:内部文字6_2/<notextile>@</notextile>按钮6_2>:6:外部文字6/<notextile>@</notextile>按钮6) |
||
75 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字7_1/<notextile>@</notextile>按钮7_1><acdItem:2:内部文字7_2/<notextile>@</notextile>按钮7_2>:7:外部文字7/<notextile>@</notextile>按钮7) |
||
76 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字8_1/<notextile>@</notextile>按钮8_1><acdItem:2:内部文字8_2/<notextile>@</notextile>按钮8_2>:8:外部文字8/<notextile>@</notextile>按钮8) |
||
77 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字9_1/<notextile>@</notextile>按钮9_1><acdItem:2:内部文字9_2/<notextile>@</notextile>按钮9_2>:9:外部文字9/<notextile>@</notextile>按钮9) |
||
78 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字10_1/<notextile>@</notextile>按钮10_1><acdItem:2:内部文字10_2/<notextile>@</notextile>按钮10_2>:10:外部文字10/<notextile>@</notextile>按钮10) |
||
79 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字11_1/<notextile>@</notextile>按钮11_1><acdItem:2:内部文字11_2/<notextile>@</notextile>按钮11_2>:11:外部文字11/<notextile>@</notextile>按钮11) |
||
80 | [[inc]] s$风琴列表 (acdBtn:<acdItem:1:内部文字12_1/<notextile>@</notextile>按钮12_1><acdItem:2:内部文字12_2/<notextile>@</notextile>按钮12_2>:12:外部文字12/<notextile>@</notextile>按钮12) |
||
81 | |
||
82 | [<notextile>@</notextile>外部按钮样式] |
||
83 | #if |
||
84 | #act |
||
85 | %{color:lightGrey};--按钮文本偏移x,按钮文本偏移y:选中图片名,未选中图片名:按钮文字大小,选中字色,未选中字色:选中索引--% |
||
86 | [[mov]] s$初始选中 2 |
||
87 | [[mov]] s$外部按钮样式 0,0:anniuhhuang_4zi_da,anniu_lan_4zi:35,24,128:<$str(s$初始选中)> |
||
88 | |
||
89 | [<notextile>@</notextile>内部按钮样式] |
||
90 | #act |
||
91 | %{color:lightGrey};--按钮文本偏移x,按钮文本偏移y:选中图片名,未选中图片名:按钮文字大小,选中字色,未选中字色:选中索引--% |
||
92 | [[mov]] s$内部按钮样式 2,3:huishouwupin_xuanzhongkuang,denglu_liebiao_weixuanzhong:30,168,232:1 |
||
93 | |
||
94 | [<notextile>@</notextile>内容刷新] |
||
95 | #act |
||
96 | [[mov]] s$item ( |
||
97 | [[inc]] s$item <itemSize:905:325:1> |
||
98 | [[inc]] s$item <text:<$str(s$测试内容)>:0:0> |
||
99 | [[inc]] s$item ) |
||
100 | [[mov]] s$itemList <$str(s$item)> |
||
101 | [[refreshItem]] 刷新内容 1 s$item 0 |
||
102 | |
||
103 | [<notextile>@</notextile>显示界面] |
||
104 | #act |
||
105 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
106 | #say |
||
107 | <[[dlg_panelsize_|panelsize2]]:1200:900>*{color:deepPink}\* |
||
108 | <notextile><</notextile>*{color:green}accordionList*:<$str(s$风琴列表)>:<$str(s$内部按钮样式)>:手风琴列表:0,0:800,1:<$str(s$外部按钮样式)>>*{color:deepPink}\* |
||
109 | <[[dlg_itemList_|itemList]]:<$str(s$itemList)>:刷新内容,1:225:10:1,835,0:5>*{color:deepPink}\* |
||
110 | |
||
111 | [<notextile>@</notextile>按钮1] |
||
112 | #act |
||
113 | [[mov]] n$外部按钮 1 |
||
114 | [[goto]] <notextile>@</notextile>内部按钮 |
||
115 | |
||
116 | [<notextile>@</notextile>按钮2] |
||
117 | #act |
||
118 | [[mov]] n$外部按钮 2 |
||
119 | [[goto]] <notextile>@</notextile>内部按钮 |
||
120 | |
||
121 | [<notextile>@</notextile>内部按钮] |
||
122 | #if |
||
123 | [[equal]] <$str(n$按钮<$str(n$外部按钮)>选中)> 0 |
||
124 | #act |
||
125 | [[goto]] <notextile>@按钮<$str(n$外部按钮)>_1</notextile> |
||
126 | #elseAct |
||
127 | [[mov]] s$内部选中 <$str(n$按钮<$str(n$外部按钮)>选中)> |
||
128 | [[goto]] <notextile>@</notextile>按钮<$str(n$外部按钮)>_<$str(s$内部选中)> |
||
129 | |
||
130 | [<notextile>@</notextile>按钮1_1] |
||
131 | #act |
||
132 | [[mov]] n$按钮1选中 1 |
||
133 | [[mov]] s$测试内容 按钮1_1专属内容 |
||
134 | [[goto]] <notextile>@</notextile>内容刷新 |
||
135 | |
||
136 | [<notextile>@</notextile>按钮1_2] |
||
137 | #act |
||
138 | [[mov]] n$按钮1选中 2 |
||
139 | [[mov]] s$测试内容 按钮1_2专属内容 |
||
140 | [[goto]] <notextile>@</notextile>内容刷新 |
||
141 | |
||
142 | [<notextile>@</notextile>按钮2_1] |
||
143 | #act |
||
144 | [[mov]] n$按钮2选中 1 |
||
145 | [[mov]] s$测试内容 按钮2_1专属内容 |
||
146 | [[goto]] <notextile>@</notextile>内容刷新 |
||
147 | |
||
148 | [<notextile>@</notextile>按钮2_2] |
||
149 | #act |
||
150 | [[mov]] n$按钮2选中 2 |
||
151 | [[mov]] s$测试内容 按钮2_2专属内容 |
||
152 | [[goto]] <notextile>@</notextile>内容刷新 |