赞 | 5 |
VIP | 0 |
好人卡 | 0 |
积分 | 9 |
经验 | 2613 |
最后登录 | 2024-11-6 |
在线时间 | 114 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 945
- 在线时间
- 114 小时
- 注册时间
- 2017-8-3
- 帖子
- 63
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
- /*:
- * @plugindesc Namepop Ver 1.03
- * @author Morpho(dongdongDJH)
- * @修改 神秘中国人
- * @help
- * 在地图事件注释栏内填入 NAMEPOP|颜色;
- * @param color
- * @desc 地图上主角的颜色
- * @default #FFFFFF
- */
- (function() {
- var parameters = PluginManager.parameters('Namepop');
-
- _Sprite_Character_prototype_initialize = Sprite_Character.prototype.initialize;
- Sprite_Character.prototype.initialize = function(character) {
- _Sprite_Character_prototype_initialize.call(this, character);
- this._tempCharacter = character;
- if (character instanceof Game_Event) {
- var notetext = character.event().note.split("c:");
- var $color = notetext[1] || '#ffffff';
- this.createNamepopSet(false,$color);
- }
- if (character instanceof Game_Player) {
- this.createNamepopSet(true,parameters['color'] || '#ffffff');
- }
- };
- Sprite_Character.prototype.createNamepopSet = function($if,$color) {
- var h = 12;
- this._namepopSprite = new Sprite();
- this._namepopSprite.bitmap = new Bitmap(h * 10, h);
- this._namepopSprite.bitmap.fontSize = h;
- this._namepopSprite.bitmap.textColor = $color ;
- this._namepopSprite.bitmap.drawText($if?$gameParty.members()[0]._name:this._tempCharacter.event().name, 0, 0, h * 10, h, 'center');
- this._namepopSprite.anchor.x = 0.5;
- this._namepopSprite.anchor.y = 1;
- this._namepopSprite.y = this.y + 12;
- this.addChild(this._namepopSprite);
- };
- }());
复制代码
|
|