05-01-2020, 03:57 AM
(This post was last modified: 05-01-2020, 09:02 PM by DerVVulfman.)
Investigation.... Realization... Recognition...
You're using Legacy's menu. Good thing I didn't delete your old project, right?
Paste THIS directly below Legacy's Menu instead:
Note the area between thick lines that you may edit.
And as Doug would say... It will kill...
You're using Legacy's menu. Good thing I didn't delete your old project, right?
Paste THIS directly below Legacy's Menu instead:
Code:
#==============================================================================
# ** Game_Map
#------------------------------------------------------------------------------
# This class handles the map. It includes scrolling and passable determining
# functions. Refer to "$game_map" for the instance of this class.
#==============================================================================
class Game_Map
#--------------------------------------------------------------------------
# * Get Map Name
#--------------------------------------------------------------------------
def map_name
@mapinfo = load_data("Data/MapInfos.rxdata") if @mapinfo == nil
return @mapinfo[@map_id].name
end
end
#==============================================================================
# ** Window_File
#------------------------------------------------------------------------------
# This window displays files on the save and load screens.
#==============================================================================
class Window_File < Window_Selectable
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
time_stamp = Time.at(0)
for i in 0...LegACy::SAVE_NUMBER
filename = "Save#{i + 1}.rxdata"
self.contents.draw_text(1, i * 32, 32, 32, (i + 1).to_s, 1)
if FileTest.exist?(filename)
#===================================================================
file = File.open(filename, "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)
# ==================================================
# -- This skips through other pieces of data until
# We get to the game map section
t = Marshal.load(file) # Self Switches
t = Marshal.load(file) # Screen
t = Marshal.load(file) # Actors
t = Marshal.load(file) # Party
t = Marshal.load(file) # Troop
# ==================================================
@game_map = Marshal.load(file)
@total_sec = @frame_count / Graphics.frame_rate
file.close
#===================================================================
=begin
size = File.size(filename)
if size.between?(1000, 999999)
size /= 1000
size_str = "#{size} KB"
elsif size > 999999
size /= 1000000
size_str = "#{size} MB"
else
size_str = size.to_s
end
time_stamp = File.open(filename, "r").mtime
date = time_stamp.strftime("%m/%d/%Y")
time = time_stamp.strftime("%H:%M")
self.contents.font.size = 18 #20
self.contents.font.bold = true
self.contents.draw_text(38, i * 32, 120, 32, date)
self.contents.draw_text(160, i * 32, 100, 32, time)
self.contents.draw_text(0, i * 32, 284, 32, size_str, 2)
=end
#===================================================================
# HERE is where you edit!!!!!
time_stamp = File.open(filename, "r").mtime
date = time_stamp.strftime("%m/%d/%Y")
name = @game_map.map_name
self.contents.draw_text (38, (i-1) * 32, 320, 32, name)
self.contents.draw_text(160, (i-1) * 32, 120, 32, date)
#===================================================================
end
end
end
end
Note the area between thick lines that you may edit.
And as Doug would say... It will kill...