mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 14:56:17 +00:00
Making game defullscreen during prompts
This commit is contained in:
parent
c51dfe842a
commit
2c5cc374cd
1 changed files with 18 additions and 0 deletions
|
|
@ -3,12 +3,24 @@ 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)
|
||||||
|
if(Graphics.fullscreen == true)
|
||||||
|
Graphics.fullscreen = false
|
||||||
|
$console = false
|
||||||
|
end
|
||||||
|
sleep 0.1
|
||||||
|
Graphics.update
|
||||||
timestart = Time.now
|
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)
|
||||||
|
if(Graphics.fullscreen == true)
|
||||||
|
Graphics.fullscreen = false
|
||||||
|
$console = false
|
||||||
|
end
|
||||||
|
sleep 0.1
|
||||||
|
Graphics.update
|
||||||
timestart = Time.now
|
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)
|
||||||
|
|
@ -16,6 +28,12 @@ module EdText
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
def self.err(text)
|
def self.err(text)
|
||||||
|
if(Graphics.fullscreen == true)
|
||||||
|
Graphics.fullscreen = false
|
||||||
|
$console = false
|
||||||
|
end
|
||||||
|
sleep 0.1
|
||||||
|
Graphics.update
|
||||||
timestart = Time.now
|
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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue