mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-20 12:11:28 -07:00
feat(stats): add launcher stats command and build integration
- Launcher stats subcommand with cleanup mode - Stats frontend build integrated into Makefile - CI workflow updated for stats package - Config example updated with stats section - mpv plugin menu entry for stats toggle
This commit is contained in:
@@ -44,6 +44,9 @@ function M.create(ctx)
|
||||
mp.register_script_message(hover.HOVER_MESSAGE_NAME_LEGACY, function(payload_json)
|
||||
hover.handle_hover_message(payload_json)
|
||||
end)
|
||||
mp.register_script_message("subminer-stats-toggle", function()
|
||||
mp.osd_message("Stats: press ` (backtick) in overlay", 3)
|
||||
end)
|
||||
end
|
||||
|
||||
return {
|
||||
|
||||
@@ -32,6 +32,7 @@ function M.create(ctx)
|
||||
"Open options",
|
||||
"Restart overlay",
|
||||
"Check status",
|
||||
"Stats",
|
||||
}
|
||||
|
||||
local actions = {
|
||||
@@ -53,6 +54,9 @@ function M.create(ctx)
|
||||
function()
|
||||
process.check_status()
|
||||
end,
|
||||
function()
|
||||
mp.commandv("script-message", "subminer-stats-toggle")
|
||||
end,
|
||||
}
|
||||
|
||||
input.select({
|
||||
|
||||
Reference in New Issue
Block a user