Salted 2 years ago
parent 9640c33d0f
commit f823bf475e
Signed by: SaltedFish
GPG Key ID: FCF3F47D9BD7AD42

File diff suppressed because it is too large Load Diff

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

File diff suppressed because one or more lines are too long

@ -0,0 +1 @@
{"events":{}}

@ -1,274 +1,34 @@
[
null,
{
"id": 1,
"expanded": true,
"name": "地球",
"order": 1,
"parentId": 0,
"scrollX": 1638,
"scrollY": 912
},
{
"id": 2,
"expanded": false,
"name": "好人大宅",
"order": 17,
"parentId": 20,
"scrollX": 1622,
"scrollY": 1488
},
{
"id": 3,
"expanded": true,
"name": "好人家二层",
"order": 19,
"parentId": 22,
"scrollX": 1392,
"scrollY": 511.6363636363637
},
{
"id": 4,
"expanded": true,
"name": "好人家地下室",
"order": 20,
"parentId": 22,
"scrollX": 1701.818181818182,
"scrollY": 688.3636363636364
},
{
"id": 5,
"expanded": false,
"name": "海滩",
"order": 6,
"parentId": 31,
"scrollX": 1622,
"scrollY": 966
},
{
"id": 6,
"expanded": true,
"name": "深海及纳萨托恩外围多孔岩工地",
"order": 7,
"parentId": 5,
"scrollX": 1557.818181818182,
"scrollY": 1040.7272727272727
},
{
"id": 7,
"expanded": true,
"name": "纳萨托恩",
"order": 8,
"parentId": 6,
"scrollX": 1521.6,
"scrollY": 1040.3999999999999
},
{
"id": 8,
"expanded": true,
"name": "通往皇宫的管道",
"order": 9,
"parentId": 7,
"scrollX": 1473.6,
"scrollY": 1040.3999999999999
},
{
"id": 9,
"expanded": true,
"name": "共鸣腔及水循环通道",
"order": 10,
"parentId": 8,
"scrollX": 1693.1999999999998,
"scrollY": 1023.5999999999999
},
null,
{
"id": 11,
"expanded": false,
"name": "密室",
"order": 11,
"parentId": 9,
"scrollX": 1560,
"scrollY": 954
},
{
"id": 12,
"expanded": true,
"name": "大护壁及大漩涡",
"order": 13,
"parentId": 7,
"scrollX": 1560,
"scrollY": 954
},
{
"id": 13,
"expanded": true,
"name": "渡鸦12345的办公室1F",
"order": 4,
"parentId": 30,
"scrollX": 926.4,
"scrollY": 627.6
},
{
"id": 14,
"expanded": true,
"name": "梦位面宇宙",
"order": 23,
"parentId": 0,
"scrollX": 1638,
"scrollY": 912
},
{
"id": 15,
"expanded": false,
"name": "艾欧",
"order": 24,
"parentId": 14,
"scrollX": 1544,
"scrollY": 1608
},
{
"id": 16,
"expanded": false,
"name": "艾欧深海(各种遗迹以及传送门)",
"order": 25,
"parentId": 15,
"scrollX": 1544,
"scrollY": 1446
},
{
"id": 17,
"expanded": false,
"name": "艾欧同步轨道",
"order": 26,
"parentId": 15,
"scrollX": 1560,
"scrollY": 954
},
{
"id": 18,
"expanded": false,
"name": "飞船遗迹内部",
"order": 27,
"parentId": 17,
"scrollX": 1544,
"scrollY": 954
},
{
"id": 19,
"expanded": false,
"name": "操作仓",
"order": 28,
"parentId": 18,
"scrollX": 1560,
"scrollY": 954
},
{
"id": 20,
"expanded": true,
"name": "南郊(有水泵站)",
"order": 16,
"parentId": 31,
"scrollX": 1622,
"scrollY": 1488
},
{
"id": 21,
"expanded": false,
"name": "水塔内",
"order": 21,
"parentId": 20,
"scrollX": 1622,
"scrollY": 1008
},
{
"id": 22,
"expanded": true,
"name": "好人家一层",
"order": 18,
"parentId": 2,
"scrollX": 1638,
"scrollY": 912
},
{
"id": 23,
"expanded": false,
"name": "大海",
"order": 14,
"parentId": 5,
"scrollX": 1560,
"scrollY": 954
},
{
"id": 24,
"expanded": true,
"name": "迷雾之岛",
"order": 15,
"parentId": 23,
"scrollX": 993.5999999999999,
"scrollY": 877.1999999999999
},
{
"id": 25,
"expanded": false,
"name": "水塔2",
"order": 22,
"parentId": 21,
"scrollX": 1638,
"scrollY": 912
},
{
"id": 26,
"expanded": true,
"name": "皇宫",
"order": 12,
"parentId": 9,
"scrollX": 1544,
"scrollY": 1326
},
{
"id": 27,
"expanded": false,
"name": "晶核研究站",
"order": 29,
"parentId": 14,
"scrollX": 1560,
"scrollY": 954
},
{
"id": 28,
"expanded": false,
"name": "实验室",
"order": 30,
"parentId": 27,
"scrollX": 936,
"scrollY": 572.4
},
{
"id": 29,
"expanded": false,
"name": "渡鸦12345的办公室2F",
"order": 5,
"parentId": 13,
"scrollX": 926.4,
"scrollY": 627.6
},
{
"id": 30,
"expanded": false,
"name": "渡鸦12345的办公室",
"order": 3,
"parentId": 31,
"scrollX": 1622,
"scrollY": 1392
},
{
"id": 31,
"expanded": true,
"name": "世界地图",
"order": 2,
"parentId": 1,
"scrollX": 7412,
"scrollY": 5914
}
null,
{"id":1,"expanded":false,"name":"地球","order":1,"parentId":0,"scrollX":1638,"scrollY":912},
{"id":2,"expanded":true,"name":"好人大宅","order":17,"parentId":20,"scrollX":1622,"scrollY":1488},
{"id":3,"expanded":true,"name":"好人家二层","order":19,"parentId":22,"scrollX":1638,"scrollY":912},
{"id":4,"expanded":true,"name":"好人家地下室","order":20,"parentId":22,"scrollX":1701.818181818182,"scrollY":688.3636363636364},
{"id":5,"expanded":false,"name":"海滩","order":6,"parentId":31,"scrollX":1622,"scrollY":966},
{"id":6,"expanded":true,"name":"深海及纳萨托恩外围多孔岩工地","order":7,"parentId":5,"scrollX":1557.818181818182,"scrollY":1040.7272727272727},
{"id":7,"expanded":true,"name":"纳萨托恩","order":8,"parentId":6,"scrollX":1521.6,"scrollY":1040.3999999999999},
{"id":8,"expanded":true,"name":"通往皇宫的管道","order":9,"parentId":7,"scrollX":1473.6,"scrollY":1040.3999999999999},
{"id":9,"expanded":true,"name":"共鸣腔及水循环通道","order":10,"parentId":8,"scrollX":1693.1999999999998,"scrollY":1023.5999999999999},
null,
{"id":11,"expanded":false,"name":"密室","order":11,"parentId":9,"scrollX":1560,"scrollY":954},
{"id":12,"expanded":true,"name":"大护壁及大漩涡","order":13,"parentId":7,"scrollX":1560,"scrollY":954},
{"id":13,"expanded":true,"name":"渡鸦12345的办公室1F","order":4,"parentId":30,"scrollX":926.4,"scrollY":627.6},
{"id":14,"expanded":true,"name":"梦位面宇宙","order":23,"parentId":0,"scrollX":1638,"scrollY":912},
{"id":15,"expanded":false,"name":"艾欧","order":24,"parentId":14,"scrollX":1544,"scrollY":1608},
{"id":16,"expanded":false,"name":"艾欧深海(各种遗迹以及传送门)","order":25,"parentId":15,"scrollX":1544,"scrollY":1446},
{"id":17,"expanded":false,"name":"艾欧同步轨道","order":26,"parentId":15,"scrollX":1560,"scrollY":954},
{"id":18,"expanded":false,"name":"飞船遗迹内部","order":27,"parentId":17,"scrollX":1544,"scrollY":954},
{"id":19,"expanded":false,"name":"操作仓","order":28,"parentId":18,"scrollX":1560,"scrollY":954},
{"id":20,"expanded":true,"name":"南郊(有水泵站)","order":16,"parentId":31,"scrollX":1622,"scrollY":1488},
{"id":21,"expanded":false,"name":"水塔内","order":21,"parentId":20,"scrollX":1622,"scrollY":1008},
{"id":22,"expanded":true,"name":"好人家一层","order":18,"parentId":2,"scrollX":1638,"scrollY":912},
{"id":23,"expanded":false,"name":"大海","order":14,"parentId":5,"scrollX":1560,"scrollY":954},
{"id":24,"expanded":true,"name":"迷雾之岛","order":15,"parentId":23,"scrollX":993.5999999999999,"scrollY":877.1999999999999},
{"id":25,"expanded":false,"name":"水塔2","order":22,"parentId":21,"scrollX":1638,"scrollY":912},
{"id":26,"expanded":true,"name":"皇宫","order":12,"parentId":9,"scrollX":1544,"scrollY":1326},
{"id":27,"expanded":false,"name":"晶核研究站","order":29,"parentId":14,"scrollX":1560,"scrollY":954},
{"id":28,"expanded":false,"name":"实验室","order":30,"parentId":27,"scrollX":936,"scrollY":572.4},
{"id":29,"expanded":false,"name":"渡鸦12345的办公室2F","order":5,"parentId":13,"scrollX":926.4,"scrollY":627.6},
{"id":30,"expanded":false,"name":"渡鸦12345的办公室","order":3,"parentId":31,"scrollX":1622,"scrollY":1392},
{"id":31,"expanded":true,"name":"世界地图","order":2,"parentId":1,"scrollX":7412,"scrollY":5914}
]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -9,7 +9,8 @@
"./plugins_dev/*.js",
"plugins_dev/*.js",
"rmmv.d.ts",
"rmmv-pixi.d.ts"
"rmmv-pixi.d.ts",
"plugins/*"
],
"exclude": [
"plugins_dev/*"

@ -380,6 +380,18 @@ var SF_Plugins = SF_Plugins || {};
throw new Error(message);
};
SF_Core.Utils.isPC = function () {
return !!Utils.isNwjs();
}
SF_Core.Utils.isAndroid = function () {
return !!window.FileUtils && !!window.UpdateUtils && !SF_AutoUpdate.isPC();
}
SF_Core.Utils.isWeb = function () {
return !SF_AutoUpdate.isPC() && !SF_AutoUpdate.isAndroid();
}
//=============================================================================
// CallBack Scope Transport
//=============================================================================
@ -453,4 +465,170 @@ var SF_Plugins = SF_Plugins || {};
return result;
}
//=============================================================================
// FileUtils
//=============================================================================
if (SF_Core.Utils.isPC()) {
var FileUtils = window.FileUtils || {};
window.FileUtils = FileUtils;
var fs = require('fs');
var path = require('path');
var crypto = require('crypto');
FileUtils.evaluateJavascript = function (script) {
(new Function(script)).call(window);
}
FileUtils.canExecute = function (fileName) {
try {
fs.accessSync(fileName, fs.X_OK);
return true;
} catch (e) {
return false;
}
}
FileUtils.canRead = function (fileName) {
try {
fs.accessSync(fileName, fs.R_OK);
return true;
} catch (e) {
return false;
}
}
FileUtils.canWrite = function (fileName) {
try {
fs.accessSync(fileName, fs.W_OK);
return true;
} catch (e) {
return false;
}
}
FileUtils.createNewFile = function (fileName) {
try {
fs.writeFileSync(fileName, "");
return true;
} catch (e) {
return false;
}
}
FileUtils.delete = function (fileName) {
try {
fs.unlinkSync(fileName);
return true;
} catch (e) {
return false;
}
}
FileUtils.exists = function (fileName) {
try {
fs.accessSync(fileName, fs.F_OK);
return true;
} catch (e) {
return false;
}
}
FileUtils.getAbsolutePath = function (fileName) {
return path.resolve(fileName);
}
FileUtils.getCanonicalPath = function (fileName) {
return path.resolve(fileName);
}
FileUtils.getName = function (fileName) {
return path.basename(fileName);
}
FileUtils.getParent = function (fileName) {
return path.dirname(fileName);
}
FileUtils.getPath = function (fileName) {
return path.resolve(fileName);
}
FileUtils.isAbsolute = function (fileName) {
return path.isAbsolute(fileName);
}
FileUtils.isDirectory = function (fileName) {
return fs.statSync(fileName).isDirectory();
}
FileUtils.isFile = function (fileName) {
return fs.statSync(fileName).isFile();
}
FileUtils.lastModified = function (fileName) {
return fs.statSync(fileName).mtime.getTime();
}
FileUtils.length = function (fileName) {
return fs.statSync(fileName).size;
}
FileUtils.list = function () {
}
FileUtils.mkdir = function (fileName) {
try {
fs.mkdirSync(fileName);
return true;
} catch (e) {
return false;
}
}
FileUtils.mkdirs = function (fileName) {
try {
fs.mkdirSync(fileName, { recursive: true });
return true;
} catch (e) {
return false;
}
}
FileUtils.reanmeTo = function (srcName, dstName) {
try {
fs.renameSync(oldFileName, newFileName);
return true;
} catch (e) {
return false;
}
}
FileUtils.toString = function (fileName) {
return path.resolve(fileName);
}
FileUtils.readTextFile = function (fileName) {
return fs.readFileSync(fileName, 'utf-8');
}
FileUtils.writeTextFile = function (fileName, text) {
return fs.writeFileSync(fileName, text, 'utf-8');
}
FileUtils.getFileHashHex = function (fileName, algorithm) {
var hash = crypto.createHash(algorithm || 'SHA512');
var data = fs.readFileSync(fileName);
hash.update(data);
return hash.digest('hex');
}
}
if (SF_Core.Utils.isAndroid()) {
var FileUtils_List = FileUtils.list;
FileUtils.list = function () { }
}
})();

@ -0,0 +1,35 @@
//=============================================================================
// Salted Fish Plugins - Message Busts
// SF_MessageBusts.js
//=============================================================================
"use strict";
var Imported = Imported || {};
Imported.SF_MessageBusts = true;
var SF_Plugins = SF_Plugins || {};
//=============================================================================
/**
/*:
*
* @plugindesc Message Busts
* @author Salted Fish
*
* @help
* 基于 Galv_MessageBusts.js 插件编写
*
* 尝试在显示文本时自动展示大号脸图如果文件存在的话否则展示原本的图片
*
* 将对应的图片放在
* img/faces/large 文件夹下
*
* 命名方式为
* {图片名称}_编号.png
*
* 举例如果在显示文本的命令中选择脸图的文件为"Actor1"的第二个图
* 那么这个插件就会使用 img/faces/large/Actor1_2.png 这张图片作为大号的脸图
*
* @param scanFiles
* @desc 扫描本地文件夹生成对应的
*
*/
Loading…
Cancel
Save