查看: 5070|回复: 10

[搬运汉化] 閃爍的(鼠標)光標

[复制链接]
梦石
0
星屑
16276
在线时间
4015 小时
注册时间
2015-9-14
回帖
1322

开拓者

发表于 2018-9-10 17:08:58 | 显示全部楼层 |阅读模式

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

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

×
可以調整大小,顏色,閃爍.地圖上小巧(鼠標)光標. SetFlashAnimation.zip (1.3 KB, 下载次数: 136)
作者:https://forums.rpgmakerweb.com/index.php?threads/set-flashing-animation-mouse-press-plugin.85334/
SetFlashAnimation.js/*:
* @plugindesc Sets, changes or removes the flashing press indicator.  v1.0
* @author Lloyd (Red Iron Labs)
*
* @help This plugin does not provide plugin commands.
*
* @param color
* @desc CSS color format of the bitmap.  RGB & RGBA allowed (i.e. rgba(0, 255, 0, 0.3)).
* @default white
*
* @param settype
* @desc none, circle, square, box, url, text, circleoutline
* @default none
*
* @param scale
* @desc scale from 0 to 1
* @default 1
*
* @param data
* @desc the text string (i.e. X) OR reference URL to an image to use (i.e. img/system/Shadow1.png)
* @default img/system/Shadow1.png
*
* @param animate
* @desc Bouncing animation
* @default on
*
* @param bouncespeed
* @desc Speed of bounce
* @default 20
*
*/

(function () {

        function toNumber(str, def) {
                return isNaN(str) ? def :  + (str || def);
        }

        var parameters = PluginManager.parameters('SetFlashAnimation');
        var color = parameters['color'].toLowerCase();
        var settype = parameters['settype'].toLowerCase();
        var scale = toNumber(parameters['scale'], 1);
        var data = parameters['data'];
        var animate = parameters['animate'].toLowerCase() == "on";
        var bouncespeed = toNumber(parameters['bouncespeed'], 20);

        Sprite_Destination.prototype.updateAnimation = function () {
                if (animate) {
                        this._frameCount++;
                        this._frameCount %= bouncespeed;
                        this.opacity = (bouncespeed - this._frameCount) * 6;
                        this.scale.x = 1 + this._frameCount / bouncespeed;
                        this.scale.y = this.scale.x;
                }
        };

        Spriteset_Map.prototype.createDestination = function () {
                if (settype != 'none') {
                        this._destinationSprite = new Sprite_Destination();
                        this._destinationSprite.z = 9;
                        this._tilemap.addChild(this._destinationSprite);
                }
        };

        Sprite_Destination.prototype.createBitmap = function () {

                var tileWidth = $gameMap.tileWidth();
                var tileHeight = $gameMap.tileHeight();
                this.bitmap = new Bitmap(tileWidth, tileHeight);

                if (settype == 'square' || settype == 'box') {
                        this.bitmap.fillRect(
                                (tileWidth - (tileWidth * scale)) / 2,
                                (tileHeight - (tileHeight * scale)) / 2,
                                tileWidth * scale,
                                tileHeight * scale,
                                color);
                        if (settype == 'box') {
                                this.bitmap.clearRect(
                                        ((tileWidth - (tileWidth * scale)) / 2) + 4,
                                        ((tileHeight - (tileHeight * scale)) / 2) + 4,
                                        (tileWidth * scale) - 8,
                                        (tileHeight * scale) - 8);
                        }
                }

                if (settype == 'circle' || settype == 'circleoutline') {
                        var minSize = tileWidth;
                        if (tileHeight < tileWidth)
                                minSize = tileHeight;
                        this.bitmap.drawCircle(tileWidth / 2, tileHeight / 2, (minSize / 2) * scale, color);
                        if (settype == 'circleoutline') {
                                this.bitmap.drawCircle(tileWidth / 2, tileHeight / 2, ((minSize / 2) * scale) - 4, 'clear');
                        }
                }

                if (settype == 'text') {
                        this.bitmap.outlineColor = color;
                        this.bitmap.drawText(
                                data,
                                (tileWidth - (tileWidth * scale)) / 2,
                                (tileHeight - (tileHeight * scale)) / 2,
                                tileWidth * scale,
                                tileHeight * scale,
                                'center');
                        this.bitmap.blur();
                }

                if (settype == 'url') {
                        this.bitmap = ImageManager.requestNormalBitmap(data, 0); // Bitmap.load(data);
                        this.bitmap.resize(tileWidth, tileHeight);
                };

                this.anchor.x = 0.5;
                this.anchor.y = 0.5;
                this.blendMode = Graphics.BLEND_ADD;
        };

})();


圖片有錯.這張才是.
閃爍的(鼠標)1.gif

评分

参与人数 1赞 +1 收起 理由
白嫩白嫩的 + 1 塞糖

查看全部评分

https://rpg.blue/data/attachment/album/202003/28/021323lltgrsvfytfwuya5.gif

老黄鸡

梦石
4
星屑
45909
在线时间
7963 小时
注册时间
2009-7-6
回帖
13339

MZ评测员RM创作大赛01组委会开拓者贵宾

发表于 2018-9-10 20:41:06 | 显示全部楼层
是把默认的闪光块换成了动画吗?

点评

謝謝  发表于 2018-9-11 22:49
妥了  发表于 2018-9-11 19:15
無法移除錯誤圖像?可否代為移除(第二張圖.  发表于 2018-9-10 21:53
不是圖像,是閃光.  发表于 2018-9-10 21:46
RGDirect - DirectX驱动的RGSS,点我了解.
(排满,暂停)RM全系列成套系统定制请联系QQ1213237796
不接受对其他插件维护的委托
回复

使用道具 举报

梦石
0
星屑
3074
在线时间
685 小时
注册时间
2018-6-1
回帖
253
发表于 2018-9-10 21:59:14 | 显示全部楼层
对性能有没有影响 我不想应为效果而影响游戏帧率

点评

不會  发表于 2018-9-10 22:00
回复

使用道具 举报

猜

梦石
0
星屑
5632
在线时间
1573 小时
注册时间
2006-9-30
回帖
1923

开拓者

发表于 2018-9-11 04:10:07 | 显示全部楼层
脸蛋挺的不好看,差评
回复

使用道具 举报

梦石
0
星屑
1814
在线时间
164 小时
注册时间
2016-5-26
回帖
13
发表于 2018-9-16 07:56:36 | 显示全部楼层
十分想知道,楼主签名的那张图片是什么游戏!就是有火车站台的↖(^ω^)↗

点评

個人胡亂制作地圖.  发表于 2018-9-16 11:18
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部