- 累计送礼:
- 0 个
- 累计收礼:
- 1 个
TA的每日心情 | 开心 2026-7-12 04:10 |
|---|
签到天数: 209 天 连续签到: 2 天 [LV.7]常住居民III

管理员
  
- VIP
- 7
- 卡币
- 29957
- OK点
- 16
- 推广点
- 0
- 同能卷
- 50
- 积分
- 38826


|
Window skin fixes. ver 1.0
by me, MechPen
This plug-in is intended to fix rendering issues with window skins, especally with thin, opaque, or retro styled windows.
It only fixes one minor bug at the moment but might be expanded in the future. If you have any concerns about how windows render, shout 'em out!
Feature
- Correct the background blurring on the right side.
Screenshots
Spoiler: A demonstration of fixes[/quote]
How to Use
Place the plugin in the 'plugins' folder as usual.
Script
Spoiler: Window_Skin_Fixes.js[quote] Code: - /*:
- * @plugindesc fixes weird window back stretching..
- * @author MechPen
- * @help
- *
- * Fix Window Back Stretch
- * Version 1.00
- * MechPen
- *
- * This should fix the issue where window backs don't exactly meet the frame.
- *
- * overrides Window method(s).
- */
- (function() {
-
- Window.prototype._refreshBack = function() {
- var m = this._margin;
- var w = this._width - m * 2;
- var h = this._height - m * 2;
- var bitmap = new Bitmap(w, h);
- this._windowBackSprite.bitmap = bitmap;
- this._windowBackSprite.setFrame(0, 0, w, h);
- this._windowBackSprite.move(m, m);
- if (w > 0 && h > 0 && this._windowskin) {
- var p = 96;
- //center
- bitmap.blt(this._windowskin, 0, 0, p-1, p-1, 0, 0, w, h);
- //corners
- bitmap.blt(this._windowskin, 1, 0, 1, p, 0, 0, 1, h);
- bitmap.blt(this._windowskin, p-1, 0, 1, p, w-1, 0, 1, h);
- bitmap.blt(this._windowskin, 0, 1, p, 1, 0, 0, w, 1);
- bitmap.blt(this._windowskin, 0, p-1, p, 1, 0, h-1, w, 1);
- for (var y = 0; y < h; y += p) {
- for (var x = 0; x < w; x += p) {
- bitmap.blt(this._windowskin, 0, p, p, p, x, y, p, p);
- }
- }
- var tone = this._colorTone;
- bitmap.adjustTone(tone[0], tone[1], tone[2]);
- }
- };
- })();
复制代码
Terms of Use
This work is licensed under the MIT license.
本贴来自国际rpgmaker官方论坛作者:MechPen处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/window-skin-fixes.133628/ |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|