SCP - Containment Breach
Loading...
Searching...
No Matches
CB.Subtitles Namespace Reference

Functions

void Load ()
void LoadEntities ()
void Queue (string soundPath, int soundHandle, B3D::Channel@ channel, bool isStream=false)
void RemoveQueued (int soundHandle)
void RemoveQueuedByChannel (B3D::Channel@ channel, bool isStream=false)
void UpdateChannelVolume (B3D::Channel@ channel, float volume, bool isStream=false, bool isSFX=true)
void UpdateQueuedVolume (B3D::Channel@ channel, float volume, bool isStream=false)
void ResumeChannel (B3D::Channel@ channel)
void PauseChannel (B3D::Channel@ channel)
void SetQueuedPause (B3D::Channel@ channel, bool paused)
void Clear ()
bool ShouldShow (CB::SubtitleEntry@ entry)
CB::SubtitleMsg TryCreate (CB::QueuedSubtitleMsg@ queue, string txt="")
void TryCreateSplit (CB::QueuedSubtitleMsg@ queue, string txtLine, int padding)
void RecalculateBoxTarget ()
void BumpUp (CB::SubtitleMsg@ msg)
void Update (float factor)
void Draw ()
void Render ()
string StripComments (string line)
void LoadVoices (string path)
void LoadTokens (string path, int tokenType)
CB::SubtitleEntry CreateEntry (string key, string value, CB::SubtitleColor@ color, int tokenType, bool isCaptionDefault)
void CreateToken (CB::SubtitleEntry@ entry, string soundPathGroup, int tokenType)
CB::SubtitleToken GetToken (string soundPath)
string ParseSettings (CB::SubtitleEntry@ entry, string txt, bool isCaption=false)
bool ApplyDataSetting (string key, string value, CB::SubtitleEntry@ entry)
bool ApplyColorSetting (string key, string value, CB::SubtitleColor@ color)
CB::SubtitleColor FindOrAddVoice (string voice)
void CopyColor (CB::SubtitleColor@ fromColor, CB::SubtitleColor@ toColor, bool keepVoiceKey=false, bool keepBools=true)
bool ColorsMatch (CB::SubtitleColor@ firstColor, CB::SubtitleColor@ secondColor)
CB::SubtitleColor InternColor (CB::SubtitleColor@ color)
void CleanupColors ()

Variables

float TextHeight
float EarlyDelay
float FadeLength
bool Initialized
B3D::Font Font1Bold
B3D::Font Font1Italic
B3D::Font Font1BoldItalic
CB::SubtitleBox Box