Merge pull request #42 from elizagamedev/gir/trNullHandling

tr Null handling:
This commit is contained in:
GIRakaCHEEZER 2022-11-20 02:22:55 -08:00 committed by GitHub
commit 847c399c82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -41,6 +41,7 @@ class Scene_Title
end
load_perma_flags
Window_Settings.load_settings
Oneshot.allow_exit true
@window_settings_title = Window_Settings.new
# Make title graphic
@ -227,6 +228,7 @@ class Scene_Title
# Play decision SE
Audio.se_play('Audio/SE/title_decision.wav')
# Update map (run parallel process event)
Oneshot.allow_exit false
$game_map.update
# Switch to map screen
$scene = Scene_Map.new

View file

@ -204,6 +204,8 @@ class Window_Message < Window_Selectable
return if @text_pause > 0
# Don't do anything if we're done
return if !@drawing_text
autoMash = (Input.press?(Input::R) && $game_switches[253])
# Get 1 text character in c (loop until unable to get text)
while ((c = @text.slice!(0)) != nil)
@ -227,13 +229,13 @@ class Window_Message < Window_Selectable
# \.
if c == "\001"
# Pause
@text_pause = 10
@text_pause = autoMash ? 0 : 10
return
end
# \|
if c == "\002"
# Pause
@text_pause = 10*4
@text_pause = autoMash ? 0 : 10*4
return
end
if c == "\003"

View file

@ -99,7 +99,11 @@ class Language
else
rv = string
end
dbg_print(string + " -> " + rv)
if rv.nil?
rv = "NULL"
end
#dbg_print(string + " -> " + rv)
return String.new(rv)
end