Replace screenshot addon with screenshotQuality CVar

Remove the embedded Screenshot addon (TOC + Lua) and WeirdUtilsScreenshot()
Lua function. Compression quality is now controlled entirely via a CVar
(saved to config.wtf), read fresh on each screenshot. CVar 0 disables PNG
and falls through to original TGA.
This commit is contained in:
MarcelineVQ
2026-03-08 12:24:19 -07:00
parent 6ce091607f
commit d2f91fe8c2
12 changed files with 132 additions and 123 deletions
+3 -2
View File
@@ -68,9 +68,10 @@ Best used via keybindings (available in the Key Bindings menu) or macros:
Saves screenshots as compressed PNG files instead of the default uncompressed TGA format. Runs on a background thread with no frame drops.
- `/screenshot 0` through `/screenshot 9` -- set compression level (0 = fast, 9 = smallest, default 6)
Controlled via the `screenshotQuality` CVar (saved to config.wtf):
Compression level 6 provides the best balance of quality and file size. Enabled automatically on install.
- `/script SetCVar("screenshotQuality", "6")` -- set compression level (1 = fast, 9 = smallest, default 6)
- `/script SetCVar("screenshotQuality", "0")` -- disable PNG, use original TGA format
**DLL:** `screenshot.dll`