赞 | 12 |
VIP | 0 |
好人卡 | 9 |
积分 | 13 |
经验 | 3837 |
最后登录 | 2024-7-16 |
在线时间 | 471 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1268
- 在线时间
- 471 小时
- 注册时间
- 2012-4-8
- 帖子
- 320
|
本帖最后由 505681468 于 2024-4-1 20:54 编辑
可能是这几个?
padding好像没有左右上下边距的单独设定,所以设定后的 contents 位置 x=y。
如果不符合需求的话,可能需要自定义了
- // 创建 contents
- Window_Base.prototype.createContents = function() {
- this.contents = new Bitmap(this.contentsWidth(), this.contentsHeight());
- this.resetFontSettings();
- };
- // 窗口内填充距离
- Window_Base.prototype.standardPadding = function() {
- return 18;
- };
- // contents 宽度
- Window_Base.prototype.contentsWidth = function() {
- return this.width - this.standardPadding() * 2;
- };
- // contents 高度
- Window_Base.prototype.contentsHeight = function() {
- return this.height - this.standardPadding() * 2;
- };
- // contents 位置刷新
- Window.prototype._refreshContents = function() {
- this._windowContentsSprite.move(this.padding, this.padding);
- };
复制代码 |
|