i hate multithreading.

This commit is contained in:
meowtech 2026-05-24 14:52:22 +00:00
parent a2c1bbcb44
commit 5d2e27a8e0

View file

@ -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