Closed Captions / Subtitles for Vintage Story.
0
fork

Configure Feed

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

Update color coding for various sounds.

+18 -20
+2 -2
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 = 400; 17 + private static readonly int MAX_AGE_SECONDS = 4; 18 18 private static readonly double RANGE_THRESHOLD = 0.8; 19 19 20 20 public class Sound { ··· 125 125 else if (soundName.StartsWith("~")) 126 126 { 127 127 soundName = soundName.Substring(1); 128 - ctx.SetSourceRGB(brightness * 0.7, brightness, brightness*0.9); 128 + ctx.SetSourceRGB(brightness * 0.3, brightness, brightness*0.8); 129 129 ctx.Rectangle(0, y, 300, 32); 130 130 ctx.Stroke(); 131 131 }
+16 -18
ClosedCaptions/assets/captions/lang/en.json
··· 61 61 "captions:sizzle": "Sizzling", 62 62 "captions:thud": "Thud", 63 63 "captions:torch-ignite": "Torch lights", 64 - "captions:tutorialstepsuccess": "Tutorial tinkles", 64 + "captions:tutorialstepsuccess": "~Tutorial tinkles", 65 65 66 66 "captions:block/creak/woodcreak_": "Wood creaks", 67 67 "captions:block/creak/woodcreak_long": "Wood creaks", ··· 132 132 "captions:creature/bear/aggro": "Bear roars", 133 133 "captions:creature/bear/attack": "Bear attacks", 134 134 "captions:creature/bear/flee": "Bear groans", 135 - "captions:creature/bear/growl": "Bear growls", 135 + "captions:creature/bear/growl": "!Bear growls", 136 136 "captions:creature/bear/hurt": "Bear hit", 137 - 138 - 139 137 140 138 "captions:creature/animal-eat-small": "Small munching", 141 139 "captions:creature/animal-eat": "Quiet munching", 142 140 "captions:creature/beehive": "Bees buzz", 143 - "captions:creature/beehive-wild": "Bees buzz", 144 - "captions:creature/beemob": "Angry buzzing", 141 + "captions:creature/beehive-wild": "~Bees buzz", 142 + "captions:creature/beemob": "!Angry buzzing", 145 143 "captions:creature/beesting": "Bees sting", 146 144 "captions:creature/cicada-short-loop": "Cicadas chirp", 147 145 "captions:creature/cicada": "Cicadas sing", ··· 210 208 211 209 "captions:creature/fox/attack": "Fox attacks", 212 210 "captions:creature/fox/die": "Fox dies", 213 - "captions:creature/fox/growl": "Fox growls", 211 + "captions:creature/fox/growl": "!Fox growls", 214 212 "captions:creature/fox/hurt": "Fox hit", 215 213 "captions:creature/fox/yip": "Fox calls", 216 214 ··· 251 249 252 250 "captions:creature/hyena/attack": "Hyena attacks", 253 251 "captions:creature/hyena/death": "Hyena dies", 254 - "captions:creature/hyena/growl": "Hyena growls", 252 + "captions:creature/hyena/growl": "!Hyena growls", 255 253 "captions:creature/hyena/hurt": "Hyena hit", 256 - "captions:creature/hyena/laugh": "Hyena laughs", 254 + "captions:creature/hyena/laugh": "!Hyena laughs", 257 255 258 256 "captions:creature/pig/attack": "Pig attacks", 259 257 "captions:creature/pig/hurt": "Pig squeals", ··· 261 259 "captions:creature/pig/piglet-hurt": "Piglet squeals", 262 260 "captions:creature/pig/piglet-idle": "Piglet snorts", 263 261 264 - "captions:creature/raccoon/aggro": "Raccoon growls", 262 + "captions:creature/raccoon/aggro": "!Raccoon growls", 265 263 "captions:creature/raccoon/death": "Raccoon dies", 266 264 "captions:creature/raccoon/hurt": "Raccoon hit", 267 265 "captions:creature/raccoon/idle": "Raccoon chatters", ··· 274 272 "captions:creature/sheep/lamb-hurt": "Lamb hit", 275 273 "captions:creature/sheep/milking": "Sheep milking", 276 274 277 - "captions:creature/wolf/attack": "!Wolf attacks", 275 + "captions:creature/wolf/attack": "Wolf attacks", 278 276 "captions:creature/wolf/growl": "!Wolf growls", 279 277 "captions:creature/wolf/howl": "!Wolf howls", 280 278 "captions:creature/wolf/hurt": "Wolf hit", ··· 297 295 "captions:effect/gearbox_turn": "Gearbox clanks", 298 296 "captions:effect/gears": "Gears clank", 299 297 "captions:effect/gliding": "Air flutters", 300 - "captions:effect/largeexplosion": "Large Detonation", 298 + "captions:effect/largeexplosion": "!Large Detonation", 301 299 "captions:effect/latch": "Latch clicks", 302 300 "captions:effect/longfuse": "Fuse hisses", 303 - "captions:effect/mediumexplosion": "Explosion", 301 + "captions:effect/mediumexplosion": "!Explosion", 304 302 "captions:effect/moltenmetal": "Metal bubbles", 305 303 "captions:effect/planetary_gears": "Gears rattle", 306 304 "captions:effect/portal": "Portal shrieks", 307 305 "captions:effect/receptionbell": "Bell rings", 308 306 "captions:effect/rift": "Rift grinds", 309 307 "captions:effect/rockslide": "Rocks falling", 310 - "captions:effect/roperip": "Rope snaps", 308 + "captions:effect/roperip": "!Rope snaps", 311 309 "captions:effect/ropestretch": "Rope creaks", 312 - "captions:effect/smallexplosion": "Small Explosion", 310 + "captions:effect/smallexplosion": "!Small Explosion", 313 311 "captions:effect/squish": "Wet slap", 314 312 "captions:effect/stonecrush": "Stone breaks", 315 313 "captions:effect/swoosh": "Swoosh", ··· 334 332 "captions:held/bookturn": "Pages flutter", 335 333 "captions:held/shieldblock-metal-heavy": "Shield bangs", 336 334 "captions:held/shieldblock-metal-light": "Shield clangs", 337 - "captions:held/shieldblock-metal-heavy": "Shield thuds", 338 - "captions:held/shieldblock-metal-light": "Shield knocks", 335 + "captions:held/shieldblock-wood-heavy": "Shield thuds", 336 + "captions:held/shieldblock-wood-light": "Shield knocks", 339 337 "captions:held/torch-attack": "Torch whooshes", 340 338 "captions:held/torch-equip": "", 341 339 "captions:held/torch-idle": "Torch crackles", ··· 388 386 "captions:wearable/plate": "Armor clatters", 389 387 "captions:wearable/scale": "Armor clatters", 390 388 391 - "captions:weather/tracks/hail": "Hail falls", 389 + "captions:weather/tracks/hail": "!Hail falls", 392 390 "captions:weather/tracks/lowtremble": "Distant thunder", 393 391 "captions:weather/tracks/rain-leafless": "Rain patters", 394 392 "captions:weather/tracks/rain-leafy": "Rain pours",