转盘效果 » 历史记录 » 版本 1
tejie, 2023-12-06 17:58
| 1 | 1 | tejie | h4. %{color:firebrick}转盘效果% |
|---|---|---|---|
| 2 | |||
| 3 | *模块说明* |
||
| 4 | 转盘效果显示逻辑展示 |
||
| 5 | |||
| 6 | 以下示例用到了UI3的资源配置 |
||
| 7 | "配置方法说明":https://bbs.tejiegm.com/forum.php?mod=viewthread&tid=1513&extra=page%3D1&_dsign=b5aa9913 |
||
| 8 | |||
| 9 | - |
||
| 10 | - |
||
| 11 | |||
| 12 | h4. *%{color:deepskyblue}展示效果:%* |
||
| 13 | !转盘效果.gif! |
||
| 14 | |||
| 15 | - |
||
| 16 | - |
||
| 17 | |||
| 18 | |||
| 19 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 20 | |||
| 21 | [<notextile>@</notextile>main] |
||
| 22 | #if |
||
| 23 | #act |
||
| 24 | goto <notextile>@</notextile>图片元素布局 |
||
| 25 | goto <notextile>@</notextile>初始显示页面 |
||
| 26 | <notextile></notextile> |
||
| 27 | [<notextile>@</notextile>图片元素布局] |
||
| 28 | #if |
||
| 29 | #act |
||
| 30 | mov s$显示底图 <img:shengxiao_dipan:666:0:> |
||
| 31 | mov s$开始按钮 <imgButton:wx_dengluanniu:507:703:一发入魂/<notextile>@</notextile>转盘启动> |
||
| 32 | mov s$生肖完整图 <img:shengxiao_shu:1080:122/<notextile>@</notextile>生肖选中(1)> |
||
| 33 | inc s$生肖完整图 <img:shengxiao_niu:1221:164/<notextile>@</notextile>生肖选中(2)> |
||
| 34 | inc s$生肖完整图 <img:shengxiao_hu:1319:269/<notextile>@</notextile>生肖选中(3)> |
||
| 35 | inc s$生肖完整图 <img:shengxiao_tu:1367:412/<notextile>@</notextile>生肖选中(4)> |
||
| 36 | inc s$生肖完整图 <img:shengxiao_hou:1319:552/<notextile>@</notextile>生肖选中(5)> |
||
| 37 | inc s$生肖完整图 <img:shengxiao_she:1212:647/<notextile>@</notextile>生肖选中(6)> |
||
| 38 | inc s$生肖完整图 <img:shengxiao_ma:1080:683/<notextile>@</notextile>生肖选中(7)> |
||
| 39 | inc s$生肖完整图 <img:shengxiao_yang:948:647/<notextile>@</notextile>生肖选中(8)> |
||
| 40 | inc s$生肖完整图 <img:shengxiao_long:844:552/<notextile>@</notextile>生肖选中(9)> |
||
| 41 | inc s$生肖完整图 <img:shengxiao_ji:805:414/<notextile>@</notextile>生肖选中(10)> |
||
| 42 | inc s$生肖完整图 <img:shengxiao_gou:844:275/<notextile>@</notextile>生肖选中(11)> |
||
| 43 | inc s$生肖完整图 <img:shengxiao_zhu:931:164/<notextile>@</notextile>生肖选中(12)> |
||
| 44 | <notextile></notextile> |
||
| 45 | mov s$五行完整图 <img:wx_shilian_anniu01:1064:290:0:0.5,0/<notextile>@</notextile>五行竞猜(金)> |
||
| 46 | inc s$五行完整图 <img:wx_shilian_anniu01:1170:366:0:0.5,0/<notextile>@</notextile>五行竞猜(木)> |
||
| 47 | inc s$五行完整图 <img:wx_shilian_anniu01:1136:483:0:0.5,0/<notextile>@</notextile>五行竞猜(水)> |
||
| 48 | inc s$五行完整图 <img:wx_shilian_anniu01:997:483:0:0.5,0/<notextile>@</notextile>五行竞猜(火)> |
||
| 49 | inc s$五行完整图 <img:wx_shilian_anniu01:963:366:0:0.5,0/<notextile>@</notextile>五行竞猜(土)> |
||
| 50 | <notextile></notextile> |
||
| 51 | inc s$五行完整图 <text:金{scolor=151}:1099:318:100:35/<notextile>@</notextile>五行竞猜(金)> |
||
| 52 | inc s$五行完整图 <text:木{scolor=215}:1207:395:100:35/<notextile>@</notextile>五行竞猜(木)> |
||
| 53 | inc s$五行完整图 <text:水{scolor=146}:1171:513:100:35/<notextile>@</notextile>五行竞猜(水)> |
||
| 54 | inc s$五行完整图 <text:火{scolor=58}:1028:513.6:100:35/<notextile>@</notextile>五行竞猜(火)> |
||
| 55 | inc s$五行完整图 <text:土{scolor=47}:997:395:100:35/<notextile>@</notextile>五行竞猜(土)> |
||
| 56 | <notextile></notextile> |
||
| 57 | <notextile></notextile> |
||
| 58 | [<notextile>@</notextile>初始显示页面] |
||
| 59 | #if |
||
| 60 | #act |
||
| 61 | openMerchantBigDlg qd_diban 4 0 0 0 0 |
||
| 62 | #say |
||
| 63 | <$str(s$显示底图)> |
||
| 64 | <$str(s$生肖完整图)> |
||
| 65 | <$str(s$五行完整图)> |
||
| 66 | <$str(s$开始按钮)> |
||
| 67 | <notextile></notextile> |
||
| 68 | [<notextile>@</notextile>转盘启动] |
||
| 69 | #if |
||
| 70 | #act |
||
| 71 | movr N$五行旋转次数 2 5 |
||
| 72 | movr n$生肖旋转次数 2 5 |
||
| 73 | movr n$五行开奖 0 5 |
||
| 74 | movr n$生肖开奖 0 12 |
||
| 75 | mov N$五行当前显示开奖 0 |
||
| 76 | mov n$生肖当前显示开奖 0 |
||
| 77 | mov n$五行执行完毕 0 |
||
| 78 | mov n$生肖执行完毕 0 |
||
| 79 | mov s$五行选中状态 |
||
| 80 | mov s$生肖选中状态 |
||
| 81 | goto <notextile>@</notextile>显示抽奖画面 |
||
| 82 | <notextile></notextile> |
||
| 83 | [<notextile>@</notextile>显示抽奖画面] |
||
| 84 | #if |
||
| 85 | #act |
||
| 86 | openMerchantBigDlg qd_diban 4 0 0 0 0 |
||
| 87 | #say |
||
| 88 | <$str(s$显示底图)> |
||
| 89 | <$str(s$生肖完整图)> |
||
| 90 | <$str(s$五行完整图)> |
||
| 91 | <$str(s$开始按钮)> |
||
| 92 | <$str(s$五行选中状态)> |
||
| 93 | <$str(s$生肖选中状态)> |
||
| 94 | <notextile></notextile> |
||
| 95 | #or |
||
| 96 | not equal <$str(N$五行旋转次数)> 0 |
||
| 97 | not equal <$str(n$五行判断)> <$str(n$五行开奖)> |
||
| 98 | #act |
||
| 99 | goto <notextile>@</notextile>五行变换元素 |
||
| 100 | #elseact |
||
| 101 | mov n$五行执行完毕 1 |
||
| 102 | <notextile></notextile> |
||
| 103 | #if |
||
| 104 | equal <$str(n$五行执行完毕)> 0 |
||
| 105 | #act |
||
| 106 | break |
||
| 107 | <notextile></notextile> |
||
| 108 | #or |
||
| 109 | not equal <$str(N$生肖旋转次数)> 0 |
||
| 110 | not equal <$str(n$生肖判断)> <$str(n$生肖开奖)> |
||
| 111 | #act |
||
| 112 | goto <notextile>@</notextile>生肖变换元素 |
||
| 113 | <notextile></notextile> |
||
| 114 | <notextile></notextile> |
||
| 115 | <notextile></notextile> |
||
| 116 | [<notextile>@</notextile>生肖变换元素] |
||
| 117 | #if |
||
| 118 | equal <$str(N$生肖当前显示开奖)> 0 |
||
| 119 | #act |
||
| 120 | mov s$生肖选中状态 <img:shengxiao_xuanzhong01:1020:65> |
||
| 121 | inc N$生肖当前显示开奖 1 |
||
| 122 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 123 | mov n$生肖判断 0 |
||
| 124 | break |
||
| 125 | <notextile></notextile> |
||
| 126 | #if |
||
| 127 | equal <$str(N$生肖当前显示开奖)> 1 |
||
| 128 | #act |
||
| 129 | mov s$生肖选中状态 <img:shengxiao_xuanzhong02:1165:81> |
||
| 130 | inc N$生肖当前显示开奖 1 |
||
| 131 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 132 | mov n$生肖判断 1 |
||
| 133 | break |
||
| 134 | <notextile></notextile> |
||
| 135 | #if |
||
| 136 | equal <$str(N$生肖当前显示开奖)> 2 |
||
| 137 | #act |
||
| 138 | mov s$生肖选中状态 <img:shengxiao_xuanzhong03:1248:180> |
||
| 139 | inc N$生肖当前显示开奖 1 |
||
| 140 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 141 | mov n$生肖判断 2 |
||
| 142 | break |
||
| 143 | <notextile></notextile> |
||
| 144 | #if |
||
| 145 | equal <$str(N$生肖当前显示开奖)> 3 |
||
| 146 | #act |
||
| 147 | mov s$生肖选中状态 <img:shengxiao_xuanzhong04:1293:355> |
||
| 148 | inc N$生肖当前显示开奖 1 |
||
| 149 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 150 | mov n$生肖判断 3 |
||
| 151 | break |
||
| 152 | <notextile></notextile> |
||
| 153 | #if |
||
| 154 | equal <$str(N$生肖当前显示开奖)> 4 |
||
| 155 | #act |
||
| 156 | mov s$生肖选中状态 <img:shengxiao_xuanzhong05:1248:501> |
||
| 157 | inc N$生肖当前显示开奖 1 |
||
| 158 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 159 | mov n$生肖判断 4 |
||
| 160 | break |
||
| 161 | <notextile></notextile> |
||
| 162 | #if |
||
| 163 | equal <$str(N$生肖当前显示开奖)> 5 |
||
| 164 | #act |
||
| 165 | mov s$生肖选中状态 <img:shengxiao_xuanzhong06:1165:580> |
||
| 166 | inc N$生肖当前显示开奖 1 |
||
| 167 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 168 | mov n$生肖判断 5 |
||
| 169 | break |
||
| 170 | <notextile></notextile> |
||
| 171 | #if |
||
| 172 | equal <$str(N$生肖当前显示开奖)> 6 |
||
| 173 | #act |
||
| 174 | mov s$生肖选中状态 <img:shengxiao_xuanzhong07:1020:630> |
||
| 175 | inc N$生肖当前显示开奖 1 |
||
| 176 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 177 | mov n$生肖判断 6 |
||
| 178 | break |
||
| 179 | <notextile></notextile> |
||
| 180 | #if |
||
| 181 | equal <$str(N$生肖当前显示开奖)> 7 |
||
| 182 | #act |
||
| 183 | mov s$生肖选中状态 <img:shengxiao_xuanzhong08:844:587> |
||
| 184 | inc N$生肖当前显示开奖 1 |
||
| 185 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 186 | mov n$生肖判断 7 |
||
| 187 | break |
||
| 188 | <notextile></notextile> |
||
| 189 | #if |
||
| 190 | equal <$str(N$生肖当前显示开奖)> 8 |
||
| 191 | #act |
||
| 192 | mov s$生肖选中状态 <img:shengxiao_xuanzhong09:748:501> |
||
| 193 | inc N$生肖当前显示开奖 1 |
||
| 194 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 195 | mov n$生肖判断 8 |
||
| 196 | break |
||
| 197 | <notextile></notextile> |
||
| 198 | #if |
||
| 199 | equal <$str(N$生肖当前显示开奖)> 9 |
||
| 200 | #act |
||
| 201 | mov s$生肖选中状态 <img:shengxiao_xuanzhong10:739:354> |
||
| 202 | inc N$生肖当前显示开奖 1 |
||
| 203 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 204 | mov n$生肖判断 9 |
||
| 205 | break |
||
| 206 | <notextile></notextile> |
||
| 207 | #if |
||
| 208 | equal <$str(N$生肖当前显示开奖)> 10 |
||
| 209 | #act |
||
| 210 | mov s$生肖选中状态 <img:shengxiao_xuanzhong11:754:186> |
||
| 211 | inc N$生肖当前显示开奖 1 |
||
| 212 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 213 | mov n$生肖判断 10 |
||
| 214 | break |
||
| 215 | <notextile></notextile> |
||
| 216 | #if |
||
| 217 | equal <$str(N$生肖当前显示开奖)> 11 |
||
| 218 | #act |
||
| 219 | mov s$生肖选中状态 <img:shengxiao_xuanzhong12:850:82> |
||
| 220 | mov N$生肖当前显示开奖 0 |
||
| 221 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 222 | mov n$生肖判断 11 |
||
| 223 | dec N$生肖旋转次数 1 |
||
| 224 | break |
||
| 225 | <notextile></notextile> |
||
| 226 | <notextile></notextile> |
||
| 227 | [<notextile>@</notextile>五行变换元素] |
||
| 228 | #if |
||
| 229 | equal <$str(N$五行当前显示开奖)> 0 |
||
| 230 | #act |
||
| 231 | mov s$五行选中状态1 <img:wx_shilian_anniu01:1051:268:0:0.7,0> |
||
| 232 | inc s$五行选中状态1 <text:金{scolor=151}:1111:322:100:40> |
||
| 233 | mov s$五行选中状态 <$str(s$五行选中状态1)> |
||
| 234 | inc N$五行当前显示开奖 1 |
||
| 235 | mov n$五行判断 0 |
||
| 236 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 237 | break |
||
| 238 | <notextile></notextile> |
||
| 239 | #if |
||
| 240 | equal <$str(N$五行当前显示开奖)> 1 |
||
| 241 | #act |
||
| 242 | mov s$五行选中状态2 <img:wx_shilian_anniu01:1155:346:0:0.7,0> |
||
| 243 | inc s$五行选中状态2 <text:木{scolor=215}:1217:405:100:40> |
||
| 244 | mov s$五行选中状态 <$str(s$五行选中状态2)> |
||
| 245 | inc N$五行当前显示开奖 1 |
||
| 246 | mov n$五行判断 1 |
||
| 247 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 248 | break |
||
| 249 | <notextile></notextile> |
||
| 250 | #if |
||
| 251 | equal <$str(N$五行当前显示开奖)> 2 |
||
| 252 | #act |
||
| 253 | mov s$五行选中状态3 <img:wx_shilian_anniu01:1118:460:0:0.7,0> |
||
| 254 | inc s$五行选中状态3 <text:水{scolor=146}:1180:518:100:40> |
||
| 255 | mov s$五行选中状态 <$str(s$五行选中状态3)> |
||
| 256 | inc N$五行当前显示开奖 1 |
||
| 257 | mov n$五行判断 2 |
||
| 258 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 259 | break |
||
| 260 | <notextile></notextile> |
||
| 261 | #if |
||
| 262 | equal <$str(N$五行当前显示开奖)> 3 |
||
| 263 | #act |
||
| 264 | mov s$五行选中状态4 <img:wx_shilian_anniu01:975:463:0:0.7,0> |
||
| 265 | inc s$五行选中状态4 <text:火{scolor=58}:1034:518.6:100:40> |
||
| 266 | mov s$五行选中状态 <$str(s$五行选中状态4)> |
||
| 267 | inc N$五行当前显示开奖 1 |
||
| 268 | mov n$五行判断 3 |
||
| 269 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 270 | break |
||
| 271 | <notextile></notextile> |
||
| 272 | #if |
||
| 273 | equal <$str(N$五行当前显示开奖)> 4 |
||
| 274 | #act |
||
| 275 | mov s$五行选中状态5 <img:wx_shilian_anniu01:943:344:0:0.7,0> |
||
| 276 | inc s$五行选中状态5 <text:土{scolor=47}:1003:404:100:40> |
||
| 277 | mov s$五行选中状态 <$str(s$五行选中状态5)> |
||
| 278 | mov N$五行当前显示开奖 0 |
||
| 279 | dec N$五行旋转次数 1 |
||
| 280 | mov n$五行判断 4 |
||
| 281 | delaygoto 100 <notextile>@</notextile>显示抽奖画面 |
||
| 282 | break |