diff --git a/public/project/floors/MT54.js b/public/project/floors/MT54.js index 38f01cd..cc4750a 100644 --- a/public/project/floors/MT54.js +++ b/public/project/floors/MT54.js @@ -73,7 +73,7 @@ main.floors.MT54= [648,648,648,648,103, 21,648,648,648,648,539,648,648,648,648], [648, 28,648, 0, 28,482,648, 0, 27, 0, 33, 0, 28, 0,648], [648, 33,648,596,648,648,648,596,648,648,494,648,648,249,648], - [648, 27,243, 0, 0, 0, 0, 0, 0,129,376,378,381,491,648], + [648, 27,243, 0, 0,381, 0,482, 0,129,376,378,381,491,648], [648,648,648,648, 93,648,648,648,648,648,648,648,648,648,648] ], "bgmap": [ diff --git a/public/project/floors/MT55.js b/public/project/floors/MT55.js index 9b1ce04..f926f12 100644 --- a/public/project/floors/MT55.js +++ b/public/project/floors/MT55.js @@ -51,11 +51,11 @@ main.floors.MT55= [648,657,648,648,648,648,648, 0, 27, 0,482,648,648,243,648], [648, 0, 0, 0, 0, 0,660,381,103,648,648,648, 0, 0, 94], [648,648,648,648,492,648,648, 0, 28,656, 0, 0, 0, 0,648], - [648, 0, 0,601, 0, 0,648,494,648,648,657,648,648,648,648], - [648, 0, 0,648, 0, 0,492, 0, 0, 0, 0,648, 0, 0,648], - [648,240,648,648,648,492,648,243,648,648,648,648, 0, 0,648], - [648, 0, 0,648, 0, 0,648, 0,648, 0, 0,648,648,220,648], - [648, 0, 0,249, 0, 0,648, 0,657, 0, 0, 0, 0, 0,648], + [648, 27, 29,601, 0, 28,648,494,648,648,657,648,648,648,648], + [648,482, 28,648, 27, 0,492, 0,381,482, 0,648, 29, 28,648], + [648,240,648,648,648,492,648,243,648,648,648,648, 27, 33,648], + [648,484,378,648,376,491,648, 0,648, 0, 28,648,648,220,648], + [648,376,381,249,403,378,648, 33,657, 0, 27, 0,482, 0,648], [648,648,648,648,648,648,648,648,648,648,648,648,648,648,648] ], "bgmap": [ diff --git a/src/plugin/utils.ts b/src/plugin/utils.ts index bc546df..9948581 100644 --- a/src/plugin/utils.ts +++ b/src/plugin/utils.ts @@ -385,12 +385,20 @@ export async function triggerFullscreen(full: boolean) { if (!Mota.Plugin.inited) return; const { maxGameScale } = Mota.Plugin.require('utils_g'); if (!!document.fullscreenElement && !full) { + if (window.jsinterface) { + window.jsinterface.requestPortrait(); + return; + } await document.exitFullscreen(); requestAnimationFrame(() => { maxGameScale(1); }); } if (full && !document.fullscreenElement) { + if (window.jsinterface) { + window.jsinterface.requestLandscape(); + return; + } await document.body.requestFullscreen(); requestAnimationFrame(() => { maxGameScale(); diff --git a/src/types/util.d.ts b/src/types/util.d.ts index 2cf0231..b9e2160 100644 --- a/src/types/util.d.ts +++ b/src/types/util.d.ts @@ -541,6 +541,15 @@ interface Utils { declare const utils: new () => Utils; +interface JSInterface { + requestLandscape(): void; + requestPortrait(): void; +} +interface Window { + jsinterface: JSInterface; +} +declare const jsinterface: JSInterface; + /** * 移动的方向 */