Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0176135
commit 20a9638
Showing
5 changed files
with
415 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
//============================================================================= | ||
// BlueMushroom.js | ||
// ---------------------------------------------------------------------------- | ||
// Copyright (c) 2015 Triacontane | ||
// This software is released under the MIT License. | ||
// http://opensource.org/licenses/mit-license.php | ||
// ---------------------------------------------------------------------------- | ||
// Version | ||
// 1.0.0 2016/08/16 初版 | ||
// ---------------------------------------------------------------------------- | ||
// [Blog] : http://triacontane.blogspot.jp/ | ||
// [Twitter]: https://twitter.com/triacontane/ | ||
// [GitHub] : https://github.com/triacontane/ | ||
//============================================================================= | ||
|
||
/*: | ||
* @plugindesc Plugin That ... | ||
* @author triacontane | ||
* | ||
* @param param | ||
* @desc parameter description | ||
* @default default value | ||
* | ||
* @help Plugin That ... | ||
* | ||
* Plugin Command | ||
* XXXXX [XXX] | ||
* ex1:XXXXX 1 | ||
* | ||
* This plugin is released under the MIT License. | ||
*/ | ||
/*:ja | ||
* @plugindesc ビジュアルノベルプラグイン | ||
* @author トリアコンタン | ||
* | ||
* @param パラメータ | ||
* @desc パラメータ説明 | ||
* @default デフォルト値 | ||
* | ||
* @help RPGツクールMVでビジュアルノベルを手軽に作成するための | ||
* プラグインです。 | ||
* | ||
* プラグインコマンド詳細 | ||
* イベントコマンド「プラグインコマンド」から実行。 | ||
* (パラメータの間は半角スペースで区切る) | ||
* | ||
* このプラグインにはプラグインコマンドはありません。 | ||
* | ||
* 利用規約: | ||
* 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) | ||
* についても制限はありません。 | ||
* このプラグインはもうあなたのものです。 | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
var pluginName = 'BlueMushroom'; | ||
var metaTagPrefix = 'BlueMushroom'; | ||
|
||
var getCommandName = function(command) { | ||
return (command || '').toUpperCase(); | ||
}; | ||
|
||
var getParamOther = function(paramNames) { | ||
if (!Array.isArray(paramNames)) paramNames = [paramNames]; | ||
for (var i = 0; i < paramNames.length; i++) { | ||
var name = PluginManager.parameters(pluginName)[paramNames[i]]; | ||
if (name) return name; | ||
} | ||
return null; | ||
}; | ||
|
||
var getParamString = function(paramNames) { | ||
var value = getParamOther(paramNames); | ||
return value === null ? '' : value; | ||
}; | ||
|
||
var getParamNumber = function(paramNames, min, max) { | ||
var value = getParamOther(paramNames); | ||
if (arguments.length < 2) min = -Infinity; | ||
if (arguments.length < 3) max = Infinity; | ||
return (parseInt(value, 10) || 0).clamp(min, max); | ||
}; | ||
|
||
var getParamBoolean = function(paramNames) { | ||
var value = getParamOther(paramNames); | ||
return (value || '').toUpperCase() === 'ON'; | ||
}; | ||
|
||
//============================================================================= | ||
// Game_Interpreter | ||
// プラグインコマンドを追加定義します。 | ||
//============================================================================= | ||
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand; | ||
Game_Interpreter.prototype.pluginCommand = function(command, args) { | ||
_Game_Interpreter_pluginCommand.apply(this, arguments); | ||
if (!command.match(new RegExp('^' + metaTagPrefix))) return; | ||
try { | ||
this.pluginCommandBlueMushroom(command.replace(metaTagPrefix, ''), args); | ||
} catch (e) { | ||
if ($gameTemp.isPlaytest() && Utils.isNwjs()) { | ||
var window = require('nw.gui').Window.get(); | ||
if (!window.isDevToolsOpen()) { | ||
var devTool = window.showDevTools(); | ||
devTool.moveTo(0, 0); | ||
devTool.resizeTo(window.screenX + window.outerWidth, window.screenY + window.outerHeight); | ||
window.focus(); | ||
} | ||
} | ||
console.log('プラグインコマンドの実行中にエラーが発生しました。'); | ||
console.log('- コマンド名 : ' + command); | ||
console.log('- コマンド引数 : ' + args); | ||
console.log('- エラー原因 : ' + e.stack || e.toString()); | ||
} | ||
}; | ||
|
||
Game_Interpreter.prototype.pluginCommandBlueMushroom = function(command, args) { | ||
switch (getCommandName(command)) { | ||
case 'XXXXX' : | ||
break; | ||
} | ||
}; | ||
|
||
//============================================================================= | ||
// Game_BlueMushroom | ||
// BlueMushroom | ||
//============================================================================= | ||
function Game_BlueMushroom() { | ||
this.initialize.apply(this, arguments); | ||
} | ||
|
||
Game_BlueMushroom.prototype.constructor = Game_BlueMushroom; | ||
|
||
Game_BlueMushroom.prototype.initialize = function() { | ||
}; | ||
})(); | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
//============================================================================= | ||
// PlayMp3.js | ||
// ---------------------------------------------------------------------------- | ||
// Copyright (c) 2015 Triacontane | ||
// This software is released under the MIT License. | ||
// http://opensource.org/licenses/mit-license.php | ||
// ---------------------------------------------------------------------------- | ||
// Version | ||
// 1.0.0 2016/06/20 初版 | ||
// ---------------------------------------------------------------------------- | ||
// [Blog] : http://triacontane.blogspot.jp/ | ||
// [Twitter]: https://twitter.com/triacontane/ | ||
// [GitHub] : https://github.com/triacontane/ | ||
//============================================================================= | ||
|
||
/*: | ||
* @plugindesc Plugin That ... | ||
* @author triacontane | ||
* | ||
* @param param | ||
* @desc parameter description | ||
* @default default value | ||
* | ||
* @help Plugin That ... | ||
* | ||
* Plugin Command | ||
* XXXXX [XXX] | ||
* ex1:XXXXX 1 | ||
* | ||
* This plugin is released under the MIT License. | ||
*/ | ||
/*:ja | ||
* @plugindesc プラグイン名称が未入力です。 | ||
* @author トリアコンタン | ||
* | ||
* @param パラメータ | ||
* @desc パラメータ説明 | ||
* @default デフォルト値 | ||
* | ||
* @help プラグイン説明が未入力です。 | ||
* | ||
* プラグインコマンド詳細 | ||
* イベントコマンド「プラグインコマンド」から実行。 | ||
* (パラメータの間は半角スペースで区切る) | ||
* | ||
* このプラグインにはプラグインコマンドはありません。 | ||
* | ||
* 利用規約: | ||
* 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) | ||
* についても制限はありません。 | ||
* このプラグインはもうあなたのものです。 | ||
*/ | ||
|
||
(function() { | ||
'use strict'; | ||
var pluginName = 'PlayMp3'; | ||
var metaTagPrefix = 'PlayMp3'; | ||
|
||
var getCommandName = function(command) { | ||
return (command || '').toUpperCase(); | ||
}; | ||
|
||
var getParamOther = function(paramNames) { | ||
if (!Array.isArray(paramNames)) paramNames = [paramNames]; | ||
for (var i = 0; i < paramNames.length; i++) { | ||
var name = PluginManager.parameters(pluginName)[paramNames[i]]; | ||
if (name) return name; | ||
} | ||
return null; | ||
}; | ||
|
||
var getParamString = function(paramNames) { | ||
var value = getParamOther(paramNames); | ||
return value === null ? '' : value; | ||
}; | ||
|
||
var getParamNumber = function(paramNames, min, max) { | ||
var value = getParamOther(paramNames); | ||
if (arguments.length < 2) min = -Infinity; | ||
if (arguments.length < 3) max = Infinity; | ||
return (parseInt(value, 10) || 0).clamp(min, max); | ||
}; | ||
|
||
var getParamBoolean = function(paramNames) { | ||
var value = getParamOther(paramNames); | ||
return (value || '').toUpperCase() === 'ON'; | ||
}; | ||
|
||
var _AudioManager_createBuffer = AudioManager.createBuffer; | ||
AudioManager.createBuffer = function(folder, name) { | ||
this._folderType = folder; | ||
return _AudioManager_createBuffer.apply(this, arguments); | ||
}; | ||
|
||
var _AudioManager_audioFileExt = AudioManager.audioFileExt; | ||
AudioManager.audioFileExt = function() { | ||
if (this._folderType === 'bgm') { | ||
return '.mp3'; | ||
} else { | ||
return _AudioManager_audioFileExt.apply(this, arguments); | ||
} | ||
}; | ||
})(); | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//============================================================================= | ||
// ShaderTilemap.js | ||
// ---------------------------------------------------------------------------- | ||
// Copyright (c) 2015 Triacontane | ||
// This software is released under the MIT License. | ||
// http://opensource.org/licenses/mit-license.php | ||
// ---------------------------------------------------------------------------- | ||
// Version | ||
// 1.0.0 2016/08/24 初版 | ||
// ---------------------------------------------------------------------------- | ||
// [Blog] : http://triacontane.blogspot.jp/ | ||
// [Twitter]: https://twitter.com/triacontane/ | ||
// [GitHub] : https://github.com/triacontane/ | ||
//============================================================================= | ||
|
||
/*: | ||
* @plugindesc SquareShadingプラグイン | ||
* @author トリアコンタン | ||
* | ||
* @param squareShader | ||
* @desc パラメータ説明 | ||
* @default 1 | ||
* | ||
* @help コアスクリプトで使用されるパラメータ「squareShader」を設定する | ||
* だけのプラグインです。 | ||
* | ||
* このプラグインにはプラグインコマンドはありません。 | ||
* | ||
* 利用規約: | ||
* 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) | ||
* についても制限はありません。 | ||
* このプラグインはもうあなたのものです。 | ||
*/ |
Oops, something went wrong.