CG #6
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -63,5 +63,11 @@ main.floors.MT2= | ||||
|     "fgmap": [ | ||||
| 
 | ||||
| ], | ||||
|     "areas": "牢狱" | ||||
|     "areas": "牢狱", | ||||
|     "bg2map": [ | ||||
| 
 | ||||
| ], | ||||
|     "fg2map": [ | ||||
| 
 | ||||
| ] | ||||
| } | ||||
| @ -8807,7 +8807,7 @@ core.plugin.animate = { | ||||
| 				this.drawUI(); | ||||
| 				return | ||||
| 			} | ||||
| 			console.log([px, py], page); | ||||
| 			console.log([px, py]); | ||||
| 			const makeBox = ([x, y], [w, h]) => { | ||||
| 				return [ | ||||
| 					[x, y], | ||||
| @ -8830,15 +8830,16 @@ core.plugin.animate = { | ||||
| 			} | ||||
| 			if (core.domStyle.isVertical) { | ||||
| 				//竖屏
 | ||||
| 				const pageupbox = makeBox([33, 384], [144, 136]) | ||||
| 				const pagedownbox = makeBox([33, 1080], [144, 190]) | ||||
| 				const imagebox0 = makeBox([200, 300], [680, 320]) | ||||
| 				const imagebox1 = makeBox([200, 750], [680, 1070]) | ||||
| 				const imagebox2 = makeBox([200, 1200], [680, 1520]) | ||||
| 				const pageupbox = makeBox([30, 380], [144, 144]) | ||||
| 				const pagedownbox = makeBox([30, 1080], [144, 144]) | ||||
| 
 | ||||
| 				const imagebox3 = makeBox([700, 300], [1200, 600]) | ||||
| 				const imagebox4 = makeBox([700, 850], [1200, 1050]) | ||||
| 				const imagebox5 = makeBox([700, 1300], [1200, 1500]) | ||||
| 				const imagebox0 = makeBox([200, 300], [480, 320]) | ||||
| 				const imagebox1 = makeBox([200, 750], [480, 320]) | ||||
| 				const imagebox2 = makeBox([200, 1200], [480, 320]) | ||||
| 
 | ||||
| 				const imagebox3 = makeBox([700, 300], [480, 320]) | ||||
| 				const imagebox4 = makeBox([700, 850], [480, 320]) | ||||
| 				const imagebox5 = makeBox([700, 1300], [480, 320]) | ||||
| 				if (inRect(pos, pageupbox)) { | ||||
| 					//2代表当前最大页数-1
 | ||||
| 					if (page < 2) { | ||||
| @ -8883,6 +8884,7 @@ core.plugin.animate = { | ||||
| 						show = !show; | ||||
| 					} | ||||
| 				} else if (inRect(pos, imagebox3)) { | ||||
| 					console.log(3) | ||||
| 					const img = core.material.images.images[this.UIMx[page][1][0]] | ||||
| 					if (img) { | ||||
| 						ctx.save(); //保存设置
 | ||||
| @ -8914,8 +8916,14 @@ core.plugin.animate = { | ||||
| 					} | ||||
| 				} | ||||
| 			} else { | ||||
| 				const pageupbox = makeBox([33, 342], [144, 129]) | ||||
| 				const pagedownbox = makeBox([33, 837], [144, 138]) | ||||
| 				const pageupbox = makeBox([30, 340], [144, 144]) | ||||
| 				const pagedownbox = makeBox([30, 840], [144, 144]) | ||||
| 				const imagebox0 = makeBox([300, 300], [480, 320]) | ||||
| 				const imagebox1 = makeBox([800, 300], [480, 320]) | ||||
| 				const imagebox2 = makeBox([1300, 300], [480, 320]) | ||||
| 				const imagebox3 = makeBox([300, 750], [480, 320]) | ||||
| 				const imagebox4 = makeBox([800, 750], [480, 320]) | ||||
| 				const imagebox5 = makeBox([1300, 750], [480, 320]) | ||||
| 				if (inRect(pos, pageupbox)) { | ||||
| 					if (page < 2) { | ||||
| 						page++; | ||||
| @ -8928,6 +8936,60 @@ core.plugin.animate = { | ||||
| 						core.clearMap(ctx); | ||||
| 						this.drawUI(); | ||||
| 					} | ||||
| 				} else if (inRect(pos, imagebox0)) { | ||||
| 					const img = core.material.images.images[this.UIMx[page][0][0]] | ||||
| 					if (img) { | ||||
| 						ctx.save(); //保存设置
 | ||||
| 						ctx.translate(0, 0) //重新定位右上角为基准
 | ||||
| 						ctx.drawImage(img, 0, 0, 2028, 1248) | ||||
| 						ctx.restore(); //重置画布设置
 | ||||
| 						show = !show; | ||||
| 					} | ||||
| 				} else if (inRect(pos, imagebox1)) { | ||||
| 					const img = core.material.images.images[this.UIMx[page][0][1]] | ||||
| 					if (img) { | ||||
| 						ctx.save(); //保存设置
 | ||||
| 						ctx.translate(0, 0) //重新定位右上角为基准
 | ||||
| 						ctx.drawImage(img, 0, 0, 2028, 1248) | ||||
| 						ctx.restore(); //重置画布设置
 | ||||
| 						show = !show; | ||||
| 					} | ||||
| 				} else if (inRect(pos, imagebox2)) { | ||||
| 					const img = core.material.images.images[this.UIMx[page][0][2]] | ||||
| 					if (img) { | ||||
| 						ctx.save(); //保存设置
 | ||||
| 						ctx.translate(0, 0) //重新定位右上角为基准
 | ||||
| 						ctx.drawImage(img, 0, 0, 2028, 1248) | ||||
| 						ctx.restore(); //重置画布设置
 | ||||
| 						show = !show; | ||||
| 					} | ||||
| 				} else if (inRect(pos, imagebox3)) { | ||||
| 					const img = core.material.images.images[this.UIMx[page][1][0]] | ||||
| 					if (img) { | ||||
| 						ctx.save(); //保存设置
 | ||||
| 						ctx.translate(0, 0) //重新定位右上角为基准
 | ||||
| 						ctx.drawImage(img, 0, 0, 2028, 1248) | ||||
| 						ctx.restore(); //重置画布设置
 | ||||
| 						show = !show; | ||||
| 					} | ||||
| 				} else if (inRect(pos, imagebox4)) { | ||||
| 					const img = core.material.images.images[this.UIMx[page][1][1]] | ||||
| 					if (img) { | ||||
| 						ctx.save(); //保存设置
 | ||||
| 						ctx.translate(0, 0) //重新定位右上角为基准
 | ||||
| 						ctx.drawImage(img, 0, 0, 2028, 1248) | ||||
| 						ctx.restore(); //重置画布设置
 | ||||
| 						show = !show; | ||||
| 					} | ||||
| 				} else if (inRect(pos, imagebox5)) { | ||||
| 					const img = core.material.images.images[this.UIMx[page][1][2]] | ||||
| 					if (img) { | ||||
| 						ctx.save(); //保存设置
 | ||||
| 						ctx.translate(0, 0) //重新定位右上角为基准
 | ||||
| 						ctx.drawImage(img, 0, 0, 2028, 1248) | ||||
| 						ctx.restore(); //重置画布设置
 | ||||
| 						show = !show; | ||||
| 					} | ||||
| 				} | ||||
| 
 | ||||
| 			} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user