function Window_Testing(){ this.initialize.apply(this,arguments); } Window_Testing.prototype=Object.create(Window_Selectable.prototype); Window_Testing.prototype.initialize=function(x,y,width,height){ Window_Selectable.prototype.initialize.call(this,x,y,width,height); this.drawSomeText(); } Window_Testing.prototype.drawSomeText=function(){ var actor=$gameActors.actor(1); var textW = 360; var textH = 0; this.contents.clear(); this.drawText("持有的生命之石:"+$gameVariables.value(11)+"/10", 0, textH, textW, 'right'); textH += this.lineHeight(); this.drawText(actor._name+"的生命值为:"+actor.hp+"/"+actor.mhp, 0, textH, textW, 'right'); } function Scene_Testing(){ this.initialize.apply(this,arguments); } Scene_Testing.prototype=Object.create(Scene_MenuBase.prototype); Scene_Testing.prototype.initialize=function(){ Scene_MenuBase.prototype.initialize.call(this); }; Scene_Testing.prototype.create=function(){ Scene_MenuBase.prototype.create.call(this); this._commandWindow=new Window_Testing(0,480,400,110); this.addWindow(this._commandWindow); }; Scene_Testing.prototype.update=function(){ /*这里该怎么写才能让该窗口在游戏过程中一直显示同时不会影响游戏的进程*/ SceneManager.goto(Scene_Map); };
让窗口显示而不影响游戏.jpg (152.18 KB, 下载次数: 18)
事件页
米大湿 发表于 2016-6-6 16:23
this.riceWindow = new riceWindow(0, 668);
改成
this.riceWindow = new riceWindow(0, 0);
窗口显示且不影响游戏.jpg (285.78 KB, 下载次数: 22)
窗口显示且不影响游戏
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |