| 赞 | 1  | 
 
| VIP | 392 | 
 
| 好人卡 | 225 | 
 
| 积分 | 48 | 
 
| 经验 | 177731 | 
 
| 最后登录 | 2020-12-8 | 
 
| 在线时间 | 2037 小时 | 
 
 
 
 
 
Lv3.寻梦者 虚空人形 
	- 梦石
 - 0 
 
        - 星屑
 - 4763 
 
        - 在线时间
 - 2037 小时
 
        - 注册时间
 - 2011-8-11
 
        - 帖子
 - 3398
 
 
  
 
 | 
	
像这样的脚本,原设定打开66号开关就可以显示半身像了, 
开关设定的位置很明显了吧, 
半身像请命名为:脸图文件名+_L+这个脸图在一组脸图中的序号- #==============================================================================
 
 - # ■ Window_Message
 
 - #------------------------------------------------------------------------------
 
 - #  显示文字信息的窗口。
 
 - #==============================================================================
 
  
- class Window_Message < Window_Base
 
 -   BIG_FACE_SWI = 66
 
 -   alias big_face_initialize initialize
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 初始化对象
 
 -   #     alias:新建头像用精灵
 
 -   #--------------------------------------------------------------------------
 
 -   def initialize
 
 -     big_face_initialize
 
 -     @big_face_sprite = Sprite.new
 
 -     @big_face_sprite.visible = false
 
 -   end
 
 -   alias big_face_new_line_x new_line_x
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 获取换行位置
 
 -   #     alias:开关打开时不影响换行位置
 
 -   #--------------------------------------------------------------------------
 
 -   def new_line_x
 
 -     return $game_switches[BIG_FACE_SWI] ? 0 : big_face_new_line_x
 
 -   end
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 绘制角色肖像图
 
 -   #     enabled : 有效的标志。false 的时候使用半透明效果绘制
 
 -   #     alias:开关打开时改变绘制文件并使用精灵绘制
 
 -   #--------------------------------------------------------------------------
 
 -   def draw_face(face_name, face_index, x, y, enabled = true)
 
 -     if $game_switches[BIG_FACE_SWI]
 
 -       if face_name != ""
 
 -         fn = "#{face_name}_L#{face_index}"
 
 -         b = Cache.face(fn)
 
 -       else 
 
 -         b = Bitmap.new(1,1)
 
 -       end
 
 -       @big_face_sprite.bitmap = b
 
 -       @big_face_sprite.y = self.y - b.height
 
 -       @big_face_sprite.visible = true
 
 -     else
 
 -       @big_face_sprite.visible = false
 
 -       super
 
 -     end
 
 -   end
 
 -   alias big_face_dispose_back_sprite dispose_back_sprite
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 释放背景精灵
 
 -   #     alias:在这里释放头像精灵。
 
 -   #--------------------------------------------------------------------------
 
 -   def dispose_back_sprite
 
 -     @big_face_sprite.bitmap.dispose if @big_face_sprite.bitmap
 
 -     @big_face_sprite.dispose
 
 -     big_face_dispose_back_sprite
 
 -   end
 
 -   alias big_face_update_back_sprite update_back_sprite
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 更新背景精灵
 
 -   #     alias:在这里更新头像精灵。
 
 -   #--------------------------------------------------------------------------
 
 -   def update_back_sprite
 
 -     big_face_update_back_sprite
 
 -     @big_face_sprite.update
 
 -   end
 
 -   alias big_face_close_and_wait close_and_wait
 
 -   #--------------------------------------------------------------------------
 
 -   # ● 关闭窗口并等待窗口关闭完成
 
 -   #     alias:在这里关闭精灵
 
 -   #--------------------------------------------------------------------------
 
 -   def close_and_wait
 
 -     @big_face_sprite.visible = false
 
 -     big_face_close_and_wait
 
 -   end
 
 - end
 
  复制代码 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |