Rewrote BP Shop code, tidied PC menu code, fixed message display bug involving instant speed and \wtnp, fixed mail vanishing bug, tweaks to other rewritten UI

This commit is contained in:
Maruno17
2024-09-27 22:10:26 +01:00
parent 48292c2a28
commit b80de83b0d
20 changed files with 967 additions and 797 deletions

View File

@@ -565,12 +565,13 @@ class Window_AdvancedTextPokemon < SpriteWindow_Base
elsif @textchars[@curchar] == "\1"
@pausing = true if @curchar < @numtextchars - 1
self.startPause
refresh
end
refresh
end
end
end
# TODO: Why is this called 4 times per loop in pbMessageDisplay?
def update
super
@pausesprite.update if @pausesprite&.visible
@@ -602,8 +603,8 @@ class Window_AdvancedTextPokemon < SpriteWindow_Base
ret = true
@curchar += 1
break if @textchars[@curchar] == "\n" || # newline
@textchars[@curchar] == "\1" || # pause
@textchars[@curchar] == "\2" || # letter-by-letter break
@textchars[@curchar] == "\1" || # pause: "\!"
@textchars[@curchar] == "\2" || # letter-by-letter break: "\wt[]", "\wtnp[]", "\.", "\|"
@textchars[@curchar].nil?
end
return ret