| 
UID3帖子924主题28精华5积分5325历练10 声望119 人气141 经验2790 金钱6124 注册时间2009-7-25最后登录2017-9-6在线时间376 小时阅读权限200
 
 
 TA的每日心情|  | 衰 2010-9-25 00:07
 | 
|---|
 签到天数: 3 天 [LV.2]偶尔看看I 精华5积分5325历练10 声望119 人气141 
 
    | 
| 其实很简单~据我的了解,6R过去只有一个截图调用的脚本 找到脚本内class Window_File这个东东具体内容在下面
 然后一直到这个class的end 修改成我的样子就好了,不过坐标自己对齐,这里只表现第一位角色信息
 
 class Window_File < Window_Base
 attr_accessor :index
 def initialize(index = 0)
 super(160,0,480,480)
 self.contents = Bitmap.new(width - 32, height - 32)
 @index = index
 @sp_ch = []
 @sp_ch[0] = Sprite.new
 refresh
 end
 def refresh
 self.contents.clear
 for i in @sp_ch
 i.visible = false
 end
 if FileTest.exist?(BBS_66RPG_DIR+"Save#{@index}.rxdata")
 if FileTest.exist?(BBS_66RPG_DIR+"Save#{@index}.jpg")
 else
 self.contents.draw_text(32,64,400,32,"无存档")
 end
 file = File.open(BBS_66RPG_DIR+"Save#{@index}.rxdata", "r")
 @time_stamp = file.mtime
 @characters = Marshal.load(file)
 @frame_count = Marshal.load(file)
 @game_system = Marshal.load(file)
 @game_switches = Marshal.load(file)
 @game_variables = Marshal.load(file)
 @total_sec = @frame_count / Graphics.frame_rate
 file.close
 for i in 0...@characters.size
 @sp_ch = Sprite.new
 @sp_ch.visible = true
 @sp_ch.bitmap = RPG::Cache.battler(@characters[3], @characters[4])
 @sp_ch.x = 180 + i*100
 @sp_ch.y = 460 - @sp_ch.bitmap.height
 @sp_ch.z = 101
 end
 # 描绘游戏时间
 hour = @total_sec / 60 / 60
 min = @total_sec / 60 % 60
 sec = @total_sec % 60
 time_string = sprintf("%02d:%02d:%02d", hour, min, sec)
 self.contents.font.color = normal_color
 self.contents.draw_text(4, 390, 420, 32, time_string, 2)
 # 描绘时间标记
 self.contents.font.color = normal_color
 draw_actor_class($game_actors[1], 400, 32)
 draw_actor_level($game_actors[1], 300, 32)
 draw_actor_state($game_actors[1], 480, 32)
 draw_actor_hp($game_actors[1], 300, 64, 150)
 draw_actor_sp($game_actors[1], 300, 96, 150)
 time_string = @time_stamp.strftime("%Y/%m/%d %H:%M")
 self.contents.draw_text(4, 420, 420, 32, time_string, 2)
 else
 self.contents.draw_text(32,64,400,32,"这个存档是空的")
 end
 end
 def dispose
 super
 for i in @sp_ch
 i.dispose
 end
 end
 end
 | 
 |