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