mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 14:56:17 +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.
|
# yeah.
|
||||||
text = Language.tr(text.to_s.gsub(/\s*\n\s*/, " ").strip)
|
text = Language.tr(text.to_s.gsub(/\s*\n\s*/, " ").strip)
|
||||||
.to_s.gsub(/\s*\\n\s*/, "").strip
|
.to_s.gsub(/\s*\\n\s*/, "").strip
|
||||||
thread = Thread.new do
|
#thread = Thread.new do
|
||||||
result = Oneshot.msgbox(type, text
|
# 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) +
|
.gsub("\\p", $game_oneshot.player_name) +
|
||||||
" " * 10)
|
" " * 10)
|
||||||
# HACK: Fuck
|
#while thread.alive?
|
||||||
end
|
# Graphics.update
|
||||||
while thread.alive?
|
#end
|
||||||
Graphics.update
|
|
||||||
end
|
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue