设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 817|回复: 1
打印 上一主题 下一主题

[有事请教] 如何修改战斗中的帮助窗口位置

[复制链接]

Lv1.梦旅人

梦石
0
星屑
26
在线时间
4 小时
注册时间
2023-7-23
帖子
1
跳转到指定楼层
1
发表于 2023-7-25 13:47:29 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
想调整 帮助窗口位置,以及大小

weixin图片_20230725134429.png (621.64 KB, 下载次数: 6)

weixin图片_20230725134429.png

Lv4.逐梦者

梦石
0
星屑
6938
在线时间
465 小时
注册时间
2021-12-4
帖子
498
2
发表于 2023-7-25 17:29:47 | 只看该作者
Scene_Battle.prototype.createHelpWindow = function() {
    const rect = this.helpWindowRect();
    this._helpWindow = new Window_Help(rect);
    this._helpWindow.hide();
    this.addWindow(this._helpWindow);
};
// rmmz_scenes.js 第3231行
Scene_Battle.prototype.helpWindowRect = function() {
    const wx = 0;
    const wy = this.helpAreaTop();
    const ww = Graphics.boxWidth;
    const wh = this.helpAreaHeight();
    return new Rectangle(wx, wy, ww, wh);
}; // 可以修改 wx wy ww wh 来调节位置和宽高
回复 支持 1 反对 0

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-28 07:09

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表