Closed Captions / Subtitles for Vintage Story.
0
fork

Configure Feed

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

Fix channels, curse linters, remove debugging.

+4 -6
+1 -3
ClosedCaptions/Caption.cs
··· 117 117 var oldCaption = Captions[i]; 118 118 119 119 // Only update this caption if it has the same name or if it's on the same channel. 120 - if (oldCaption.Name != newCaption.Name && oldCaption.Channel != newCaption.Channel) 120 + if (oldCaption.Channel != newCaption.Channel) 121 121 continue; 122 122 123 123 oldCaption.LastHeard = newCaption.LastHeard; ··· 131 131 132 132 return; 133 133 } 134 - 135 - _api.Logger.Debug("[CAPTION] New caption: " + newCaption.Name + " in channel " + newCaption.Channel + " with tags " + string.Join(", ", newCaption.Tags)); 136 134 137 135 // No existing caption, add a new one. 138 136 Captions.Add(newCaption);
+3 -3
ClosedCaptions/LoadedCaptionData.cs
··· 4 4 5 5 public class LoadedCaptionData 6 6 { 7 - public readonly string Channel = null; 8 - public readonly int Priority = 1; 9 - public readonly List<string> Tags = []; 7 + public string Channel = null; 8 + public int Priority = 1; 9 + public List<string> Tags = []; 10 10 }