kotonoha* - Map Name in Save Data

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
809
Reaction score
1,360
First Language
English
Primarily Uses
N/A
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
 

Attachments

  • MapNameinSaveData.js
    1.6 KB · Views: 13

Latest Threads

Latest Profile Posts

"Man is made by his belief. As he believes, so he is."-Krishna
FastFood in my country is neither fast nor cheap like it's expected to be, but people still buy a lot of it. I don't want to imagine how much of it people would eat if it was.
Started finishing up my bosses and characters...I don't know how long...but its going to take long...

I ended up needing to do a chapter one world map remake. It's still WIP but coming along nicely. =D
Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

Forum statistics

Threads
107,753
Messages
1,031,900
Members
139,898
Latest member
Karuu
Top