Closed Captions / Subtitles for Vintage Story.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove ? from sound names.

This is just for my own use to track sounds I want to come back around to.

+4 -1
+4 -1
ClosedCaptions/CaptionsList.cs
··· 14 14 private CairoFont font; 15 15 16 16 private static readonly int MAX_SOUNDS = 10; 17 - private static readonly int MAX_AGE_SECONDS = 4; 17 + private static readonly int MAX_AGE_SECONDS = 400; 18 18 private static readonly double RANGE_THRESHOLD = 0.8; 19 19 20 20 public class Sound { ··· 112 112 //ctx.Stroke(); 113 113 114 114 var soundName = sound.name; 115 + if (soundName.StartsWith("?")) 116 + soundName = soundName.Substring(1); 117 + 115 118 if (soundName.StartsWith("!")) 116 119 { 117 120 soundName = soundName.Substring(1);