注册会员 登录
Project1 返回首页

失去记忆总比什么都没有好 ... https://rpg.blue/?310500 [收藏] [复制] [分享] [RSS] 总有一天,你一定会完全记得我的吧?夫拉特蕾?

日志

F03 - 战斗显示脸图

热度 2已有 1990 次阅读2012-10-21 14:33 |个人分类:脚本

#==============================================================================
# F03 - 战斗显示脸图 - By芙蕾娅
#------------------------------------------------------------------------------
#  ★ - 新增  ☆ - 修改  ■ - 删除 ● - 无变更
#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
#  战斗画面中,显示“队伍成员状态”的窗口。
#==============================================================================
class Window_BattleStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # ☆ 绘制角色战斗用肖像图
  #     enabled : 有效的标志。false 的时候使用半透明效果绘制
  #--------------------------------------------------------------------------
  def draw_face(face_name, face_index, x, y, enabled = true)
    bitmap = Cache.face(face_name)
    rect = Rect.new(face_index % 4 * 96, face_index / 4 * 96 + 32, 96, 22)
    contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha)
    bitmap.dispose
  end
  #--------------------------------------------------------------------------
  # ☆ 绘制基本区域
  #--------------------------------------------------------------------------
  def draw_basic_area(rect, actor)
    draw_actor_face(actor, rect.x, rect.y + 1)
    contents.font.size = 16
    draw_actor_name(actor, rect.x, rect.y + 4, 100)
    contents.font.size = Font.default_size
    draw_actor_icons(actor, rect.x + 104, rect.y, rect.width - 104)
  end
end

鸡蛋
1

鲜花

刚表态过的朋友 (1 人)

评论 (0 个评论)

facelist doodle 涂鸦笔

您需要登录后才可以评论 登录 | 注册会员

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-26 22:54

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

返回顶部