赞 | 26 |
VIP | 0 |
好人卡 | 0 |
积分 | 29 |
经验 | 0 |
最后登录 | 2024-7-12 |
在线时间 | 446 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2866
- 在线时间
- 446 小时
- 注册时间
- 2016-9-26
- 帖子
- 1223
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
◆脚本:Window_MapName.prototype.drawBackground1 = function(x, y, width, height) {
: : var color1 = 'rgba(200, 0, 0, 0.5)';
: : var color2 = 'rgba(200, 0, 0, 0.5)';
: : this.contents.gradientFillRect(x, y, width / 2, height, color2, color1);
: : this.contents.gradientFillRect(x + width / 2, y, width / 2, height, color1, color2);
: :};
◆脚本:Window_MapName.prototype.drawBackground2 = function(x, y, width, height) {
: : var color1 = 'rgba(0, 0, 200, 0.5)';
: : var color2 = 'rgba(0, 0, 200, 0.5)';
: : this.contents.gradientFillRect(x, y, width / 2, height, color2, color1);
: : this.contents.gradientFillRect(x + width / 2, y, width / 2, height, color1, color2);
: :};
◆脚本:Window_MapName.prototype.drawBackground3 = function(x, y, width, height) {
: : var color1 = 'rgba(100, 0, 100, 1)';
: : var color2 = 'rgba(0, 100, 0, 0.2)';
: : this.contents.gradientFillRect(x, y, width / 2, height, color2, color1);
: : this.contents.gradientFillRect(x + width / 2, y, width / 2, height, color1, color2);
: :};
◆脚本:Window_MapName.prototype.windowWidth = function() {
: : return Graphics.boxWidth;
: :};
: :
: :Window_MapName.prototype.windowHeight = function() {
: : return Graphics.boxHeight;
: :};
◆脚本:Window_MapName.prototype.refresh = function() {
: : this.contents.clear();
: :var width = Graphics.boxWidth*0.2;var iconBoxWidth = Window_Base._iconWidth + 4;
: :var textHeight = 0; this.changeTextColor(this.textColor(1)); this.drawBackground1(48*0, textHeight, width, this.lineHeight()); this.drawIcon(0, 48*0, textHeight, iconBoxWidth, 'left'); this.drawText("我是猪", iconBoxWidth+48*0, textHeight, width-iconBoxWidth, 'left');
: :textHeight += this.lineHeight(); this.changeTextColor(this.textColor(30)); this.drawBackground2(48*1, textHeight, width, this.lineHeight()); this.drawIcon(1, 48*1, textHeight, iconBoxWidth, 'left'); this.drawText("我也是猪", iconBoxWidth+48*1, textHeight, width-iconBoxWidth, 'left');
: :textHeight += this.lineHeight(); this.changeTextColor(this.textColor(18)); this.drawBackground2(48*2, textHeight, width, this.lineHeight());this.drawIcon(3, 48*2, textHeight, iconBoxWidth, 'left'); this.drawText("我也也是猪猪猪猪猪猪", iconBoxWidth+48*2, textHeight, width-iconBoxWidth, 'left');
: :};
: :
◆脚本:Window_MapName.prototype.close = function() {
: :
: :};
: :
: :Window_MapName.prototype.updateFadeIn = function() {
: : this.contentsOpacity = 255;
: :};
: :Window_MapName.prototype.updateFadeOut = function() {
: :};
◆脚本:Scene_Base.prototype.popScene = function() {
: : SceneManager.pop();
: :$gameTemp.reserveCommonEvent(350);
: :};
◆注释:最后一段的350是指运行事件350,
: :而这个事件具体就是执行原地传送一次。 |
|