More or less standardised separator comments in the code

This commit is contained in:
Maruno17
2024-06-27 21:21:26 +01:00
parent 225549bfce
commit 509a414f37
198 changed files with 1907 additions and 1263 deletions

View File

@@ -1,3 +1,6 @@
#===============================================================================
#
#===============================================================================
def pbStringToAudioFile(str)
if str[/^(.*)\:\s*(\d+)\s*\:\s*(\d+)\s*$/] # Of the format "XXX: ###: ###"
file = $1
@@ -39,7 +42,8 @@ def pbResolveAudioFile(str, volume = nil, pitch = nil)
end
#===============================================================================
#
#===============================================================================
# Plays a BGM file.
# param -- Either a string showing the filename
# (relative to Audio/BGM/) or an RPG::AudioFile object.
@@ -89,7 +93,8 @@ def pbBGMStop(timeInSeconds = 0.0)
end
#===============================================================================
#
#===============================================================================
# Plays an ME file.
# param -- Either a string showing the filename
# (relative to Audio/ME/) or an RPG::AudioFile object.
@@ -139,7 +144,8 @@ def pbMEStop(timeInSeconds = 0.0)
end
#===============================================================================
#
#===============================================================================
# Plays a BGS file.
# param -- Either a string showing the filename
# (relative to Audio/BGS/) or an RPG::AudioFile object.
@@ -189,7 +195,8 @@ def pbBGSStop(timeInSeconds = 0.0)
end
#===============================================================================
#
#===============================================================================
# Plays an SE file.
# param -- Either a string showing the filename
# (relative to Audio/SE/) or an RPG::AudioFile object.
@@ -232,8 +239,6 @@ def pbSEStop(_timeInSeconds = 0.0)
end
end
#===============================================================================
# Plays a sound effect that plays when the player moves the cursor.
def pbPlayCursorSE
if !nil_or_empty?($data_system&.cursor_se&.name)