Updated console message code to Luka's latest version

This commit is contained in:
Maruno17
2021-11-21 17:36:25 +00:00
parent b445f26a88
commit ea9cacd6b9
9 changed files with 173 additions and 151 deletions

View File

@@ -677,7 +677,7 @@ def pbDebugFixInvalidTiles
t = Time.now.to_i
Graphics.update
total_maps = mapData.mapinfos.keys.length
ConsoleRGB.echo_h1 _INTL("Checking {1} maps for invalid tiles", total_maps)
Console.echo_h1 _INTL("Checking {1} maps for invalid tiles", total_maps)
for id in mapData.mapinfos.keys.sort
if Time.now.to_i - t >= 5
Graphics.update
@@ -710,18 +710,18 @@ def pbDebugFixInvalidTiles
end
next if map_errors == 0
# Map was changed; save it
ConsoleRGB.echoln_li _INTL("{1} error tile(s) found on map {2}: {3}.", map_errors, id, mapData.mapinfos[id].name)
Console.echoln_li _INTL("{1} error tile(s) found on map {2}: {3}.", map_errors, id, mapData.mapinfos[id].name)
total_errors += map_errors
num_error_maps += 1
mapData.saveMap(id)
end
if num_error_maps == 0
ConsoleRGB.echo_h2(_INTL("Done. No errors found."), text: :green)
Console.echo_h2(_INTL("Done. No errors found."), text: :green)
pbMessage(_INTL("No invalid tiles were found."))
else
echoln ""
ConsoleRGB.echo_h2(_INTL("Done. {1} errors found and fixed.", total_errors), text: :green)
ConsoleRGB.echo_warn _INTL("RMXP data was altered. Close RMXP now to ensure changes are applied.")
Console.echo_h2(_INTL("Done. {1} errors found and fixed.", total_errors), text: :green)
Console.echo_warn _INTL("RMXP data was altered. Close RMXP now to ensure changes are applied.")
echoln ""
pbMessage(_INTL("{1} error(s) were found across {2} map(s) and fixed.", total_errors, num_error_maps))
pbMessage(_INTL("Close RPG Maker XP to ensure the changes are applied properly."))