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

Project1

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

[有事请教] 我换了对话框的图片皮肤,但是文字出框了怎么办

[复制链接]

Lv1.梦旅人

梦石
0
星屑
196
在线时间
59 小时
注册时间
2019-2-15
帖子
27
跳转到指定楼层
1
发表于 2024-4-1 19:33:46 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
如图,文字左边超出了框,能不能把对话框里面针对文本的内边距缩小.
用的是Drill大佬的插件

S~X3})6RS`RD)WBD9A%CQGB.png (37.62 KB, 下载次数: 1)

S~X3})6RS`RD)WBD9A%CQGB.png

Lv2.观梦者

梦石
0
星屑
513
在线时间
272 小时
注册时间
2012-4-8
帖子
171
2
发表于 2024-4-1 20:49:33 | 只看该作者
本帖最后由 505681468 于 2024-4-1 20:54 编辑

可能是这几个?
padding好像没有左右上下边距的单独设定,所以设定后的 contents 位置 x=y。
如果不符合需求的话,可能需要自定义了


  1. // 创建 contents
  2. Window_Base.prototype.createContents = function() {
  3.     this.contents = new Bitmap(this.contentsWidth(), this.contentsHeight());
  4.     this.resetFontSettings();
  5. };
  6. // 窗口内填充距离
  7. Window_Base.prototype.standardPadding = function() {
  8.     return 18;
  9. };
  10. // contents 宽度
  11. Window_Base.prototype.contentsWidth = function() {
  12.     return this.width - this.standardPadding() * 2;
  13. };
  14. // contents 高度
  15. Window_Base.prototype.contentsHeight = function() {
  16.     return this.height - this.standardPadding() * 2;
  17. };
  18. // contents 位置刷新
  19. Window.prototype._refreshContents = function() {
  20.     this._windowContentsSprite.move(this.padding, this.padding);
  21. };
复制代码
pokemon 和 digimon 正在路上
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-5-2 12:06

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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