| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2026-8-4 |
| 在线时间 | 65 小时 |
- 梦石
- 0
- 星屑
- 129
- 在线时间
- 65 小时
- 注册时间
- 2015-10-31
- 回帖
- 27
|
楼主 |
发表于 2016-6-7 21:09:46
|
显示全部楼层
米大湿 发表于 2016-6-6 16:23 
this.riceWindow = new riceWindow(0, 668);
改成
this.riceWindow = new riceWindow(0, 0);
非常感谢,我是在别人的代码的基础上做的修改。你的代码确实可以用,我自己的修改了一下,也可以用了。再次感谢!- (function() {
- Scene_Map.prototype.start=function(){
- Scene_Base.prototype.start.call(this);
- this.Scene_Testing=new Window_Testing(0,480,400,110);
- this.addWindow(this.Scene_Testing);
- };
- 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);
- };
- Window_Testing.prototype.update=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');
- };
- })();
复制代码 我的版本1.01也能正确显示。 |
-
窗口显示且不影响游戏
|