mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed long battle messages displaying weirdly
This commit is contained in:
@@ -259,7 +259,6 @@ module Settings
|
|||||||
[0, 51, 16, 15, "hidden_Berth", false],
|
[0, 51, 16, 15, "hidden_Berth", false],
|
||||||
[0, 52, 20, 14, "hidden_Faraday", false]
|
[0, 52, 20, 14, "hidden_Faraday", false]
|
||||||
]
|
]
|
||||||
|
|
||||||
# Whether the player can use Fly while looking at the Town Map. This is only
|
# Whether the player can use Fly while looking at the Town Map. This is only
|
||||||
# allowed if the player can use Fly normally.
|
# allowed if the player can use Fly normally.
|
||||||
CAN_FLY_FROM_TOWN_MAP = true
|
CAN_FLY_FROM_TOWN_MAP = true
|
||||||
@@ -296,7 +295,7 @@ module Settings
|
|||||||
# * Level.
|
# * Level.
|
||||||
# * Game Switch; the Pokémon roams while this is ON.
|
# * Game Switch; the Pokémon roams while this is ON.
|
||||||
# * Encounter type (0=any, 1=grass/walking in cave, 2=surfing, 3=fishing,
|
# * Encounter type (0=any, 1=grass/walking in cave, 2=surfing, 3=fishing,
|
||||||
# 4=surfing/fishing). See the bottom of PField_RoamingPokemon for lists.
|
# 4=surfing/fishing). See the bottom of Overworld_RoamingPokemon for lists.
|
||||||
# * Name of BGM to play for that encounter (optional).
|
# * Name of BGM to play for that encounter (optional).
|
||||||
# * Roaming areas specifically for this Pokémon (optional).
|
# * Roaming areas specifically for this Pokémon (optional).
|
||||||
ROAMING_SPECIES = [
|
ROAMING_SPECIES = [
|
||||||
|
|||||||
@@ -406,19 +406,15 @@ class Window_AdvancedTextPokemon < SpriteWindow_Base
|
|||||||
return if !busy?
|
return if !busy?
|
||||||
return if @textchars[@curchar] == "\n"
|
return if @textchars[@curchar] == "\n"
|
||||||
resume
|
resume
|
||||||
|
if curcharSkip(true)
|
||||||
visiblelines = (self.height - self.borderY) / @lineHeight
|
visiblelines = (self.height - self.borderY) / @lineHeight
|
||||||
loop do
|
if @textchars[@curchar] == "\n" && @linesdrawn >= visiblelines - 1
|
||||||
curcharSkip(true)
|
@scroll_timer_start = System.uptime
|
||||||
break if @curchar >= @fmtchars.length # End of message
|
elsif @textchars[@curchar] == "\1"
|
||||||
if @textchars[@curchar] == "\1" # Pause message
|
|
||||||
@pausing = true if @curchar < @numtextchars - 1
|
@pausing = true if @curchar < @numtextchars - 1
|
||||||
self.startPause
|
self.startPause
|
||||||
refresh
|
refresh
|
||||||
break
|
|
||||||
end
|
end
|
||||||
break if @textchars[@curchar] != "\n" # Skip past newlines only
|
|
||||||
break if @linesdrawn >= visiblelines - 1 # No more empty lines to continue to
|
|
||||||
@linesdrawn += 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ class Battle::Scene
|
|||||||
cw.setText(msg)
|
cw.setText(msg)
|
||||||
PBDebug.log_message(msg)
|
PBDebug.log_message(msg)
|
||||||
yielded = false
|
yielded = false
|
||||||
timer_start = System.uptime
|
timer_start = nil
|
||||||
loop do
|
loop do
|
||||||
pbUpdate(cw)
|
pbUpdate(cw)
|
||||||
if !cw.busy?
|
if !cw.busy?
|
||||||
@@ -202,6 +202,7 @@ class Battle::Scene
|
|||||||
@briefMessage = true
|
@briefMessage = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
timer_start = System.uptime if !timer_start
|
||||||
if System.uptime - timer_start >= MESSAGE_PAUSE_TIME # Autoclose after 1 second
|
if System.uptime - timer_start >= MESSAGE_PAUSE_TIME # Autoclose after 1 second
|
||||||
cw.text = ""
|
cw.text = ""
|
||||||
cw.visible = false
|
cw.visible = false
|
||||||
@@ -233,7 +234,7 @@ class Battle::Scene
|
|||||||
cw.text = msg + "\1"
|
cw.text = msg + "\1"
|
||||||
PBDebug.log_message(msg)
|
PBDebug.log_message(msg)
|
||||||
yielded = false
|
yielded = false
|
||||||
timer_start = System.uptime
|
timer_start = nil
|
||||||
loop do
|
loop do
|
||||||
pbUpdate(cw)
|
pbUpdate(cw)
|
||||||
if !cw.busy?
|
if !cw.busy?
|
||||||
@@ -242,6 +243,7 @@ class Battle::Scene
|
|||||||
yielded = true
|
yielded = true
|
||||||
end
|
end
|
||||||
if !@battleEnd
|
if !@battleEnd
|
||||||
|
timer_start = System.uptime if !timer_start
|
||||||
if System.uptime - timer_start >= MESSAGE_PAUSE_TIME * 3 # Autoclose after 3 seconds
|
if System.uptime - timer_start >= MESSAGE_PAUSE_TIME * 3 # Autoclose after 3 seconds
|
||||||
cw.text = ""
|
cw.text = ""
|
||||||
cw.visible = false
|
cw.visible = false
|
||||||
|
|||||||
Reference in New Issue
Block a user