新增竖屏CG
This commit is contained in:
parent
1b0cde4f3a
commit
ea9558a54c
File diff suppressed because one or more lines are too long
@ -63,5 +63,11 @@ main.floors.MT2=
|
|||||||
"fgmap": [
|
"fgmap": [
|
||||||
|
|
||||||
],
|
],
|
||||||
"areas": "牢狱"
|
"areas": "牢狱",
|
||||||
|
"bg2map": [
|
||||||
|
|
||||||
|
],
|
||||||
|
"fg2map": [
|
||||||
|
|
||||||
|
]
|
||||||
}
|
}
|
@ -8807,7 +8807,7 @@ core.plugin.animate = {
|
|||||||
this.drawUI();
|
this.drawUI();
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log([px, py], page);
|
console.log([px, py]);
|
||||||
const makeBox = ([x, y], [w, h]) => {
|
const makeBox = ([x, y], [w, h]) => {
|
||||||
return [
|
return [
|
||||||
[x, y],
|
[x, y],
|
||||||
@ -8832,6 +8832,7 @@ core.plugin.animate = {
|
|||||||
//竖屏
|
//竖屏
|
||||||
const pageupbox = makeBox([33, 384], [144, 136])
|
const pageupbox = makeBox([33, 384], [144, 136])
|
||||||
const pagedownbox = makeBox([33, 1080], [144, 190])
|
const pagedownbox = makeBox([33, 1080], [144, 190])
|
||||||
|
|
||||||
const imagebox0 = makeBox([200, 300], [680, 320])
|
const imagebox0 = makeBox([200, 300], [680, 320])
|
||||||
const imagebox1 = makeBox([200, 750], [680, 1070])
|
const imagebox1 = makeBox([200, 750], [680, 1070])
|
||||||
const imagebox2 = makeBox([200, 1200], [680, 1520])
|
const imagebox2 = makeBox([200, 1200], [680, 1520])
|
||||||
@ -8883,6 +8884,7 @@ core.plugin.animate = {
|
|||||||
show = !show;
|
show = !show;
|
||||||
}
|
}
|
||||||
} else if (inRect(pos, imagebox3)) {
|
} else if (inRect(pos, imagebox3)) {
|
||||||
|
console.log(3)
|
||||||
const img = core.material.images.images[this.UIMx[page][1][0]]
|
const img = core.material.images.images[this.UIMx[page][1][0]]
|
||||||
if (img) {
|
if (img) {
|
||||||
ctx.save(); //保存设置
|
ctx.save(); //保存设置
|
||||||
@ -8916,6 +8918,13 @@ core.plugin.animate = {
|
|||||||
} else {
|
} else {
|
||||||
const pageupbox = makeBox([33, 342], [144, 129])
|
const pageupbox = makeBox([33, 342], [144, 129])
|
||||||
const pagedownbox = makeBox([33, 837], [144, 138])
|
const pagedownbox = makeBox([33, 837], [144, 138])
|
||||||
|
const imagebox0 = makeBox([300, 300], [780, 620])
|
||||||
|
const imagebox1 = makeBox([800, 300], [1280, 620])
|
||||||
|
const imagebox2 = makeBox([1300, 300], [1280, 620])
|
||||||
|
|
||||||
|
const imagebox3 = makeBox([300, 750], [780, 1070])
|
||||||
|
const imagebox4 = makeBox([800, 750], [1280, 1070])
|
||||||
|
const imagebox5 = makeBox([1300, 750], [1780, 1070])
|
||||||
if (inRect(pos, pageupbox)) {
|
if (inRect(pos, pageupbox)) {
|
||||||
if (page < 2) {
|
if (page < 2) {
|
||||||
page++;
|
page++;
|
||||||
@ -8928,6 +8937,60 @@ core.plugin.animate = {
|
|||||||
core.clearMap(ctx);
|
core.clearMap(ctx);
|
||||||
this.drawUI();
|
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