View MV Plugin Interface.js
/** | |
* | |
* before -> (default / insteadOf) -> afterReturning -> after | |
* の順 | |
*/ | |
Game_Player.before.update = function(){ | |
//updateが呼ばれる前に実行される | |
}; |
View dispatch.js
import * as Rx from '@reactivex/rxjs' | |
function dispatch(key, dispatcher){ | |
let map = {}; | |
let newMap = {}; | |
let subscription = null; | |
let extractId = (typeof key === 'string')? (v)=>v[key]: key; | |
function createChannel(x){ | |
let subject = new Rx.BehaviorSubject(x); |
View aa-sample.js
async function chooseFile(){ | |
const ev = await F.on('#chooser', 'change'); | |
const files = Array.prototype.slice.call(ev.target.files, 0); | |
const imageFiles = files.filter((f)=>f.type.match('image.*')); | |
if(imageFiles.length !== 0) { | |
const imagePromises = imageFiles.map(readAsDataURL); | |
const images = (await Promise.all(imagePromises)).map((i)=>i.target.result); |
View liply_WinChrome_scroll_patch.js
/*: | |
* @plugindesc Windows Chrome scroll patch | |
* @author liply | |
* | |
* @help There is rendering problem on 2016/4/6 Windows Chrome. | |
* MV Core creates large canvas garbage. This patch fix it. | |
* | |
* Special Thanks | |
* @o_ggy | |
* This plugin is released under the MIT License. |
View index.html
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<script> | |
function createSelectionBox(id, fruits, selected, masterFruits){ | |
var html = '<select id="select' + id + '">'; |
View liply_memoryleak_patch.js
//============================================================================= | |
// liply_memoryleak_patch.js | |
// ---------------------------------------------------------------------------- | |
// Copyright (c) 2015 liply | |
// This plugin is released under the MIT License. | |
// http://opensource.org/licenses/mit-license.php | |
// ---------------------------------------------------------------------------- | |
// 2016/02/01 Canvasモード起動時や特定状況で落ちるバグを修正 | |
// 2015/12/05 初版 | |
// ---------------------------------------------------------------------------- |
View liply_ios8_patch.js
//============================================================================= | |
// liply_ios8_patch.js | |
//============================================================================= | |
/*: | |
* @plugindesc patch for iOS8 ~ v1.2.0 (run [Playtest] before publish) | |
* @author liply | |
* | |
* @help | |
* |
View liply_onBitmapLoad_patch.js
//License: MIT | |
Sprite.prototype._onBitmapLoad = function() { | |
if (!!this._bitmap && this._frame.width === 0 && this._frame.height === 0) { | |
this._frame.width = this._bitmap.width; | |
this._frame.height = this._bitmap.height; | |
} | |
this._refresh(); | |
}; |
View TerraxLighting.js
// TerraxLighting.js (works on Android Chrome) | |
// modified by liply | |
// license: MIT | |
//============================================================================= | |
// Terrax Plugins - Lighting system | |
// TerraxLighting.js | |
// Version: 1.1.1 | |
//============================================================================= | |
// |
View liply_SceneCache.js
/*: | |
* @plugindesc Scene Cache System | |
* @author liply(support at liply.net) | |
* | |
* @param WebGL | |
* @desc Force WebGL (1 for on, 0 for off) | |
* @default 0 | |
* | |
* @param Report Memory | |
* @default 0 |
OlderNewer