- UID
- 3
- 帖子
- 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 |
|