# ▽△▽ XRXSv27. MeLT_File.DF3. パーティフェイス ▽△▽ # # publish 2010/ 3/22 # update - /25 # #============================================================================== # データファイルウィンドウ #============================================================================== class Window_DataFiles < Window_Selectable WLH = 80 def draw_item_to(bitmap, y, index) gamedata = @data[index] rect = item_rect(index) w = rect.width h = rect.height bitmap.font.size = 16 bitmap.draw_text( 2, y, 24, 24, "No.") bitmap.font.size = 20 bitmap.draw_text(26, y, 32, 24, (index + 1).to_s, 2) bitmap.font.size = 16 bitmap.draw_text(58, y, 10, 24, ".") if gamedata == nil bitmap.draw_text(80, y, 90, h, "Loagind...") elsif gamedata.file_exist x = 84 n = 0 for actor in gamedata.game_party.members draw_actor_face_x(bitmap, actor, x + 2 + n * 64, y+1) n += 1 break if n >= 4 end label = gamedata.game_system.savelabel.to_s if label.size >= 1 label_bitmap = Cache.savelabel bitmap.blt(4, y+56, label_bitmap, label_bitmap.rect) bitmap.font.color = XRXSV27::LabalFontColor bitmap.font.shadow = false bitmap.draw_text(12, y+58, 126, 20, label) bitmap.font.color = normal_color bitmap.font.shadow = true end draw_rect = Rect.new(w - 161, y + 56, 160, 22) skin_rect = Rect.new(0,16,64,32) bitmap.stretch_blt(draw_rect, self.windowskin, skin_rect, 96) skin_rect = Rect.new(0,80,64,32) bitmap.stretch_blt(draw_rect, self.windowskin, skin_rect, 128) draw_rect.x += 8 bitmap.draw_text(draw_rect, gamedata.game_map.name) draw_playtime(bitmap, index, 4, y, 48) else bitmap.draw_text(80, y, 42, h, "Empty") end end #-------------------------------------------------------------------------- # 顔グラフィックの描画 #-------------------------------------------------------------------------- def draw_actor_face_x(bitmap, actor, x, y) x_size = 62 y_size = 78 face = Cache.face(actor.face_name) rect = Rect.new(0, 0, 0, 0) rect.x = actor.face_index % 4 * 96 + (96 - x_size) / 2 rect.y = actor.face_index / 4 * 96 + (96 - y_size) / 2 rect.width = x_size rect.height = y_size bitmap.blt(x, y, face, rect) face.dispose end end #============================================================================== # データインフォメーションウィンドウ #============================================================================== class Window_DataInfomation < Window_Base def set(gamedata) end def open end end