increasing delay for graphics update to catch up

This commit is contained in:
mshirt 2016-12-08 02:19:46 -06:00
parent 2c5cc374cd
commit ee0c895a1e

View file

@ -3,38 +3,38 @@ module EdText
Oneshot.msgbox Oneshot::Msg::YESNO, tr("Do you understand what this means?") Oneshot.msgbox Oneshot::Msg::YESNO, tr("Do you understand what this means?")
end end
def self.info(text) def self.info(text)
timestart = Time.now
if(Graphics.fullscreen == true) if(Graphics.fullscreen == true)
Graphics.fullscreen = false Graphics.fullscreen = false
$console = false $console = false
end end
sleep 0.1 sleep 0.2
Graphics.update Graphics.update
timestart = Time.now
text.gsub!("\\p", $game_oneshot.player_name) text.gsub!("\\p", $game_oneshot.player_name)
Oneshot.msgbox Oneshot::Msg::INFO, tr(text) Oneshot.msgbox Oneshot::Msg::INFO, tr(text)
$game_temp.prompt_wait = ((Time.now - timestart) * 60).round $game_temp.prompt_wait = ((Time.now - timestart) * 60).round
end end
def self.yesno(text) def self.yesno(text)
timestart = Time.now
if(Graphics.fullscreen == true) if(Graphics.fullscreen == true)
Graphics.fullscreen = false Graphics.fullscreen = false
$console = false $console = false
end end
sleep 0.1 sleep 0.2
Graphics.update Graphics.update
timestart = Time.now
text.gsub!("\\p", $game_oneshot.player_name) text.gsub!("\\p", $game_oneshot.player_name)
result = Oneshot.msgbox Oneshot::Msg::YESNO, tr(text) result = Oneshot.msgbox Oneshot::Msg::YESNO, tr(text)
$game_temp.prompt_wait = ((Time.now - timestart) * 60).round $game_temp.prompt_wait = ((Time.now - timestart) * 60).round
return result return result
end end
def self.err(text) def self.err(text)
timestart = Time.now
if(Graphics.fullscreen == true) if(Graphics.fullscreen == true)
Graphics.fullscreen = false Graphics.fullscreen = false
$console = false $console = false
end end
sleep 0.1 sleep 0.2
Graphics.update Graphics.update
timestart = Time.now
text.gsub!("\\p", $game_oneshot.player_name) text.gsub!("\\p", $game_oneshot.player_name)
result = Oneshot.msgbox Oneshot::Msg::ERR, tr(text) result = Oneshot.msgbox Oneshot::Msg::ERR, tr(text)
$game_temp.prompt_wait = ((Time.now - timestart) * 60).round $game_temp.prompt_wait = ((Time.now - timestart) * 60).round