refactor: split mpv plugin into modular script directory

This commit is contained in:
kyasuda
2026-02-24 18:02:57 -08:00
parent 3da9d9e0e0
commit 60cd1c8ac2
23 changed files with 2203 additions and 1959 deletions

33
plugin/subminer/state.lua Normal file
View File

@@ -0,0 +1,33 @@
local M = {}
function M.new()
return {
overlay_running = false,
texthooker_running = false,
overlay_process = nil,
binary_available = false,
binary_path = nil,
invisible_overlay_visible = false,
hover_highlight = {
revision = -1,
payload = nil,
saved_sub_visibility = nil,
saved_secondary_sub_visibility = nil,
overlay_active = false,
cached_ass = nil,
clear_timer = nil,
last_hover_update_ts = 0,
},
aniskip = {
mal_id = nil,
title = nil,
episode = nil,
intro_start = nil,
intro_end = nil,
found = false,
prompt_shown = false,
},
}
end
return M