This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filePath = 'img/pictures/00.png'; | |
var path = require('path'); | |
var base = path.dirname(process.mainModule.filename); | |
var fullPath; | |
if (StorageManager.canMakeWwwSaveDirectory()) { | |
fullPath = path.join(base, filePath); | |
} else { | |
fullPath = path.join(path.dirname(base), filePath); | |
} | |
var fs = require('fs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SceneManager.exit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StorageManager.remove(n); | |
DataManager._globalInfo = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PluginManager.loadScript('DTextPicture.js') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
// コマンドとメソッド名とを関連付ける連想配列(オブジェクト) | |
var commandMap = { | |
COMMAND1:'testMethod', | |
COMMAND2:'testMethod2', | |
COMMAND3:'testMethod3' | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "", | |
"main": "PluginDevelopment/index.html?test", | |
"js-flags": "--expose-gc", | |
"window": { | |
"title": "", | |
"toolbar": false, | |
"width": 816, | |
"height": 624, | |
"icon": "icon/icon.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// HalfMove.js | |
// ---------------------------------------------------------------------------- | |
// (C)2016 Triacontane | |
// This software is released under the MIT License. | |
// http://opensource.org/licenses/mit-license.php | |
// ---------------------------------------------------------------------------- | |
// Version | |
// 1.13.0 2019/07/07 移動ルート強制中は半歩移動無効の設定をしているときでも半歩で強制移動できるスクリプトを追加 | |
// 1.12.5 2019/06/09 半歩移動無効時、下半分移動不可に設定した地形とリージョンが、元の通行設定にかかわらず移動不可となる問題を修正 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*:ja | |
* @plugindesc サンプル | |
* @author | |
* | |
* @param 呼び出すイベント名 | |
* @desc 呼び出されるイベントの名称 | |
* @default Called_Event | |
* | |
* @help | |
* パラメータで指定した名称のイベントをプラグインコマンドから呼び出します。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 文字列を与えてRegExpを生成(11ms) | |
console.time(); | |
for (var i = 0; i < 10000; i++) { | |
var regexp = new RegExp('.*'); | |
} | |
console.timeEnd(); | |
// 正規表現リテラルで生成(7ms) | |
console.time(); | |
for (var i = 0; i < 10000; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*============================================================================= | |
StateMessageRemoveTargetOver.js | |
---------------------------------------------------------------------------- | |
(C)2019 Triacontane | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php | |
---------------------------------------------------------------------------- | |
Version | |
1.0.0 2019/09/23 初版 | |
---------------------------------------------------------------------------- |