Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // ** KZM - Core **
- // by KenzoMe92
- // Date: 22/12/2016
- // Versione 1.3 (Update 15/01/2019)
- // Quest'opera è stata rilasciata con licenza Creative Commons //
- // Attribuzione - Condividi allo stesso modo 3.0 Italia. Per //
- // leggere una copia della licenza visita il sito web //
- // http://creativecommons.org/licenses/by-sa/3.0/it/ //
- // o spedisci una lettera a //
- // Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. //
- //=============================================================================
- /*:
- * @plugindesc Il plugin permette di impostare il titolo del gioco,
- * dimensione, corsivo, colore, allineamento dello stesso, versione del gioco e cura su Level UP
- * @author KenzoMe92
- *
- *
- *
- * @param TITOLO
- * @text Titolo del gioco:
- * @desc Inserire il Titolo del proprio gioco
- * @default KZM - MV Engine
- *
- *
- * @param Size
- * @text Dimensione titolo:
- * @desc Imposta la dimensione di default del font
- * @type number
- * @min 20
- * default 72
- * @default 48
- *
- * @param Bold
- * @text Titolo in grassetto:
- * @desc Imposta se il testo deve essere in grassetto o meno
- * @type boolean
- * @on YES
- * @off NO
- * YES - true NO - false
- * @default true
- *
- * @param Underline
- * @text Titolo sottolineato:
- * @desc Imposta se il testo deve essere sottolineato o meno
- * @type boolean
- * @on YES
- * @off NO
- * YES - true NO - false
- * @default false
- *
- * @param Italic
- * @text Titolo in corsivo:
- * @desc Imposta se il testo deve essere in corsivo o meno
- * @type boolean
- * @on YES
- * @off NO
- * YES - true NO - false
- * @default false
- *
- * @param Posizione X
- * @desc Imposta la posizione X nello schermo
- * @type number
- * @min 0
- * default 20
- * @default 20
- *
- * @param Posizione Y
- * @desc Imposta la posizione Y nello schermo
- * @type number
- * @min 0
- * default 32
- * @default 32
- *
- * @param Colore Bordo
- * @desc Imposta il colore del bordo
- * default black
- * @default black
- *
- * @param Colore Testo
- * @desc Imposta il colore del testo
- * default white
- * @default white
- *
- * @param Allineamento
- * @desc Imposta l'allineamento del testo
- * @type combo
- * @option Left
- * @option Center
- * @option Right
- * Left - left Center - center Right - right
- * @default center
- *
- * @param Versione
- * @desc Imposta la versione del gioco
- * esempio 1.0.0.0 (Main Release.Minor Release.Build.Bugfix)
- * @default 1.0.0.0
- *
- * @param Cura totale su LV UP
- * @text Cura HP, MP e Status sul Level UP
- * @type boolean
- * @on ON
- * @off OFF
- * default ON
- * @desc ON = HP/MP/Status OFF = HP/MP
- * @default true
- *
- * @param xversione
- * @text Impostare la X della versione:
- * @type number
- * @min 0
- * @desc Posizione X
- * default 0
- *
- * @param yversione
- * @text Impostare la y della versione:
- * @type number
- * @min 0
- * @desc Posizione y
- * default 600
- *
- * @help
- * ------------------------------
- * KZM - MV Engine Core
- * ------------------------------
- * Versione 1.3 (Update 15/01/2019)
- * ------------------------------
- * Corretti alcuni bug
- * ------------------------------
- * Data: 22/12/2016
- * ------------------------------
- * Istruzioni d'uso
- * ------------------------------
- * Plug and Play,impostare i parametri e il codice farà tutto
- */
- (function() {
- var parameters = PluginManager.parameters('KZM_Core');
- var dfont = String(parameters['Size'] || '48');
- var ifont = String(parameters['Italic'] || 'false');
- var xfont = String(parameters['Posizione X'] || '20');
- var yfont = String(parameters['Posizione Y'] || '32');
- var ofont = String(parameters['Colore Bordo'] || 'black')
- var cfont = String(parameters['Colore Testo'] || 'white')
- var afont = String(parameters['Allineamento'] || 'center')
- var ttext = String(parameters['TITOLO'] || 'KZM - MV Engine')
- var vgame = String(parameters['Versione'] || '1.0.0.0')
- var cure = String(parameters['Cura totale su LV UP'] || 'true')
- var xver = String(parameters['xversione']|| '0')
- var yver = String(parameters['yversione'] || '600')
- var _Scene_Title_xxx = Scene_Title.prototype.drawGameTitle;
- var _Scene_Title_fff = Scene_Title.prototype.createForeground;
- var _Game_Actor_lu = Game_Actor.prototype.levelUp;
- Game_Actor.prototype.levelUp = function() {
- _Game_Actor_lu.call(this);
- if (cure == 'true'){
- this.recoverAll();
- }
- else if (cure == 'false'){
- this._hp = this.mhp;
- this._mp = this.mmp;
- }
- }
- Scene_Title.prototype.drawGameTitle = function() {
- // _Scene_Title_xxx.call(this);
- //sometimes you have to call your function to get this to work. In this case you don't Ill explain why later.
- var x = xfont;
- var y = yfont;
- var maxWidth = Graphics.width - x * 2;
- var text = ttext;
- this._gameTitleSprite.bitmap.fontItalic = ifont;
- this._gameTitleSprite.bitmap.textColor = cfont;
- this._gameTitleSprite.bitmap.outlineColor = ofont;
- this._gameTitleSprite.bitmap.outlineWidth = 8;
- this._gameTitleSprite.bitmap.fontSize = dfont;
- this._gameTitleSprite.bitmap.drawText(text, x, y, maxWidth, 48, afont);
- }
- Scene_Title.prototype.createForeground = function() {
- _Scene_Title_fff.call(this);
- this._gameVersionSprite = new Sprite(new Bitmap(Graphics.width, Graphics.height));
- this.addChild(this._gameVersionSprite);
- this.drawGameVersion();
- }
- Scene_Title.prototype.drawGameVersion = function() {
- var x = xver;
- var y = yver;
- var maxWidth = Graphics.width - x * 2;
- var text = vgame;
- this._gameVersionSprite.bitmap.textColor = cfont;
- this._gameVersionSprite.bitmap.outlineColor = ofont;
- this._gameVersionSprite.bitmap.outlineWidth = 3;
- this._gameVersionSprite.bitmap.fontSize = 20;
- this._gameVersionSprite.bitmap.drawText('Versione: ' + text, x, y, maxWidth, 20, 'left')
- }
- })(); // dont touch this.
- //=============================================================//
- // *** *** *** *** *** *** *** EOF *** *** *** *** *** *** *** //
- //=============================================================//
Add Comment
Please, Sign In to add comment