okey. i wanted to change refresh for scene save file so that it shows the actors faces and the party leader's name and his level
the faces work fine but not the party leader's name and level
so what are the needed changes so that it works fine ?
the faces work fine but not the party leader's name and level
Code:
def refresh
self.contents.clear
# ?????????
self.contents.font.color = normal_color
name = ""
self.contents.draw_text_outline(4, 0, 600, 32, name)
@name_width = contents.text_size(name).width
# ??????????????
if @file_exist
# ?????????
for i in 0...@characters.size
bitmap = RPG::Cache.gameover(@characters[i][0])
cw = bitmap.rect.width
ch = bitmap.rect.height
src_rect = Rect.new(0, 0, cw, ch)
x = 168+ i *89
self.contents.blt(x, 48, bitmap, src_rect)
actor = $game_party.actors[0]
self.contents.font.color = outline_color
self.contents.draw_text(40 - 1, 40- 1, 120, 32,actor.name)
self.contents.draw_text( 40+ 1, 40- 1, 120, 32,actor.name)
self.contents.draw_text( 40+ 1, 40 + 1, 120, 32,actor.name)
self.contents.draw_text(40 - 1, 40 + 1, 120, 32, actor.name)
self.contents.font.color = normal_color
self.contents.draw_text(40, 40, 120, 32, actor.name)
self.contents.font.color = outline_color
self.contents.draw_text(54- 1,0 + 1+80, 24, 32, actor.level.to_s, 2)
self.contents.draw_text(54-1 , 0 - 1+80, 24, 32, actor.level.to_s, 2)
self.contents.draw_text(54+ 1,0 + 1+80, 24, 32, actor.level.to_s, 2)
self.contents.draw_text(54+ 1, 0 - 1+80, 24, 32, actor.level.to_s, 2)
self.contents.font.color = normal_color
self.contents.draw_text(54, 80, 24, 32, actor.level.to_s, 2)
end
# ????????
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60
time_string = sprintf("%02d:%02d", hour, min)
self.contents.font.color = normal_color
self.contents.draw_text_outline(80,105, 600, 32, time_string,102)
# ??????????
self.contents.font.color = normal_color
time_string = @time_stamp.strftime("")
self.contents.draw_text_outline(4, 40, 100, 32, time_string, 2)
end
end
so what are the needed changes so that it works fine ?