Removed redundant "\r" from various messages, removed usages of BitmapWrapper, fixed Lure Ball error in battles started in the Debug menu, improved Terrain Tag editor, fixed some Compiler errors, enabled vsync, fixed event graphics frozen to the screen when using $game_player.moveto directly.

This commit is contained in:
Maruno17
2023-05-04 21:28:00 +01:00
parent 5f20121e59
commit 48fb8dae73
44 changed files with 362 additions and 398 deletions

View File

@@ -41,7 +41,7 @@ module Kernel
def echoln(string)
echo string
echo "\r\n"
echo "\n"
end
end

View File

@@ -10,10 +10,10 @@ module Deprecation
def warn_method(method_name, removal_version = nil, alternative = nil)
text = _INTL('Usage of deprecated method "{1}" or its alias.', method_name)
unless removal_version.nil?
text += "\r\n" + _INTL("The method is slated to be removed in Essentials {1}.", removal_version)
text += "\n" + _INTL("The method is slated to be removed in Essentials {1}.", removal_version)
end
unless alternative.nil?
text += "\r\n" + _INTL("Use \"{1}\" instead.", alternative)
text += "\n" + _INTL("Use \"{1}\" instead.", alternative)
end
Console.echo_warn text
end

View File

@@ -25,7 +25,7 @@ module Mouse
# Returns the position of the mouse relative to the game window.
def getMousePos(catch_anywhere = false)
return nil unless System.mouse_in_window || catch_anywhere
return nil unless Input.mouse_in_window || catch_anywhere
return Input.mouse_x, Input.mouse_y
end
end

View File

@@ -413,7 +413,7 @@ module PluginManager
Compiler.pbCompilerEachPreppedLine(filename) do |line, line_no|
# split line up into property name and values
if !line[/^\s*(\w+)\s*=\s*(.*)$/]
raise _INTL("Bad line syntax (expected syntax like XXX=YYY)\r\n{1}", FileLineData.linereport)
raise _INTL("Bad line syntax (expected syntax like XXX=YYY)\n{1}", FileLineData.linereport)
end
property = $~[1].upcase
data = $~[2].split(",")