AddItemRedPoint » 历史记录 » 版本 2
tejie, 2024-05-28 13:27
1 | 1 | yangdefeng | _*%{color:green}addItemRedPoint%*_ |
---|---|---|---|
2 | 给对话框list组件指定单元添加红点。 |
||
3 | 支持以下list组件 |
||
4 | [[Dlg_btnList_|btnList]] |
||
5 | [[Dlg_itemList_|itemList]] |
||
6 | [[Dlg_itemGrid_|itemGrid]] |
||
7 | [[Dlg_iconGrid_|iconGrid]] |
||
8 | |||
9 | 标签:命令定义|addItemRedPoint |
||
10 | |||
11 | *格式* |
||
12 | |命令名 |参数1 |参数2 |参数3 | |
||
13 | |addItemRedPoin |列表名称 |单元id|坐标x,y| |
||
14 | |||
15 | *说明* |
||
16 | * 参数1: 列表名称,对话框中的哪个列表 |
||
17 | |||
18 | * 参数2: 单元id,删除列表是哪个单元上的红点 |
||
19 | |||
20 | * 参数3: 坐标x,y |
||
21 | 0,0点为单元的右上角 |
||
22 | |||
23 | - |
||
24 | - |
||
25 | |||
26 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
27 | |||
28 | *使用前提1* |
||
29 | 请开启配置开关"isUseCustomOKPanel" |
||
30 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
31 | |配置节点|[[tjconfig|[tjconfig]]] | |
||
32 | |配置项 |isUseCustomOkPanel=1 | |
||
33 | |||
34 | |||
35 | *使用前提2* |
||
36 | 请配置补丁资源"lc",即找到以下配置项,加入 %{color:deeppink}lc% |
||
37 | |配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt | |
||
38 | |配置节点|[tjconfig] | |
||
39 | |配置项 |patch=aa,bb,lc | |
||
40 | |||
41 | - |
||
42 | - |
||
43 | |||
44 | h4. %{color:fireBrick}itemGrid示例% |
||
45 | |||
46 | bq. [<notextile>@</notextile>item初始化] |
||
47 | #act |
||
48 | [[mov]] s$item |
||
49 | [[inc]] s$item (<[[dlg_itemIndex_|itemIndex]]:1> |
||
50 | inc s$item <[[dlg_img_|img]]:denglu_liebiao_weixuanzhong:25:25:0:1:500:200> |
||
51 | inc s$item <[[dlg_itemShow_|itemShow]]:4:0:350:80:1:0> |
||
52 | inc s$item <[[dlg_text_|text]]:开启时间:40:100> |
||
53 | inc s$item <text:~~~10:00-11:00~~~:160:100> |
||
54 | inc s$item ) |
||
55 | |
||
56 | inc s$item (<itemIndex:2> |
||
57 | inc s$item <img:denglu_liebiao_weixuanzhong:25:25:0:1:500:200> |
||
58 | inc s$item <itemShow:4:0:350:80:1:0> |
||
59 | inc s$item <text:开启时间:40:100> |
||
60 | inc s$item <text:~~~11:00-12:00~~~:160:100> |
||
61 | inc s$item ) |
||
62 | |
||
63 | inc s$item (<itemIndex:3> |
||
64 | inc s$item <img:denglu_liebiao_weixuanzhong:25:25:0:1:500:200> |
||
65 | inc s$item <itemShow:4:0:350:80:1:0> |
||
66 | inc s$item <text:开启时间:40:100> |
||
67 | inc s$item <text:~~~11:00-12:00~~~:160:100> |
||
68 | inc s$item ) |
||
69 | |
||
70 | inc s$item (<itemIndex:4> |
||
71 | inc s$item <img:denglu_liebiao_weixuanzhong:25:25:0:1:500:200> |
||
72 | inc s$item <itemShow:4:0:350:80:1:0> |
||
73 | inc s$item <text:开启时间:40:100> |
||
74 | inc s$item <text:~~~11:00-12:00~~~:160:100> |
||
75 | inc s$item ) |
||
76 | |
||
77 | [<notextile>@</notextile>main] |
||
78 | #act |
||
79 | goto <notextile>@</notextile>item初始化 |
||
80 | [[openMerchantBigDlg]] ok_di 0 0 0 1 0 0 |
||
81 | #say |
||
82 | 2 | tejie | <[[dlg_panelSize_|panelSize2]]:1500:700>\ |
83 | 1 | yangdefeng | <[[dlg_itemGrid_|itemGrid]]:<$str(s$item)>:多排单元组列表,1,0,1:0:0:500,200:1,2,650,1:0>\ |
84 | <text:加红点:1200:50/<notextile>@</notextile>加红点>\ |
||
85 | <text:删红点:1200:150/<notextile>@</notextile>删红点>\ |
||
86 | |
||
87 | [<notextile>@</notextile>加红点] |
||
88 | #act |
||
89 | *{color:green}addItemRedPoint* 多排单元组列表 1 0,0 |
||
90 | |
||
91 | [<notextile>@</notextile>删红点] |
||
92 | #act |
||
93 | [[delItemRedPoint]] 多排单元组列表 1 |
||
94 | |||
95 | - |
||
96 | - |
||
97 | |||
98 | h4. %{color:fireBrick}btnList示例% |
||
99 | |||
100 | bq. [<notextile>@</notextile>main] |
||
101 | #act |
||
102 | goto <notextile>@</notextile>按钮列表 |
||
103 | goto <notextile>@</notextile>会员 |
||
104 | goto <notextile>@</notextile>显示界面 |
||
105 | |
||
106 | [<notextile>@</notextile>按钮列表] |
||
107 | #act |
||
108 | [[mov]] s$btnList (btnItem:ceye01:ceye02:1:254,150:1:-6,20:会员/<notextile>@</notextile>会员) |
||
109 | [[inc]] s$btnList (btnItem:ceye01:ceye02:2:254,150:1:-6,20:活动/<notextile>@</notextile>活动) |
||
110 | |
||
111 | [<notextile>@</notextile>显示界面] |
||
112 | #act |
||
113 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
114 | #say |
||
115 | 2 | tejie | <[[dlg_panelSize_|panelSize2]]:600:650> |
116 | 1 | yangdefeng | <[[dlg_btnList_|btnList]]:<$str(s$btnList)>:会员和活动按钮:572:75:1,600,0:30:1>\ |
117 | <[[dlg_itemList_|itemList]]:<$str(s$显示内容)>:显示内容,1:0:0:1,500,0:0>\ |
||
118 | <[[dlg_text_|text]]:加红点:150:550/<notextile>@</notextile>加红点>\ |
||
119 | <text:删红点:300:550/<notextile>@</notextile>删红点>\ |
||
120 | [<notextile>@</notextile>会员] |
||
121 | #act |
||
122 | mov s$显示内容 (<itemSize:500:325:1> |
||
123 | inc s$显示内容 <text:会员页面展示内容{scolor=222}:50:50> |
||
124 | inc s$显示内容 ) |
||
125 | [[refreshItem]] 显示内容 1 s$显示内容 0 |
||
126 | |
||
127 | [<notextile>@</notextile>活动] |
||
128 | #act |
||
129 | mov s$显示内容 (<itemSize:500:325:1> |
||
130 | inc s$显示内容 <text:活动页面展示内容{scolor=254}:50:50> |
||
131 | inc s$显示内容 ) |
||
132 | refreshItem 显示内容 1 s$显示内容 0 |
||
133 | |
||
134 | [<notextile>@</notextile>加红点] |
||
135 | #act |
||
136 | *{color:green}addItemRedPoint* 会员和活动按钮 1 0,0 |
||
137 | |
||
138 | [<notextile>@</notextile>删红点] |
||
139 | #act |
||
140 | [[delItemRedPoint]] 会员和活动按钮 1 |
||
141 | |||
142 | - |
||
143 | - |
||
144 | |||
145 | h4. %{color:fireBrick}itemList示例% |
||
146 | |||
147 | bq. [<notextile>@</notextile>item初始化] |
||
148 | #act |
||
149 | [[mov]] s$item1 ( |
||
150 | [[inc]] s$item1 <[[dlg_itemSize_|itemSize]]:500:225:1> |
||
151 | inc s$item1 <[[dlg_img_|img]]:denglu_liebiao_weixuanzhong:0:0:0:1:500:225> |
||
152 | inc s$item1 <[[dlg_itemShow_|itemShow]]:4:0:350:100:1:0> |
||
153 | inc s$item1 <[[dlg_text_|text]]:特戒天魔降临{scolor=150}:30:60> |
||
154 | inc s$item1 <text:奖励预览:340:60> |
||
155 | inc s$item1 <text:开启时间:30:120> |
||
156 | inc s$item1 <text:~~~10:00-11:00~~~:160:120> |
||
157 | inc s$item1 ) |
||
158 | |
||
159 | mov s$item2 ( |
||
160 | inc s$item2 <itemSize:500:225:2> |
||
161 | inc s$item2 <img:denglu_liebiao_weixuanzhong:0:0:0:1:500:225> |
||
162 | inc s$item2 <img:lc_zi:350:60:1:1> |
||
163 | inc s$item2 <text:特戒集字有礼{scolor=150}:30:60> |
||
164 | inc s$item2 <text:开启时间:30:100> |
||
165 | inc s$item2 <text:~~~11:00-12:00~~~:160:100> |
||
166 | inc s$item2 ) |
||
167 | |
||
168 | mov s$itemList <$str(s$item1)> |
||
169 | inc s$itemList <$str(s$item2)> |
||
170 | |
||
171 | [<notextile>@</notextile>main] |
||
172 | #act |
||
173 | goto <notextile>@</notextile>item初始化 |
||
174 | [[openMerchantBigDlg]] ok_di 4 0 0 1 0 0 |
||
175 | #say |
||
176 | 2 | tejie | <[[dlg_panelSize_|panelSize2]]:700:900>\ |
177 | 1 | yangdefeng | <[[dlg_itemList_|itemList]]:<$str(s$itemList)>:活动列表,2:0:0:1,500:5>\ |
178 | <text:加红点:150:800/<notextile>@</notextile>加红点>\ |
||
179 | <text:删红点:300:800/<notextile>@</notextile>删红点>\ |
||
180 | |
||
181 | [<notextile>@</notextile>加红点] |
||
182 | #act |
||
183 | *{color:green}addItemRedPoint* 活动列表 1 0,0 |
||
184 | |
||
185 | [<notextile>@</notextile>删红点] |
||
186 | #act |
||
187 | [[delItemRedPoint]] 活动列表 1 |