Merge remote-tracking branch 'mathewv/master'
This commit is contained in:
commit
bdda60e907
|
|
@ -176,6 +176,13 @@ class Desktop_Message
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if visible
|
||||||
|
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL)
|
||||||
|
terminate_message
|
||||||
|
@fade_out = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Message is over and should be hidden or advanced to next
|
# Message is over and should be hidden or advanced to next
|
||||||
if $game_temp.message_desktop_text == nil
|
if $game_temp.message_desktop_text == nil
|
||||||
@fade_out = true if @viewport.visible
|
@fade_out = true if @viewport.visible
|
||||||
|
|
@ -189,12 +196,6 @@ class Desktop_Message
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if visible
|
|
||||||
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL)
|
|
||||||
terminate_message
|
|
||||||
@fade_out = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Variables
|
# * Variables
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,13 @@ class Doc_Message
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if visible
|
||||||
|
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL)
|
||||||
|
terminate_message
|
||||||
|
@fade_out = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Message is over and should be hidden or advanced to next
|
# Message is over and should be hidden or advanced to next
|
||||||
if $game_temp.message_doc_text == nil
|
if $game_temp.message_doc_text == nil
|
||||||
@fade_out = true if @viewport.visible
|
@fade_out = true if @viewport.visible
|
||||||
|
|
@ -204,12 +211,6 @@ class Doc_Message
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if visible
|
|
||||||
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL)
|
|
||||||
terminate_message
|
|
||||||
@fade_out = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Variables
|
# * Variables
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ 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
|
||||||
|
|
@ -12,10 +11,9 @@ module EdText
|
||||||
Graphics.update
|
Graphics.update
|
||||||
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
|
Graphics.frame_reset
|
||||||
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
|
||||||
|
|
@ -24,11 +22,10 @@ module EdText
|
||||||
Graphics.update
|
Graphics.update
|
||||||
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
|
Graphics.frame_reset
|
||||||
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
|
||||||
|
|
@ -37,7 +34,7 @@ module EdText
|
||||||
Graphics.update
|
Graphics.update
|
||||||
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
|
Graphics.frame_reset
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,13 @@ class Ed_Message
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if visible
|
||||||
|
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL)
|
||||||
|
terminate_message
|
||||||
|
@fade_out_text = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Message is over and should be hidden or advanced to next
|
# Message is over and should be hidden or advanced to next
|
||||||
if $game_temp.message_ed_text == nil
|
if $game_temp.message_ed_text == nil
|
||||||
@fade_out = true if @viewport.visible
|
@fade_out = true if @viewport.visible
|
||||||
|
|
@ -213,12 +220,6 @@ class Ed_Message
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if visible
|
|
||||||
if Input.trigger?(Input::ACTION) || Input.trigger?(Input::CANCEL)
|
|
||||||
terminate_message
|
|
||||||
@fade_out_text = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Variables
|
# * Variables
|
||||||
|
|
|
||||||
|
|
@ -175,7 +175,7 @@ class Game_Player < Game_Character
|
||||||
# If moving, event running, move route forcing, and message window
|
# If moving, event running, move route forcing, and message window
|
||||||
# display are all not occurring
|
# display are all not occurring
|
||||||
unless $game_system.map_interpreter.running? or @move_route_forcing or
|
unless $game_system.map_interpreter.running? or @move_route_forcing or
|
||||||
$game_temp.message_window_showing
|
$game_temp.message_window_showing or $game_temp.menus_visible
|
||||||
# Adjust move speed
|
# Adjust move speed
|
||||||
@move_speed = Input.press?(Input::RUN) ? 4 : 3
|
@move_speed = Input.press?(Input::RUN) ? 4 : 3
|
||||||
unless moving?
|
unless moving?
|
||||||
|
|
@ -235,7 +235,7 @@ class Game_Player < Game_Character
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# If not moving
|
# If not moving
|
||||||
unless moving?
|
unless moving? or $game_temp.menus_visible
|
||||||
# If player was moving last time
|
# If player was moving last time
|
||||||
if last_moving
|
if last_moving
|
||||||
# Event determinant is via touch of same position event
|
# Event determinant is via touch of same position event
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ class Game_Temp
|
||||||
attr_accessor :footstep_sfx # current footstep sfx array
|
attr_accessor :footstep_sfx # current footstep sfx array
|
||||||
attr_accessor :filmsprite # film puzzle sprite
|
attr_accessor :filmsprite # film puzzle sprite
|
||||||
attr_accessor :prompt_wait # wait for delay caused by prompt
|
attr_accessor :prompt_wait # wait for delay caused by prompt
|
||||||
|
attr_accessor :menus_visible
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# * Object Initialization
|
# * Object Initialization
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
|
@ -119,6 +120,7 @@ class Game_Temp
|
||||||
@footstep_sfx = nil
|
@footstep_sfx = nil
|
||||||
@filmsprite = nil
|
@filmsprite = nil
|
||||||
@prompt_wait = 0
|
@prompt_wait = 0
|
||||||
|
@menus_visible = false
|
||||||
end
|
end
|
||||||
|
|
||||||
def bgm_fadein(game_system)
|
def bgm_fadein(game_system)
|
||||||
|
|
|
||||||
|
|
@ -363,6 +363,8 @@ class Interpreter
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def command_241
|
def command_241
|
||||||
# Play BGM
|
# Play BGM
|
||||||
|
$game_temp.target_bgm_vol_level = -1
|
||||||
|
$game_temp.bgm_fadein_speed = 99
|
||||||
$game_system.bgm_play(@parameters[0])
|
$game_system.bgm_play(@parameters[0])
|
||||||
# Continue
|
# Continue
|
||||||
return true
|
return true
|
||||||
|
|
@ -372,6 +374,8 @@ class Interpreter
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
def command_242
|
def command_242
|
||||||
# Fade out BGM
|
# Fade out BGM
|
||||||
|
$game_temp.target_bgm_vol_level = -1
|
||||||
|
$game_temp.bgm_fadein_speed = 99
|
||||||
$game_system.bgm_fade(@parameters[0])
|
$game_system.bgm_fade(@parameters[0])
|
||||||
# Continue
|
# Continue
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,8 @@ class Scene_Map
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
$game_system.map_interpreter.update
|
$game_system.map_interpreter.update
|
||||||
$game_player.update if !@menu.visible && !@item_menu.visible && !@fast_travel.visible
|
$game_temp.menus_visible = @menu.visible || @item_menu.visible || @fast_travel.visible
|
||||||
|
$game_player.update
|
||||||
$game_followers.each{|f| f.update}
|
$game_followers.each{|f| f.update}
|
||||||
# Update system (timer), screen
|
# Update system (timer), screen
|
||||||
$game_system.update
|
$game_system.update
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,15 @@ module Script
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.countdown_over
|
||||||
|
equinox = Time.new(2017, 03, 20)
|
||||||
|
diff = equinox - Time.now
|
||||||
|
if(diff <= 0)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
def self.countdown_update
|
def self.countdown_update
|
||||||
equinox = Time.new(2017, 03, 20)
|
equinox = Time.new(2017, 03, 20)
|
||||||
diff = equinox - Time.now
|
diff = equinox - Time.now
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue