nbnb
bnnb
This commit is contained in:
@@ -1,18 +1,11 @@
|
||||
[
|
||||
null,
|
||||
{"id":1,"battlerName":"Actor1_7","characterIndex":6,"characterName":"Actor1","classId":1,"equips":[1,1,2,3,0],"faceIndex":6,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Harold","nickname":"","note":"","profile":""},
|
||||
{"id":2,"battlerName":"Actor1_8","characterIndex":7,"characterName":"Actor1","classId":2,"equips":[2,1,2,3,0],"faceIndex":7,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Therese","nickname":"","note":"","profile":""},
|
||||
{"id":3,"battlerName":"Actor3_8","characterIndex":7,"characterName":"Actor3","classId":3,"equips":[3,0,2,3,4],"faceIndex":7,"faceName":"Actor3","traits":[],"initialLevel":1,"maxLevel":99,"name":"Marsha","nickname":"","note":"","profile":""},
|
||||
{"id":4,"battlerName":"Actor2_7","characterIndex":6,"characterName":"Actor2","classId":4,"equips":[4,0,2,3,4],"faceIndex":6,"faceName":"Actor2","traits":[],"initialLevel":1,"maxLevel":99,"name":"Lucius","nickname":"","note":"","profile":""},
|
||||
{"id":5,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":6,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":7,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":8,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":9,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":10,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":11,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":12,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":13,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":14,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""},
|
||||
{"id":15,"battlerName":"","characterIndex":0,"characterName":"","classId":1,"equips":[0,0,0,0,0],"faceIndex":0,"faceName":"","traits":[],"initialLevel":1,"maxLevel":99,"name":"","nickname":"","note":"","profile":""}
|
||||
{"id":1,"battlerName":"Actor1_1","characterIndex":0,"characterName":"3_Actor1","classId":1,"equips":[1,0,46,3,0],"faceIndex":0,"faceName":"Harold-Emotes","traits":[],"initialLevel":1,"maxLevel":99,"name":"Harold","nickname":"","note":"<Starting JP: 5000>\n<techtree>\nKanna1\n</techtree>","profile":""},
|
||||
{"id":2,"battlerName":"Actor1_8","characterIndex":7,"characterName":"Actor1","classId":4,"equips":[25,27,0,9,0],"faceIndex":7,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Therese","nickname":"","note":"<Starting JP: 5000>","profile":""},
|
||||
{"id":3,"battlerName":"Actor3_8","characterIndex":7,"characterName":"Actor3","classId":9,"equips":[0,0,65,20,0],"faceIndex":7,"faceName":"Actor3","traits":[],"initialLevel":1,"maxLevel":99,"name":"Marsha","nickname":"","note":"<Starting JP: 5000>\n<techtree>\nHEALER\n</techtree>","profile":""},
|
||||
{"id":4,"battlerName":"Actor2_7","characterIndex":6,"characterName":"Actor2","classId":3,"equips":[13,0,0,20,100],"faceIndex":6,"faceName":"Actor2","traits":[],"initialLevel":1,"maxLevel":99,"name":"Lucius","nickname":"","note":"<Starting JP: 5000>\n<techtree>\nHEALER\nHOLY\n</techtree>","profile":""},
|
||||
{"id":5,"battlerName":"Actor1_5","characterIndex":4,"characterName":"Actor1","classId":7,"equips":[37,0,0,8,0],"faceIndex":4,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Fred","nickname":"","note":"","profile":""},
|
||||
{"id":6,"battlerName":"Actor2_2","characterIndex":1,"characterName":"Actor2","classId":6,"equips":[1,0,0,20,0],"faceIndex":1,"faceName":"Actor2","traits":[],"initialLevel":1,"maxLevel":99,"name":"Ilia","nickname":"","note":"","profile":""},
|
||||
{"id":7,"battlerName":"Actor1_3","characterIndex":2,"characterName":"Actor1","classId":5,"equips":[31,0,0,3,0],"faceIndex":2,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Vice","nickname":"","note":"","profile":""},
|
||||
{"id":8,"battlerName":"Actor1_6","characterIndex":5,"characterName":"Actor1","classId":8,"equips":[43,43,0,3,0],"faceIndex":5,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"Eliza","nickname":"","note":"","profile":""}
|
||||
]
|
||||
@@ -1,7 +1,7 @@
|
||||
[
|
||||
null,
|
||||
{"id":1,"expanded":false,"name":"Dungeon3","order":5,"parentId":3,"scrollX":3393,"scrollY":3405},
|
||||
{"id":2,"expanded":true,"name":"Dungeon1","order":3,"parentId":4,"scrollX":2660,"scrollY":3676},
|
||||
{"id":2,"expanded":true,"name":"Dungeon1","order":3,"parentId":4,"scrollX":2628,"scrollY":3644},
|
||||
{"id":3,"expanded":true,"name":"Dungeon2","order":4,"parentId":2,"scrollX":3393,"scrollY":3405},
|
||||
{"id":4,"expanded":true,"name":"House","order":2,"parentId":5,"scrollX":1518.6666666666667,"scrollY":854.6666666666666},
|
||||
{"id":5,"expanded":true,"name":"Intro","order":1,"parentId":0,"scrollX":1139,"scrollY":641}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4722
js/plugins/FELSKI_TECHTREE.js
Normal file
4722
js/plugins/FELSKI_TECHTREE.js
Normal file
File diff suppressed because it is too large
Load Diff
1479
js/plugins/YEP_ClassChangeCore.js
Normal file
1479
js/plugins/YEP_ClassChangeCore.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -8,11 +8,11 @@ Imported.YEP_CoreEngine = true;
|
||||
|
||||
var Yanfly = Yanfly || {};
|
||||
Yanfly.Core = Yanfly.Core || {};
|
||||
Yanfly.Core.version = 1.32;
|
||||
Yanfly.Core.version = 1.25;
|
||||
|
||||
//=============================================================================
|
||||
/*:
|
||||
* @plugindesc v1.32 Needed for the majority of Yanfly Engine Scripts. Also
|
||||
* @plugindesc v1.25 Needed for the majority of Yanfly Engine Scripts. Also
|
||||
* contains bug fixes found inherently in RPG Maker.
|
||||
* @author Yanfly Engine Plugins
|
||||
*
|
||||
@@ -255,36 +255,6 @@ Yanfly.Core.version = 1.32;
|
||||
* SHOW - true HIDE - false Default: false
|
||||
* @default true
|
||||
*
|
||||
* @param ---Map Optimization---
|
||||
* @desc
|
||||
*
|
||||
* @param Refresh Update HP
|
||||
* @parent ---Map Optimization---
|
||||
* @type boolean
|
||||
* @on Show
|
||||
* @off Hide
|
||||
* @desc Do a full actor refresh when updating HP on map?
|
||||
* YES - true NO - false Default: true
|
||||
* @default true
|
||||
*
|
||||
* @param Refresh Update MP
|
||||
* @parent ---Map Optimization---
|
||||
* @type boolean
|
||||
* @on Show
|
||||
* @off Hide
|
||||
* @desc Do a full actor refresh when updating MP on map?
|
||||
* YES - true NO - false Default: true
|
||||
* @default true
|
||||
*
|
||||
* @param Refresh Update TP
|
||||
* @parent ---Map Optimization---
|
||||
* @type boolean
|
||||
* @on Show
|
||||
* @off Hide
|
||||
* @desc Do a full actor refresh when updating TP on map?
|
||||
* YES - true NO - false Default: true
|
||||
* @default false
|
||||
*
|
||||
* @param ---Font---
|
||||
* @desc
|
||||
*
|
||||
@@ -590,14 +560,6 @@ Yanfly.Core.version = 1.32;
|
||||
* distorted by a series of overlayed effects. The plugin fixes this issue by
|
||||
* having only one animation played over the group instead of every one.
|
||||
*
|
||||
* Audio Volume Stacking
|
||||
* Sometimes when multiple sound effects are played in the same frame with
|
||||
* the exact settings (usually due to animaitons), the volume stacks upon
|
||||
* each other, causing them to not play the intended volume for the effect.
|
||||
* This plugin fixes this issue by preventing sound effects of the same exact
|
||||
* settings from playing during the same frame, allowing only the first to
|
||||
* go through without stacking the volume higher.
|
||||
*
|
||||
* Event Movement Speed
|
||||
* The movement speed of events are slightly slower than what they should be
|
||||
* due a small error in the source code. The plugin fixes this issue and they
|
||||
@@ -720,47 +682,6 @@ Yanfly.Core.version = 1.32;
|
||||
* Changelog
|
||||
* ============================================================================
|
||||
*
|
||||
* Version 1.32:
|
||||
* - Reversed the disable for the screen jitter fix from version 1.24. Somehow
|
||||
* it came back and I don't know when, but now it needs to go.
|
||||
*
|
||||
* Version 1.31:
|
||||
* - Added Fallen Angel Olivia's full error message display to the Core Engine
|
||||
* (with her permission of course).
|
||||
* - Bug fixed regarding blend modes and bush depth making sprites not blend
|
||||
* properly in-game.
|
||||
* - Tab key no longer requires you to press it twice before triggering Tab-key
|
||||
* related inputs.
|
||||
*
|
||||
* Version 1.30:
|
||||
* - Bug fixed for audio Sound Effect stacking.
|
||||
* - Optimization update.
|
||||
*
|
||||
* Version 1.29:
|
||||
* - Bypass the isDevToolsOpen() error when bad code is inserted into a script
|
||||
* call or custom Lunatic Mode code segment due to updating to MV 1.6.1.
|
||||
*
|
||||
* Version 1.28:
|
||||
* - Upon pressing F5 to reload your game, this will close the DevTools Debug
|
||||
* Console if it is opened before reloading. This is because reloading with it
|
||||
* closed ends up reloading the game faster.
|
||||
* - New plugin parameters added: Refresh Update HP, MP, and TP
|
||||
* - Option to choose to do a full actor refresh upon changing HP, MP, or TP
|
||||
* - This is to reduce overall map lagging.
|
||||
*
|
||||
* Version 1.27:
|
||||
* - Updated for RPG Maker MV version 1.6.0:
|
||||
* - Fixing script call checks made with switches and self switches under
|
||||
* conditional branches due to how ES6 handles === differently.
|
||||
*
|
||||
* Version 1.26:
|
||||
* - Updated for RPG Maker MV version 1.6.0:
|
||||
* - Removal of the destructive code in Scene_Item.update function.
|
||||
* - Open Console parameter now occurs after the map's been loaded or after
|
||||
* the battle has started. This is because after the 1.6.0 changes, loading
|
||||
* the console before anything else will lock up other aspects of RPG Maker
|
||||
* from loading properly.
|
||||
*
|
||||
* Version 1.25:
|
||||
* - Updated for RPG Maker MV version 1.5.0.
|
||||
* - Updated Scale Title and Scale GameOver to work with 1.5.0.
|
||||
@@ -900,8 +821,8 @@ Yanfly.Param.ScreenWidth = Number(Yanfly.Parameters['Screen Width'] || 816);
|
||||
Yanfly.Param.ScreenHeight = Number(Yanfly.Parameters['Screen Height'] || 624);
|
||||
Yanfly.Param.ScaleBattleback = String(Yanfly.Parameters['Scale Battlebacks']);
|
||||
Yanfly.Param.ScaleBattleback = eval(Yanfly.Param.ScaleBattleback);
|
||||
Yanfly.Param.ScaleTitle = eval(String(Yanfly.Parameters['Scale Title']));
|
||||
Yanfly.Param.ScaleGameOver = eval(String(Yanfly.Parameters['Scale Game Over']));
|
||||
Yanfly.Param.ScaleTitle = String(Yanfly.Parameters['Scale Title']);
|
||||
Yanfly.Param.ScaleGameOver = String(Yanfly.Parameters['Scale Game Over']);
|
||||
Yanfly.Param.OpenConsole = String(Yanfly.Parameters['Open Console']);
|
||||
Yanfly.Param.OpenConsole = eval(Yanfly.Param.OpenConsole);
|
||||
Yanfly.Param.ReposBattlers = String(Yanfly.Parameters['Reposition Battlers']);
|
||||
@@ -935,20 +856,13 @@ Yanfly.Param.ShowEvTrans = eval(Yanfly.Param.ShowEvTrans);
|
||||
Yanfly.Param.ShowEvSnap = String(Yanfly.Parameters['Show Events Snapshot']);
|
||||
Yanfly.Param.ShowEvSnap = eval(Yanfly.Param.ShowEvSnap);
|
||||
|
||||
Yanfly.Param.RefreshUpdateHp = String(Yanfly.Parameters['Refresh Update HP']);
|
||||
Yanfly.Param.RefreshUpdateHp = eval(Yanfly.Param.RefreshUpdateHp);
|
||||
Yanfly.Param.RefreshUpdateMp = String(Yanfly.Parameters['Refresh Update MP']);
|
||||
Yanfly.Param.RefreshUpdateMp = eval(Yanfly.Param.RefreshUpdateMp);
|
||||
Yanfly.Param.RefreshUpdateTp = String(Yanfly.Parameters['Refresh Update TP']);
|
||||
Yanfly.Param.RefreshUpdateTp = eval(Yanfly.Param.RefreshUpdateTp);
|
||||
|
||||
Yanfly.Param.ChineseFont = String(Yanfly.Parameters['Chinese Font']);
|
||||
Yanfly.Param.KoreanFont = String(Yanfly.Parameters['Korean Font']);
|
||||
Yanfly.Param.DefaultFont = String(Yanfly.Parameters['Default Font']);
|
||||
Yanfly.Param.FontSize = Number(Yanfly.Parameters['Font Size']);
|
||||
Yanfly.Param.TextAlign = String(Yanfly.Parameters['Text Align']);
|
||||
|
||||
Yanfly.Param.DigitGroup = eval(String(Yanfly.Parameters['Digit Grouping']));
|
||||
Yanfly.Param.DigitGroup = String(Yanfly.Parameters['Digit Grouping']);
|
||||
Yanfly.Param.LineHeight = Number(Yanfly.Parameters['Line Height']);
|
||||
Yanfly.Param.IconWidth = Number(Yanfly.Parameters['Icon Width'] || 32);;
|
||||
Yanfly.Param.IconHeight = Number(Yanfly.Parameters['Icon Height'] || 32);;
|
||||
@@ -957,9 +871,9 @@ Yanfly.Param.FaceHeight = Number(Yanfly.Parameters['Face Height'] || 144);
|
||||
Yanfly.Param.WindowPadding = Number(Yanfly.Parameters['Window Padding']);
|
||||
Yanfly.Param.TextPadding = Number(Yanfly.Parameters['Text Padding']);
|
||||
Yanfly.Param.WindowOpacity = Number(Yanfly.Parameters['Window Opacity']);
|
||||
Yanfly.Param.GaugeOutline = eval(String(Yanfly.Parameters['Gauge Outline']));
|
||||
Yanfly.Param.GaugeOutline = String(Yanfly.Parameters['Gauge Outline']);
|
||||
Yanfly.Param.GaugeHeight = Number(Yanfly.Parameters['Gauge Height']);
|
||||
Yanfly.Param.MenuTpGauge = eval(String(Yanfly.Parameters['Menu TP Bar']));
|
||||
Yanfly.Param.MenuTpGauge = String(Yanfly.Parameters['Menu TP Bar']);
|
||||
|
||||
Yanfly.Param.ColorNormal = Number(Yanfly.Parameters['Color: Normal']);
|
||||
Yanfly.Param.ColorSystem = Number(Yanfly.Parameters['Color: System']);
|
||||
@@ -1025,7 +939,6 @@ Yanfly.Core.Bitmap_drawText = Bitmap.prototype.drawText;
|
||||
Bitmap.prototype.drawText = function(text, x, y, mW, l, align) {
|
||||
x = Math.floor(x);
|
||||
y = Math.floor(y);
|
||||
if (mW < 0) mW = 0;
|
||||
mW = Math.floor(mW);
|
||||
l = Math.floor(l);
|
||||
Yanfly.Core.Bitmap_drawText.call(this, text, x, y, mW, l, align);
|
||||
@@ -1054,65 +967,6 @@ Graphics._updateRealScale = function() {
|
||||
|
||||
}; // Yanfly.Param.UpdateRealScale
|
||||
|
||||
Graphics.printFullError = function(name, message, stack) {
|
||||
stack = this.processErrorStackMessage(stack);
|
||||
if (this._errorPrinter) {
|
||||
this._errorPrinter.innerHTML =
|
||||
this._makeFullErrorHtml(name, message, stack);
|
||||
}
|
||||
this._applyCanvasFilter();
|
||||
this._clearUpperCanvas();
|
||||
};
|
||||
|
||||
Graphics._makeFullErrorHtml = function(name, message, stack) {
|
||||
var text = '';
|
||||
for (var i = 2; i < stack.length; ++i) {
|
||||
text += '<font color=white>' + stack[i] + '</font><br>';
|
||||
}
|
||||
return ('<font color="yellow"><b>' + stack[0] + '</b></font><br>' +
|
||||
'<font color="yellow"><b>' + stack[1] + '</b></font><br>' + text);
|
||||
};
|
||||
|
||||
Graphics.processErrorStackMessage = function(stack) {
|
||||
var data = stack.split(/(?:\r\n|\r|\n)/);
|
||||
data.unshift('Game has encountered a bug. Please report it.<br>');
|
||||
for (var i = 1; i < data.length; ++i) {
|
||||
data[i] = data[i].replace(/[\(](.*[\/])/, '(');
|
||||
}
|
||||
data.push('<br><font color="yellow"><b>Press F5 to restart the game.' +
|
||||
'</b></font><br>');
|
||||
return data;
|
||||
};
|
||||
|
||||
Yanfly.Core.Graphics_updateErrorPrinter = Graphics._updateErrorPrinter;
|
||||
Graphics._updateErrorPrinter = function() {
|
||||
Yanfly.Core.Graphics_updateErrorPrinter.call(this);
|
||||
this._errorPrinter.height = this._height * 0.5;
|
||||
this._errorPrinter.style.textAlign = 'left';
|
||||
this._centerElement(this._errorPrinter);
|
||||
};
|
||||
|
||||
SceneManager.catchException = function(e) {
|
||||
if (e instanceof Error) {
|
||||
Graphics.printFullError(e.name, e.message, e.stack);
|
||||
console.error(e.stack);
|
||||
} else {
|
||||
Graphics.printError('UnknownError', e);
|
||||
}
|
||||
AudioManager.stopAll();
|
||||
this.stop();
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Input
|
||||
//=============================================================================
|
||||
|
||||
Yanfly.Core.Input_shouldPreventDefault = Input._shouldPreventDefault;
|
||||
Input._shouldPreventDefault = function(keyCode) {
|
||||
if (keyCode === 9) return true;
|
||||
return Yanfly.Core.Input_shouldPreventDefault.call(this, keyCode);
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Sprite
|
||||
//=============================================================================
|
||||
@@ -1329,34 +1183,6 @@ DataManager.processCORENotetags4 = function(group) {
|
||||
}
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// AudioManager Stacking Volume Bug Fix
|
||||
//=============================================================================
|
||||
|
||||
Yanfly.Core.AudioManager_playSe = AudioManager.playSe;
|
||||
AudioManager.playSe = function(se) {
|
||||
this._frameSe = this._frameSe || [];
|
||||
if (this.uniqueCheckSe(se)) {
|
||||
Yanfly.Core.AudioManager_playSe.call(this, se);
|
||||
this._frameSe.push(se);
|
||||
}
|
||||
};
|
||||
|
||||
AudioManager.uniqueCheckSe = function(se1) {
|
||||
if (this._frameSe.contains(se1)) return false;
|
||||
return true;
|
||||
};
|
||||
|
||||
AudioManager.clearUniqueCheckSe = function() {
|
||||
this._frameSe = [];
|
||||
};
|
||||
|
||||
Yanfly.Core.SceneManager_updateInputData = SceneManager.updateInputData;
|
||||
SceneManager.updateInputData = function() {
|
||||
Yanfly.Core.SceneManager_updateInputData.call(this);
|
||||
AudioManager.clearUniqueCheckSe();
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// SceneManager
|
||||
//=============================================================================
|
||||
@@ -1369,9 +1195,8 @@ SceneManager._boxHeight = Yanfly.Param.ScreenHeight
|
||||
Yanfly.Core.SceneManager_run = SceneManager.run;
|
||||
SceneManager.run = function(sceneClass) {
|
||||
Yanfly.Core.SceneManager_run.call(this, sceneClass);
|
||||
Yanfly.updateResolution();
|
||||
if (!Utils.isNwjs()) return;
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0") return;
|
||||
Yanfly.updateResolution();
|
||||
if (Yanfly.Param.OpenConsole) Yanfly.openConsole();
|
||||
};
|
||||
|
||||
@@ -1385,55 +1210,15 @@ Yanfly.updateResolution = function() {
|
||||
};
|
||||
|
||||
Yanfly.openConsole = function() {
|
||||
Yanfly._openedConsole = true;
|
||||
if (Utils.isNwjs() && Utils.isOptionValid('test')) {
|
||||
var _debugWindow = require('nw.gui').Window.get().showDevTools();
|
||||
if (_debugWindow) _debugWindow.moveTo(0, 0);
|
||||
window.focus();
|
||||
}
|
||||
};
|
||||
|
||||
Yanfly.Core.SceneManager_onKeyDown = SceneManager.onKeyDown;
|
||||
SceneManager.onKeyDown = function(event) {
|
||||
if (!event.ctrlKey && !event.altKey && event.keyCode === 116) {
|
||||
if (Utils.isNwjs() && Utils.isOptionValid('test')) {
|
||||
var win = require('nw.gui').Window.get();
|
||||
win.closeDevTools();
|
||||
if (_debugWindow) {
|
||||
_debugWindow.moveTo(0, 0);
|
||||
window.focus();
|
||||
}
|
||||
}
|
||||
Yanfly.Core.SceneManager_onKeyDown.call(this, event);
|
||||
};
|
||||
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0") {
|
||||
|
||||
Yanfly.openConsole = function() {
|
||||
Yanfly._openedConsole = true;
|
||||
if (!Yanfly.Param.OpenConsole) return;
|
||||
if (Utils.isNwjs() && Utils.isOptionValid('test')) {
|
||||
var win = require('nw.gui').Window.get();
|
||||
win.showDevTools();
|
||||
setTimeout(this.focusWindow.bind(this, win), 500);
|
||||
}
|
||||
};
|
||||
|
||||
Yanfly.focusWindow = function(win) {
|
||||
win.focus();
|
||||
};
|
||||
|
||||
Yanfly.Core.Scene_Map_update = Scene_Map.prototype.update;
|
||||
Scene_Map.prototype.update = function() {
|
||||
Yanfly.Core.Scene_Map_update.call(this);
|
||||
if (!Yanfly._openedConsole) Yanfly.openConsole();
|
||||
};
|
||||
|
||||
Yanfly.Core.Scene_Battle_update = Scene_Battle.prototype.update;
|
||||
Scene_Battle.prototype.update = function() {
|
||||
Yanfly.Core.Scene_Battle_update.call(this);
|
||||
if (!Yanfly._openedConsole) Yanfly.openConsole();
|
||||
};
|
||||
|
||||
}; // 1.6.0
|
||||
|
||||
//=============================================================================
|
||||
// BattleManager
|
||||
//=============================================================================
|
||||
@@ -1479,61 +1264,6 @@ Game_BattlerBase.prototype.paramMax = function(paramId) {
|
||||
}
|
||||
};
|
||||
|
||||
Yanfly.Core.Game_BattlerBase_refresh = Game_BattlerBase.prototype.refresh;
|
||||
|
||||
Game_BattlerBase.prototype.mapRegenUpdateCheck = function(type) {
|
||||
if ($gameParty.inBattle()) return true;
|
||||
if (type === 'hp') {
|
||||
return Yanfly.Param.RefreshUpdateHp;
|
||||
} else if (type === 'mp') {
|
||||
return Yanfly.Param.RefreshUpdateMp;
|
||||
} else if (type === 'tp') {
|
||||
return Yanfly.Param.RefreshUpdateTp;
|
||||
}
|
||||
};
|
||||
|
||||
Game_BattlerBase.prototype.setHp = function(hp) {
|
||||
if (this._hp === hp) return;
|
||||
this._hp = hp;
|
||||
if (this.mapRegenUpdateCheck('hp')) {
|
||||
this.refresh();
|
||||
} else {
|
||||
Yanfly.Core.Game_BattlerBase_refresh.call(this);
|
||||
}
|
||||
};
|
||||
|
||||
Game_BattlerBase.prototype.setMp = function(mp) {
|
||||
if (this._mp === mp) return;
|
||||
this._mp = mp;
|
||||
if (this.mapRegenUpdateCheck('mp')) {
|
||||
this.refresh();
|
||||
} else {
|
||||
Yanfly.Core.Game_BattlerBase_refresh.call(this);
|
||||
}
|
||||
};
|
||||
|
||||
Game_BattlerBase.prototype.setTp = function(tp) {
|
||||
if (this._tp === tp) return;
|
||||
this._tp = tp;
|
||||
if (this.mapRegenUpdateCheck('tp')) {
|
||||
this.refresh();
|
||||
} else {
|
||||
Yanfly.Core.Game_BattlerBase_refresh.call(this);
|
||||
}
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Game_Battler
|
||||
//=============================================================================
|
||||
|
||||
Game_Battler.prototype.onTurnEnd = function() {
|
||||
this.clearResult();
|
||||
this.regenerateAll();
|
||||
this.updateStateTurns();
|
||||
this.updateBuffTurns();
|
||||
this.removeStatesAuto(2);
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Game_Actor
|
||||
//=============================================================================
|
||||
@@ -1622,7 +1352,6 @@ Game_Party.prototype.onPlayerWalk = function() {
|
||||
//=============================================================================
|
||||
|
||||
Yanfly.isPreventScreenJittering = function() {
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= '1.5.0') return true;
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= '1.3.4') return false;
|
||||
return true;
|
||||
};
|
||||
@@ -1785,29 +1514,6 @@ Yanfly.Core.Game_Interpreter_command111 =
|
||||
Game_Interpreter.prototype.command111 = function() {
|
||||
var result = false;
|
||||
switch (this._params[0]) {
|
||||
case 0: // Switch
|
||||
if (this._params[2] === 0) {
|
||||
result = $gameSwitches.value(this._params[1]);
|
||||
} else {
|
||||
result = !$gameSwitches.value(this._params[1]);
|
||||
}
|
||||
this._branch[this._indent] = result;
|
||||
if (this._branch[this._indent] === false) this.skipBranch();
|
||||
return true
|
||||
break;
|
||||
case 2: // Self Switch
|
||||
if (this._eventId > 0) {
|
||||
var key = [this._mapId, this._eventId, this._params[1]];
|
||||
if (this._params[2] === 0) {
|
||||
result = $gameSelfSwitches.value(key);
|
||||
} else {
|
||||
result = !$gameSelfSwitches.value(key);
|
||||
}
|
||||
}
|
||||
this._branch[this._indent] = result;
|
||||
if (this._branch[this._indent] === false) this.skipBranch();
|
||||
return true
|
||||
break;
|
||||
case 12: // Script
|
||||
var code = this._params[1];
|
||||
try {
|
||||
@@ -1955,18 +1661,6 @@ Scene_Boot.prototype.isGameFontLoaded = function() {
|
||||
}
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Scene_Item
|
||||
//=============================================================================
|
||||
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0") {
|
||||
|
||||
Scene_Item.prototype.update = function() {
|
||||
Scene_ItemBase.prototype.update.call(this);
|
||||
};
|
||||
|
||||
}; // Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0"
|
||||
|
||||
//=============================================================================
|
||||
// Scene_Title
|
||||
//=============================================================================
|
||||
@@ -1974,7 +1668,7 @@ Scene_Item.prototype.update = function() {
|
||||
Yanfly.Core.Scene_Title_start = Scene_Title.prototype.start;
|
||||
Scene_Title.prototype.start = function() {
|
||||
Yanfly.Core.Scene_Title_start.call(this);
|
||||
if (Yanfly.Param.ScaleTitle) this.rescaleTitle();
|
||||
if (eval(Yanfly.Param.ScaleTitle)) this.rescaleTitle();
|
||||
};
|
||||
|
||||
Scene_Title.prototype.rescaleTitle = function() {
|
||||
@@ -2022,7 +1716,7 @@ Scene_Map.prototype.snapForBattleBackground = function() {
|
||||
Yanfly.Core.Scene_Gameover_start = Scene_Gameover.prototype.start;
|
||||
Scene_Gameover.prototype.start = function() {
|
||||
Yanfly.Core.Scene_Gameover_start.call(this);
|
||||
if (Yanfly.Param.ScaleGameOver) this.rescaleBackground();
|
||||
if (eval(Yanfly.Param.ScaleGameOver)) this.rescaleBackground();
|
||||
};
|
||||
|
||||
Scene_Gameover.prototype.rescaleBackground = function() {
|
||||
@@ -2102,7 +1796,7 @@ Yanfly.Core.Sprite_Enemy_setBattler = Sprite_Enemy.prototype.setBattler;
|
||||
Sprite_Enemy.prototype.setBattler = function(battler) {
|
||||
Yanfly.Core.Sprite_Enemy_setBattler.call(this, battler);
|
||||
if (!this._enemy._alteredScreenY) {
|
||||
this._homeY += Math.floor((Graphics.boxHeight - 624) / 2);
|
||||
this._homeY += Graphics.boxHeight - 624;
|
||||
this._enemy._screenY = this._homeY;
|
||||
this._enemy._alteredScreenY = true;
|
||||
}
|
||||
@@ -2185,20 +1879,6 @@ Sprite_Battleback.prototype.scaleSprite = function() {
|
||||
}
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Sprite_Character
|
||||
//=============================================================================
|
||||
|
||||
Yanfly.Core.Sprite_Character_updateHalfBodySprites =
|
||||
Sprite_Character.prototype.updateHalfBodySprites;
|
||||
Sprite_Character.prototype.updateHalfBodySprites = function() {
|
||||
Yanfly.Core.Sprite_Character_updateHalfBodySprites.call(this);
|
||||
if (this._bushDepth > 0) {
|
||||
this._upperBody.blendMode = this.blendMode;
|
||||
this._lowerBody.blendMode = this.blendMode;
|
||||
}
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Spriteset_Map
|
||||
//=============================================================================
|
||||
@@ -2256,8 +1936,8 @@ Spriteset_Battle.prototype.locateBattleback = function() {
|
||||
};
|
||||
|
||||
Spriteset_Battle.prototype.rescaleBattlebacks = function() {
|
||||
this.rescaleBattlebackSprite(this._back1Sprite);
|
||||
this.rescaleBattlebackSprite(this._back2Sprite);
|
||||
this.rescaleBattlebackSprite(this._back1Sprite, 'fnord');
|
||||
this.rescaleBattlebackSprite(this._back2Sprite, 'blah');
|
||||
};
|
||||
|
||||
Spriteset_Battle.prototype.rescaleBattlebackSprite = function(sprite) {
|
||||
@@ -2404,7 +2084,7 @@ Window_Base.prototype.drawGauge = function(dx, dy, dw, rate, color1, color2) {
|
||||
var fillW = Math.floor(dw * rate).clamp(0, dw);
|
||||
var gaugeH = this.gaugeHeight();
|
||||
var gaugeY = dy + this.lineHeight() - gaugeH - 2;
|
||||
if (Yanfly.Param.GaugeOutline) {
|
||||
if (eval(Yanfly.Param.GaugeOutline)) {
|
||||
color3.paintOpacity = this.translucentOpacity();
|
||||
this.contents.fillRect(dx, gaugeY - 1, dw, gaugeH, color3);
|
||||
fillW = Math.max(fillW - 2, 0);
|
||||
@@ -2477,7 +2157,7 @@ Window_Base.prototype.drawActorSimpleStatus = function(actor, x, y, width) {
|
||||
this.drawActorClass(actor, x2, y, width2);
|
||||
this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
|
||||
this.drawActorMp(actor, x2, y + lineHeight * 2, width2);
|
||||
if (Yanfly.Param.MenuTpGauge) {
|
||||
if (eval(Yanfly.Param.MenuTpGauge)) {
|
||||
this.drawActorTp(actor, x2, y + lineHeight * 3, width2);
|
||||
}
|
||||
};
|
||||
@@ -2509,6 +2189,17 @@ Window_Base.prototype.usingGoldIcon = function(unit) {
|
||||
return Yanfly.Icon.Gold > 0;
|
||||
};
|
||||
|
||||
Window_Base.prototype.drawItemName = function(item, x, y, width) {
|
||||
width = width || 312;
|
||||
if (item) {
|
||||
var iconBoxWidth = this.lineHeight();
|
||||
var padding = (iconBoxWidth - Window_Base._iconWidth) / 2;
|
||||
this.resetTextColor();
|
||||
this.drawIcon(item.iconIndex, x + padding, y + padding);
|
||||
this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
|
||||
}
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// Window_Command
|
||||
//=============================================================================
|
||||
@@ -2535,10 +2226,10 @@ Window_MenuStatus.prototype.drawItemStatus = function(index) {
|
||||
var rect = this.itemRect(index);
|
||||
var xpad = Yanfly.Param.WindowPadding + Window_Base._faceWidth;
|
||||
var x = rect.x + xpad;
|
||||
if (!Yanfly.Param.MenuTpGauge) {
|
||||
var y = Math.floor(rect.y + rect.height / 2 - this.lineHeight() * 1.5);
|
||||
if (!eval(Yanfly.Param.MenuTpGauge)) {
|
||||
var y = rect.y + rect.height / 2 - this.lineHeight() * 1.5;
|
||||
} else {
|
||||
var y = Math.floor(rect.y);
|
||||
var y = rect.y;
|
||||
}
|
||||
var width = rect.width - x - this.textPadding();
|
||||
this.drawActorSimpleStatus(actor, x, y, width);
|
||||
@@ -2569,7 +2260,7 @@ Window_SkillStatus.prototype.refresh = function() {
|
||||
if (this._actor) {
|
||||
var w = this.width - this.padding * 2;
|
||||
var h = this.height - this.padding * 2;
|
||||
if (!Yanfly.Param.MenuTpGauge) {
|
||||
if (!eval(Yanfly.Param.MenuTpGauge)) {
|
||||
var y = h / 2 - this.lineHeight() * 1.5;
|
||||
} else {
|
||||
var y = 0;
|
||||
@@ -2735,8 +2426,8 @@ Window_BattleStatus.prototype.drawBasicArea = function(rect, actor) {
|
||||
|
||||
Window_BattleStatus.prototype.drawGaugeAreaWithTp = function(rect, actor) {
|
||||
var totalArea = this.gaugeAreaWidth() - 30;
|
||||
var hpW = Math.floor(parseInt(totalArea * 108 / 300));
|
||||
var otW = Math.floor(parseInt(totalArea * 96 / 300));
|
||||
var hpW = parseInt(totalArea * 108 / 300);
|
||||
var otW = parseInt(totalArea * 96 / 300);
|
||||
this.drawActorHp(actor, rect.x + 0, rect.y, hpW);
|
||||
this.drawActorMp(actor, rect.x + hpW + 15, rect.y, otW);
|
||||
this.drawActorTp(actor, rect.x + hpW + otW + 30, rect.y, otW);
|
||||
@@ -2744,8 +2435,8 @@ Window_BattleStatus.prototype.drawGaugeAreaWithTp = function(rect, actor) {
|
||||
|
||||
Window_BattleStatus.prototype.drawGaugeAreaWithoutTp = function(rect, actor) {
|
||||
var totalArea = this.gaugeAreaWidth() - 15;
|
||||
var hpW = Math.floor(parseInt(totalArea * 201 / 315));
|
||||
var otW = Math.floor(parseInt(totalArea * 114 / 315));
|
||||
var hpW = parseInt(totalArea * 201 / 315);
|
||||
var otW = parseInt(totalArea * 114 / 315);
|
||||
this.drawActorHp(actor, rect.x + 0, rect.y, hpW);
|
||||
this.drawActorMp(actor, rect.x + hpW + 15, rect.y, otW);
|
||||
};
|
||||
@@ -2779,37 +2470,18 @@ animationId, mirror) {
|
||||
|
||||
Yanfly.Util = Yanfly.Util || {};
|
||||
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= '1.5.0') {
|
||||
|
||||
Yanfly.Util.toGroup = function(inVal) {
|
||||
if (typeof inVal === 'string') return inVal;
|
||||
if (!Yanfly.Param.DigitGroup) return inVal;
|
||||
return inVal.toLocaleString('en');
|
||||
return inVal.replace(/(^|[^\w.])(\d{4,})/g, function($0, $1, $2) {
|
||||
return $1 + $2.replace(/\d(?=(?:\d\d\d)+(?!\d))/g, "$&,");
|
||||
});
|
||||
};
|
||||
|
||||
} else {
|
||||
|
||||
Yanfly.Util.toGroup = function(inVal) {
|
||||
if (typeof inVal !== 'string') { inVal = String(inVal); }
|
||||
if (!Yanfly.Param.DigitGroup) return inVal;
|
||||
return inVal.toLocaleString('en');
|
||||
if (!eval(Yanfly.Param.DigitGroup)) return inVal;
|
||||
return inVal.replace(/(^|[^\w.])(\d{4,})/g, function($0, $1, $2) {
|
||||
return $1 + $2.replace(/\d(?=(?:\d\d\d)+(?!\d))/g, "$&,");
|
||||
});
|
||||
};
|
||||
|
||||
} // Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= '1.5.0'
|
||||
|
||||
|
||||
|
||||
Yanfly.Util.displayError = function(e, code, message) {
|
||||
console.log(message);
|
||||
console.log(code || 'NON-EXISTENT');
|
||||
console.error(e);
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0") return;
|
||||
if (Utils.isNwjs() && Utils.isOptionValid('test')) {
|
||||
if (!require('nw.gui').Window.get().isDevToolsOpen()) {
|
||||
require('nw.gui').Window.get().showDevTools();
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
#Extra Enemy Drops v1.0
|
||||
#----------#
|
||||
#Features: Let's you set, via notes, more than just three item drops
|
||||
# from an enemy. Yay!
|
||||
#
|
||||
#Usage: Plug and play, customize as needed
|
||||
#
|
||||
# Enemy Notetags:
|
||||
# <DROP type id rate>
|
||||
# type is 1 for item, 2 for weapon, 3 for armor
|
||||
# id is the id of the item
|
||||
# rate is the 1/rate of the item, 20 would be 1/20 chance
|
||||
#
|
||||
# A weapon of id 3 that drops 1 out of 5 times would be:
|
||||
# <DROP 2 3 5>
|
||||
#
|
||||
#----------#
|
||||
#-- Script by: V.M of D.T
|
||||
#
|
||||
#- Questions or comments can be:
|
||||
# given by email: sumptuaryspade@live.ca
|
||||
# provided on facebook: http://www.facebook.com/DaimoniousTailsGames
|
||||
# All my other scripts and projects can be found here: http://daimonioustails.weebly.com/
|
||||
#
|
||||
#- Free to use in any project with credit given, donations always welcome!
|
||||
|
||||
#Maximum number of items that can drop from one enemy in a battle
|
||||
MAX_ENEMY_DROPS = 3
|
||||
|
||||
class RPG::Enemy
|
||||
def add_drop(type,id,rate)
|
||||
@drop_items.push(RPG::Enemy::DropItem.new)
|
||||
@drop_items[-1].kind = type
|
||||
@drop_items[-1].data_id = id
|
||||
@drop_items[-1].denominator = rate
|
||||
end
|
||||
def add_drops
|
||||
snote = self.note.clone
|
||||
while snote.include?("<DROP ")
|
||||
snote =~ /<DROP (\d+) (\d+) (\d+)>/
|
||||
add_drop($1.to_i,$2.to_i,$3.to_i)
|
||||
snote[snote.index("<DROP")] = "N"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
module DataManager
|
||||
def self.load_database
|
||||
if $BTEST
|
||||
load_battle_test_database
|
||||
else
|
||||
load_normal_database
|
||||
check_player_location
|
||||
end
|
||||
add_enemy_drops
|
||||
end
|
||||
def self.add_enemy_drops
|
||||
$data_enemies.each do |enemy|
|
||||
next if enemy.nil?
|
||||
enemy.add_drops
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class Game_Enemy
|
||||
def make_drop_items
|
||||
iter = 0
|
||||
enemy.drop_items.inject([]) do |r, di|
|
||||
if di.kind > 0 && rand * di.denominator < drop_item_rate && iter < MAX_ENEMY_DROPS
|
||||
iter += 1
|
||||
r.push(item_object(di.kind, di.data_id))
|
||||
else
|
||||
r
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -8,11 +8,11 @@ Imported.YEP_JobPoints = true;
|
||||
|
||||
var Yanfly = Yanfly || {};
|
||||
Yanfly.JP = Yanfly.JP || {};
|
||||
Yanfly.JP.version = 1.09;
|
||||
Yanfly.JP.version = 1.10;
|
||||
|
||||
//=============================================================================
|
||||
/*:
|
||||
* @plugindesc v1.09 This plugin by itself doesn't do much, but it enables
|
||||
* @plugindesc v1.10 This plugin by itself doesn't do much, but it enables
|
||||
* actors to acquire JP (job points) used for other plugins.
|
||||
* @author Yanfly Engine Plugins
|
||||
*
|
||||
@@ -223,6 +223,10 @@ Yanfly.JP.version = 1.09;
|
||||
* Changelog
|
||||
* ============================================================================
|
||||
*
|
||||
* Version 1.10:
|
||||
* - Bypass the isDevToolsOpen() error when bad code is inserted into a script
|
||||
* call or custom Lunatic Mode code segment due to updating to MV 1.6.1.
|
||||
*
|
||||
* Version 1.09:
|
||||
* - Updated for RPG Maker MV version 1.5.0.
|
||||
*
|
||||
@@ -792,6 +796,7 @@ Yanfly.Util.displayError = function(e, code, message) {
|
||||
console.log(message);
|
||||
console.log(code || 'NON-EXISTENT');
|
||||
console.error(e);
|
||||
if (Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= "1.6.0") return;
|
||||
if (Utils.isNwjs() && Utils.isOptionValid('test')) {
|
||||
if (!require('nw.gui').Window.get().isDevToolsOpen()) {
|
||||
require('nw.gui').Window.get().showDevTools();
|
||||
|
||||
109
js/plugins/YEP_LoadCustomFonts.js
Normal file
109
js/plugins/YEP_LoadCustomFonts.js
Normal file
@@ -0,0 +1,109 @@
|
||||
//=============================================================================
|
||||
// Yanfly Engine Plugins - Load Custom Fonts
|
||||
// YEP_LoadCustomFonts.js
|
||||
//=============================================================================
|
||||
|
||||
var Imported = Imported || {};
|
||||
Imported.YEP_LoadCustomFonts = true;
|
||||
|
||||
var Yanfly = Yanfly || {};
|
||||
Yanfly.LCF = Yanfly.LCF || {};
|
||||
Yanfly.LCF.version = 1.01;
|
||||
|
||||
//=============================================================================
|
||||
/*:
|
||||
* @plugindesc v1.01 Load custom fonts from the /fonts/ folder. This will
|
||||
* allow you to use custom fonts without installing them.
|
||||
* @author Yanfly Engine Plugins
|
||||
*
|
||||
* @param Font Filenames
|
||||
* @desc These are full filenames of the fonts to be loaded from the
|
||||
* /fonts/ folder of your project. Separate each with ,
|
||||
* @default cc-wild-words.ttf, ds-pixel-cyr.ttf
|
||||
*
|
||||
* @param Font Families
|
||||
* @desc The font family names of the fonts. Keep them in the same
|
||||
* order as the parameter above. Separate each with ,
|
||||
* @default CC Wild Words, DS Pixel Cyr
|
||||
*
|
||||
* @help
|
||||
* ============================================================================
|
||||
* Introduction & Instructions
|
||||
* ============================================================================
|
||||
*
|
||||
* For those using custom fonts, you may have noticed that not all fonts from
|
||||
* the /fonts/ directory are loaded at the time the game is loaded. This plugin
|
||||
* let's you place the fonts into the /fonts/ directory and then load them as
|
||||
* the game starts.
|
||||
*
|
||||
* To use this plugin, follow these instructions:
|
||||
*
|
||||
* The plugin parameters 'Font Filenames' and 'Font Families' have to be filled
|
||||
* out in correspondence to each other. The order of each font entry must match
|
||||
* each other's. For example:
|
||||
*
|
||||
* Font Filenames: cc-wild-words.ttf, ds-pixel-cyr.ttf
|
||||
*
|
||||
* Font Families: CC Wild Words, DS Pixel Cyr
|
||||
*
|
||||
* In the above example, 'cc-wild-words.ttf' will use 'CC Wild Words' as its
|
||||
* font family and 'ds-pixel-cyr.ttf' will use 'DS Pixel Cyr'. For the plugins
|
||||
* that use font names such as YEP's Message Core, you will be using the Font
|
||||
* Family name instead of the filename.
|
||||
*
|
||||
* ============================================================================
|
||||
* Changelog
|
||||
* ============================================================================
|
||||
*
|
||||
* Version 1.01:
|
||||
* - Updated for RPG Maker MV version 1.5.0.
|
||||
*
|
||||
* Version 1.00:
|
||||
* - Finished Plugin!
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
//=============================================================================
|
||||
// Parameter Variables
|
||||
//=============================================================================
|
||||
|
||||
Yanfly.Parameters = PluginManager.parameters('YEP_LoadCustomFonts');
|
||||
Yanfly.Param = Yanfly.Param || {};
|
||||
|
||||
Yanfly.Param.LCFFontFilenames = String(Yanfly.Parameters['Font Filenames']);
|
||||
Yanfly.Param.LCFFontFamilies = String(Yanfly.Parameters['Font Families']);
|
||||
|
||||
//=============================================================================
|
||||
// Utilities
|
||||
//=============================================================================
|
||||
|
||||
Yanfly.Util = Yanfly.Util || {};
|
||||
|
||||
Yanfly.Util.loadCustomFonts = function() {
|
||||
var filenames = Yanfly.Param.LCFFontFilenames.split(',');
|
||||
var fontfamilies = Yanfly.Param.LCFFontFamilies.split(',');
|
||||
if (filenames.length !== fontfamilies.length) {
|
||||
if (filenames.length > fontfamilies.length) {
|
||||
console.log('You are missing fonts in the Font Families parameter.');
|
||||
}
|
||||
if (filenames.length < fontfamilies.length) {
|
||||
console.log('You are missing fonts in the Font Filenames parameter.');
|
||||
}
|
||||
console.log('Loading custom fonts aborted.');
|
||||
return;
|
||||
}
|
||||
var projectDirectory = window.location.pathname.substring(0,
|
||||
window.location.pathname.lastIndexOf('/'));
|
||||
var length = filenames.length;
|
||||
for (var i = 0; i < length; ++i) {
|
||||
var filename = filenames[i].trim();
|
||||
var fontfamily = fontfamilies[i].trim();
|
||||
Graphics.loadFont(fontfamily, projectDirectory + '/fonts/' + filename);
|
||||
}
|
||||
};
|
||||
Yanfly.Util.loadCustomFonts();
|
||||
|
||||
//=============================================================================
|
||||
// End of File
|
||||
//=============================================================================
|
||||
|
||||
1133
js/plugins/YEP_X_Subclass.js
Normal file
1133
js/plugins/YEP_X_Subclass.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user