mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 23:06:18 +00:00
An attempt to fix the issues caused by asian languages not having spaces
This commit is contained in:
parent
785ee492cc
commit
177de14726
1 changed files with 6 additions and 1 deletions
|
|
@ -101,7 +101,12 @@ class Window_Message < Window_Selectable
|
||||||
text.gsub!(/\\v\[([0-9]+)\]/) do
|
text.gsub!(/\\v\[([0-9]+)\]/) do
|
||||||
$game_variables[$1.to_i]
|
$game_variables[$1.to_i]
|
||||||
end
|
end
|
||||||
text.gsub!("\\p", $game_oneshot.player_name)
|
#add a space to the beginning of the player name to better deal with longer names in asian languages
|
||||||
|
if (Language::FONT_WESTERN == Font.default_name)
|
||||||
|
text.gsub!("\\p", $game_oneshot.player_name)
|
||||||
|
else
|
||||||
|
text.gsub!("\\p", " " + $game_oneshot.player_name)
|
||||||
|
end
|
||||||
text.gsub!("\\n", "\n")
|
text.gsub!("\\n", "\n")
|
||||||
# Handle text-rendering escape sequences
|
# Handle text-rendering escape sequences
|
||||||
text.gsub!(/\\c\[([0-9]+)\]/, "\0[\\1]")
|
text.gsub!(/\\c\[([0-9]+)\]/, "\0[\\1]")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue