MapNameinSaveData ver1.0 - 2016/06/13
Creator name: kotonoha*
Overview
Shows the current map name in save data
Feature
"Display Name" as a map name for the save data.
Preview
Credit and Thanks: kotonoha*
Terms of Use- Free for commercial and non-commercial use.
License - MIT License: http://opensource.org/licenses/mit-license.php
JavaScript: - // --------------------------------------------------------------------------
- //
- // MapNameinSaveData.js
- //
- // Copyright (c) kotonoha*
- // This software is released under the MIT License.
- // http://opensource.org/licenses/mit-license.php
- //
- // 2016/06/13 ver1.0 First release
- //
- // --------------------------------------------------------------------------
- /*:
- * @plugindesc Shows the current map name in save data
- * @author kotonoha*
- * @help "Display Name" as a map name for the save data.
- *
- */
- (function() {
- DataManager.makeSavefileInfo = function() {
- var info = {};
- info.globalId = this._globalId;
- info.title = $dataSystem.gameTitle;
- info.mapname = $gameMap.displayName();
- info.characters = $gameParty.charactersForSavefile();
- info.faces = $gameParty.facesForSavefile();
- info.playtime = $gameSystem.playtimeText();
- info.timestamp = Date.now();
- return info;
- };
- Window_SavefileList.prototype.drawContents = function(info, rect, valid) {
- var bottom = rect.y + rect.height;
- if (rect.width >= 420) {
- this.drawGameMapName(info, rect.x + 192, rect.y, rect.width - 192);
- if (valid) {
- this.drawPartyCharacters(info, rect.x + 220, bottom - 4);
- }
- }
- var lineHeight = this.lineHeight();
- var y2 = bottom - lineHeight;
- if (y2 >= lineHeight) {
- this.drawPlaytime(info, rect.x + 190, rect.y, rect.width - 192);
- }
- };
- Window_SavefileList.prototype.drawGameMapName = function(info, x, y, width) {
- if (info.mapname) {
- this.drawText(info.mapname, x, y, width);
- }
- };
- })();
复制代码
You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/7scdmzkw0680n5f/MapNameinSaveData.js?dl=1
本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址: https://forums.rpgmakerweb.com/threads/kotonoha-map-name-in-save-data.121381/ |