设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  

Window/Text Padding-1.png

 

Window/Text Padding:
APP_WindowPadding v1.0
by: AppointedPie


 

Introduction
A small script that allows you to enter custom values for the Global settings for Line Height, and Window Padding. These functions already exist in YEP_CoreEngine, so if you are using that, it is unnecessary. If you prefer this lightweight version of just these settings, then this is for you.

 

Features
- Adjust the system setting for Line Height. Decreases the spacing between lines. You should adjust this to tighten up the look of your windows if you choose a font smaller than the default.
- Adjust the system setting for Window Padding. This is the distance from your text to the edge of the window. Adjust this if you want more or less space between window borders and text inside.

 

Screenshots

Here's a screenshot of how the spacing is effected when you use smaller fonts.

 





 

and here's what it can look like after using the script...

 





 

here's what it looks like.

 





 

Code (copy and paste into the JavaScript editor of your choice)

 

Pastebin

or copy and paste from below.

//=============================================================================// AppointedPie - Window Padding// APP_WindowPadding.js//============================================================================= var Imported = Imported || {};Imported.APP_WindowPadding = true; var AppointedPie = AppointedPie || {};AppointedPie.WindowPadding = AppointedPie.WindowPadding || {}; //=============================================================================/*: * @plugindesc v1.0 Additional parameter changes to the core systems of RPG Maker MV * @author AppointedPie * * @param ----Window---- * @default * * @param Line Height * @desc Adjusts the Line Height system default. * Default: 36 * @default 30 * * @param Window Padding * @desc Adjusts the window padding system default. * Default: 18 * @default 10 * * @param Text Padding * @desc Adjusts the text padding system default. * Default: 6 * @default 2 * *///=============================================================================// Parameter Variables//============================================================================= AppointedPie.Parameters = PluginManager.parameters('APP_WindowPadding');AppointedPie.Param = AppointedPie.Param || {}; AppointedPie.Param.LineHeight = Number(AppointedPie.Parameters['Line Height']);AppointedPie.Param.WinPad = Number(AppointedPie.Parameters['Window Padding']);AppointedPie.Param.TextPad = Number(AppointedPie.Parameters['Text Padding']); //-----------------------------------------------------------------------------Window_Base.prototype.lineHeight = function() {    return AppointedPie.Param.LineHeight;}; Window_Base.prototype.standardPadding = function() {    return AppointedPie.Param.WinPad}; Window_Base.prototype.textPadding = function() {    return AppointedPie.Param.TextPad}; Window_Base.prototype.updatePadding = function() {    this.padding = this.standardPadding();};//=============================================================================// End of File//=============================================================================  

 

 

Credit
- AppointedPie

 

Author's Notes
This script may be used freely for both personal and commercial purposes. Thanks and have fun!!

​


本贴来自国际rpgmaker官方论坛作者:Pie4aPie处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/window-text-padding.47387/
Window/Text Padding-1.png
         同一主题附件:
    Window/Text Padding-1.png
    Window/Text Padding-2.png
    Window/Text Padding-3.png
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

社区每日抽奖来袭,快来试试你是欧皇还是非酋~

立即查看

Loading...

QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

GMT+8, 2026-10-3 11:35 , Processed in 0.110509 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部