From d76c700de0bed2948cca23d859494d39bb1730ed Mon Sep 17 00:00:00 2001 From: mshirt Date: Tue, 13 Dec 2016 04:45:25 -0600 Subject: [PATCH] Fixing "hack" in ed-text Apparently there was already a function for reseting the frame wait, used commonly after loading files. So we don't have to use the hacky method of making the game wait for X number of frames anymore. --- scripts/EdText.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/EdText.rb b/scripts/EdText.rb index 4dc9faa..e6ebc81 100644 --- a/scripts/EdText.rb +++ b/scripts/EdText.rb @@ -3,7 +3,6 @@ module EdText Oneshot.msgbox Oneshot::Msg::YESNO, tr("Do you understand what this means?") end def self.info(text) - timestart = Time.now if(Graphics.fullscreen == true) Graphics.fullscreen = false $console = false @@ -12,10 +11,9 @@ module EdText Graphics.update text.gsub!("\\p", $game_oneshot.player_name) Oneshot.msgbox Oneshot::Msg::INFO, tr(text) - $game_temp.prompt_wait = ((Time.now - timestart) * 60).round + Graphics.frame_reset end def self.yesno(text) - timestart = Time.now if(Graphics.fullscreen == true) Graphics.fullscreen = false $console = false @@ -24,11 +22,10 @@ module EdText Graphics.update text.gsub!("\\p", $game_oneshot.player_name) result = Oneshot.msgbox Oneshot::Msg::YESNO, tr(text) - $game_temp.prompt_wait = ((Time.now - timestart) * 60).round + Graphics.frame_reset return result end def self.err(text) - timestart = Time.now if(Graphics.fullscreen == true) Graphics.fullscreen = false $console = false @@ -37,7 +34,7 @@ module EdText Graphics.update text.gsub!("\\p", $game_oneshot.player_name) result = Oneshot.msgbox Oneshot::Msg::ERR, tr(text) - $game_temp.prompt_wait = ((Time.now - timestart) * 60).round + Graphics.frame_reset return result end end