mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
i hate multithreading.
This commit is contained in:
parent
a2c1bbcb44
commit
5d2e27a8e0
1 changed files with 12 additions and 7 deletions
|
|
@ -36,15 +36,20 @@ module EdText
|
|||
# yeah.
|
||||
text = Language.tr(text.to_s.gsub(/\s*\n\s*/, " ").strip)
|
||||
.to_s.gsub(/\s*\\n\s*/, "").strip
|
||||
thread = Thread.new do
|
||||
result = Oneshot.msgbox(type, text
|
||||
#thread = Thread.new do
|
||||
# result = Oneshot.msgbox(type, text
|
||||
# .gsub("\\p", $game_oneshot.player_name) +
|
||||
# " " * 10)
|
||||
# # HACK: Fuck
|
||||
#end
|
||||
|
||||
# it didn't work cause second thread sooooooooo.. maybe that fix isn't occurate, but! it works at least.
|
||||
result = Oneshot.msgbox(type, text
|
||||
.gsub("\\p", $game_oneshot.player_name) +
|
||||
" " * 10)
|
||||
# HACK: Fuck
|
||||
end
|
||||
while thread.alive?
|
||||
Graphics.update
|
||||
end
|
||||
#while thread.alive?
|
||||
# Graphics.update
|
||||
#end
|
||||
result
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue