| 赞 | 7  | 
 
| VIP | 0 | 
 
| 好人卡 | 3 | 
 
| 积分 | 6 | 
 
| 经验 | 8536 | 
 
| 最后登录 | 2022-8-26 | 
 
| 在线时间 | 164 小时 | 
 
 
 
 
 
Lv2.观梦者 
	- 梦石
 - 0 
 
        - 星屑
 - 637 
 
        - 在线时间
 - 164 小时
 
        - 注册时间
 - 2012-4-18
 
        - 帖子
 - 264
 
 
 
 | 
	
YEP_Itmecore。里面有一段关于在道具界面显示道具详情时,绘制一个超大的图标的代码,可惜我也没有解析成功,贴给你看看,希望能够帮助你。- Window_ItemStatus.prototype.drawLargeIcon = function() {
 
 -     var iconIndex = this._item.iconIndex;
 
 -     var bitmap = ImageManager.loadSystem('IconSet');
 
 -     var pw = Window_Base._iconWidth;
 
 -     var ph = Window_Base._iconHeight;
 
 -     var sx = iconIndex % 16 * pw;
 
 -     var sy = Math.floor(iconIndex / 16) * ph;
 
 -     var dw = Yanfly.Param.ItemIconSize;
 
 -     var dh = Yanfly.Param.ItemIconSize;
 
 -     var dx = (Window_Base._faceWidth - dw) / 2;
 
 -     var dy = (Window_Base._faceHeight - dh) / 2;
 
 -     this.contents._context.imageSmoothingEnabled = false;
 
 -     this.contents.blt(bitmap, sx, sy, pw, ph, dx, dy, dw, dh);
 
 -     this.contents._context.imageSmoothingEnabled = true;
 
 - };
 
 
  复制代码 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |