#============================================================================== # 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 | 星屑 +250 | 梦石 +1 | 收起 理由 |
---|---|---|---|
RaidenInfinity | + 250 | + 1 | 楼主认可的解答 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-16 20:40
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.