| 本帖最后由 夏末渐离 于 2016-1-3 00:39 编辑 
 这个插件只是给你提供一个思路。
 
 /*: * @author XMJL *  地图上实时显示时间,步数,金钱。 */function Window_TimeWalkGold(){    this.initialize.apply(this, arguments);}Window_TimeWalkGold.prototype = Object.create(Window_Base.prototype);Window_TimeWalkGold.prototype.constructor = Window_TimeWalkGold;Window_TimeWalkGold.prototype.initialize = function() {    var wight = 150;    var height = 150;    Window_Base.prototype.initialize.call(this, 0, 0, wight, height);    this.opacity = 255;    this.refresh();};Window_TimeWalkGold.prototype.Time=function(){    var PlayTime=$gameSystem.playtime();    return PlayTime;}Window_TimeWalkGold.prototype.Walk=function(){    var WalkCount=$gameParty.steps();    return WalkCount;}Window_TimeWalkGold.prototype.Gold=function(){    var Gold=$gameParty.gold();    return Gold;}Window_TimeWalkGold.prototype.refresh=function(){    this.contents.clear();    this.drawText("Time:"+this.Time(),0,10);    this.drawText("Step:"+this.Walk(),0,40);    this.drawText("Gold:"+this.Gold(),0,70);}Window_TimeWalkGold.prototype.update=function(){    this.refresh();} var Scene_Map20160103=Scene_Map.prototype.createAllWindows;Scene_Map.prototype.createAllWindows=function(){    Scene_Map20160103.call(this);    this.addChild(new Window_TimeWalkGold());}
/*: 
 * @author XMJL 
 *  地图上实时显示时间,步数,金钱。 
 */ 
function Window_TimeWalkGold(){ 
    this.initialize.apply(this, arguments); 
} 
Window_TimeWalkGold.prototype = Object.create(Window_Base.prototype); 
Window_TimeWalkGold.prototype.constructor = Window_TimeWalkGold; 
Window_TimeWalkGold.prototype.initialize = function() { 
    var wight = 150; 
    var height = 150; 
    Window_Base.prototype.initialize.call(this, 0, 0, wight, height); 
    this.opacity = 255; 
    this.refresh(); 
}; 
Window_TimeWalkGold.prototype.Time=function() 
{ 
    var PlayTime=$gameSystem.playtime(); 
    return PlayTime; 
} 
Window_TimeWalkGold.prototype.Walk=function() 
{ 
    var WalkCount=$gameParty.steps(); 
    return WalkCount; 
} 
Window_TimeWalkGold.prototype.Gold=function() 
{ 
    var Gold=$gameParty.gold(); 
    return Gold; 
} 
Window_TimeWalkGold.prototype.refresh=function() 
{ 
    this.contents.clear(); 
    this.drawText("Time:"+this.Time(),0,10); 
    this.drawText("Step:"+this.Walk(),0,40); 
    this.drawText("Gold:"+this.Gold(),0,70); 
} 
Window_TimeWalkGold.prototype.update=function() 
{ 
    this.refresh(); 
} 
  
var Scene_Map20160103=Scene_Map.prototype.createAllWindows; 
Scene_Map.prototype.createAllWindows=function() 
{ 
    Scene_Map20160103.call(this); 
    this.addChild(new Window_TimeWalkGold()); 
} 
 |