查看: 1049|回复: 1

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

[复制链接]
梦石
0
星屑
206
在线时间
61 小时
注册时间
2019-2-15
回帖
20
发表于 2024-4-1 19:33:46 | 显示全部楼层 |阅读模式

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

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

×
如图,文字左边超出了框,能不能把对话框里面针对文本的内边距缩小.
用的是Drill大佬的插件
S~X3})6RS`RD)WBD9A%CQGB.png
梦石
0
星屑
1333
在线时间
471 小时
注册时间
2012-4-8
回帖
314
发表于 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 正在路上
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部